
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: bool close_some_descriptor(Descriptors * this) */

bool __thiscall gold::Descriptors::close_some_descriptor(Descriptors *this)

{
  uint uVar1;
  pointer pOVar2;
  char *pcVar3;
  Parameters *pPVar4;
  int iVar5;
  int *piVar6;
  char *pcVar7;
  char *format;
  ulong uVar8;
  ulong uVar9;
  pointer pOVar10;
  uint __fd;
  long lVar11;
  
  __fd = this->stack_top_;
  if ((int)__fd < 0) {
    return false;
  }
  pOVar2 = (this->open_descriptors_).
           super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>
           ._M_impl._M_start;
  uVar9 = (ulong)(int)__fd;
  uVar8 = (long)(this->open_descriptors_).
                super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>
                ._M_impl._M_finish - (long)pOVar2 >> 4;
  if (uVar9 < uVar8) {
    lVar11 = -1;
    do {
      pOVar10 = pOVar2 + uVar9;
      if ((pOVar10->inuse == false) && (pOVar10->is_write == false)) {
        iVar5 = close(__fd);
        if (iVar5 < 0) {
          piVar6 = __errno_location();
          pcVar7 = strerror(*piVar6);
          pcVar3 = pOVar10->name;
          format = (char *)gettext("while closing %s: %s");
          gold_warning(format,pcVar3,pcVar7);
        }
        pPVar4 = parameters;
        this->current_ = this->current_ + -1;
        if ((pPVar4->options_ == (General_options *)0x0) || ((pPVar4->debug_ & 4) == 0)) {
          pOVar10->name = (char *)0x0;
          iVar5 = pOVar10->stack_next;
        }
        else {
          Errors::debug(pPVar4->errors_,"Closed descriptor %d for \"%s\"",(ulong)__fd,pOVar10->name)
          ;
          pOVar10->name = (char *)0x0;
          iVar5 = pOVar10->stack_next;
        }
        if ((int)lVar11 == -1) {
          this->stack_top_ = iVar5;
        }
        else {
          (this->open_descriptors_).
          super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>
          ._M_impl._M_start[lVar11].stack_next = iVar5;
        }
        pOVar10->stack_next = -1;
        pOVar10->is_on_stack = false;
        return true;
      }
      uVar1 = pOVar10->stack_next;
      if ((int)uVar1 < 0) {
        return false;
      }
      uVar9 = (ulong)(int)uVar1;
      lVar11 = (long)(int)__fd;
      __fd = uVar1;
    } while (uVar9 < uVar8);
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/descriptors.cc",0xf2,"close_some_descriptor");
}



undefined8 FUN_0023d780(long param_1)

{
  undefined4 uVar1;
  undefined8 uVar2;
  undefined *puVar3;
  int iVar4;
  int *piVar5;
  char *pcVar6;
  undefined8 uVar7;
  ulong uVar8;
  ulong uVar9;
  undefined8 *puVar10;
  int __fd;
  long lVar11;
  
  __fd = *(int *)(param_1 + 0x40);
  if (__fd < 0) {
    return 0;
  }
  uVar9 = (ulong)__fd;
  uVar8 = *(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x28) >> 4;
  if (uVar9 < uVar8) {
    lVar11 = -1;
    do {
      puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));
      if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {
        iVar4 = close(__fd);
        if (iVar4 < 0) {
          piVar5 = __errno_location();
          pcVar6 = strerror(*piVar5);
          uVar2 = *puVar10;
          uVar7 = gettext("while closing %s: %s");
          FUN_00169150(uVar7,uVar2,pcVar6);
        }
        puVar3 = PTR_DAT_003be6b0;
        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;
        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {
          *puVar10 = 0;
          uVar1 = *(undefined4 *)(puVar10 + 1);
        }
        else {
          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);
          *puVar10 = 0;
          uVar1 = *(undefined4 *)(puVar10 + 1);
        }
        if ((int)lVar11 == -1) {
          *(undefined4 *)(param_1 + 0x40) = uVar1;
        }
        else {
          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;
        }
        *(undefined4 *)(puVar10 + 1) = 0xffffffff;
        *(undefined1 *)((long)puVar10 + 0xe) = 0;
        return 1;
      }
      iVar4 = *(int *)(puVar10 + 1);
      if (iVar4 < 0) {
        return 0;
      }
      uVar9 = (ulong)iVar4;
      lVar11 = (long)__fd;
      __fd = iVar4;
    } while (uVar9 < uVar8);
  }
                    /* WARNING: Subroutine does not return */
  FUN_0016cdf0("../../gold/descriptors.cc",0xf2,"close_some_descriptor");
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV EBP,dword ptr [RDI + 0x40]
TEST EBP,EBP
JS 0x0023d7eb
MOV RCX,qword ptr [RDI + 0x28]
MOV RDX,qword ptr [RDI + 0x30]
MOVSXD RBX,EBP
MOV R13,RDI
SUB RDX,RCX
SAR RDX,0x4
CMP RDX,RBX
JBE 0x0023d8c6
MOV R12,-0x1
JMP 0x0023d7d1
MOVSXD RBX,EAX
MOVSXD R12,EBP
CMP RBX,RDX
JNC 0x0023d8c6
MOV EBP,EAX
SHL RBX,0x4
ADD RBX,RCX
CMP byte ptr [RBX + 0xc],0x0
JNZ 0x0023d7e4
CMP byte ptr [RBX + 0xd],0x0
JZ 0x0023d800
MOV EAX,dword ptr [RBX + 0x8]
TEST EAX,EAX
JNS 0x0023d7c0
ADD RSP,0x8
XOR EAX,EAX
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV EDI,EBP
CALL 0x0013e160
TEST EAX,EAX
JS 0x0023d893
MOV RAX,qword ptr [0x003be6b0]
SUB dword ptr [R13 + 0x44],0x1
CMP qword ptr [RAX + 0x10],0x0
JZ 0x0023d828
TEST byte ptr [RAX + 0x24],0x4
JNZ 0x0023d86b
MOV qword ptr [RBX],0x0
MOV EDX,dword ptr [RBX + 0x8]
CMP R12D,-0x1
JZ 0x0023d865
MOV RAX,qword ptr [R13 + 0x28]
SHL R12,0x4
ADD RAX,R12
MOV dword ptr [RAX + 0x8],EDX
MOV dword ptr [RBX + 0x8],0xffffffff
MOV EAX,0x1
MOV byte ptr [RBX + 0xe],0x0
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV dword ptr [R13 + 0x40],EDX
JMP 0x0023d846
MOV RDI,qword ptr [RAX]
MOV RCX,qword ptr [RBX]
MOV EDX,EBP
LEA RSI,[0x3235e1]
XOR EAX,EAX
CALL 0x00168e80
MOV qword ptr [RBX],0x0
MOV EDX,dword ptr [RBX + 0x8]
CMP R12D,-0x1
JNZ 0x0023d838
JMP 0x0023d865
CALL 0x0013e770
MOV EDI,dword ptr [RAX]
CALL 0x0013e610
MOV R14,qword ptr [RBX]
LEA RDI,[0x3235cc]
MOV R15,RAX
CALL 0x0013e320
MOV RDX,R15
MOV RSI,R14
MOV RDI,RAX
XOR EAX,EAX
CALL 0x00169150
JMP 0x0023d80f
LEA RDX,[0x323700]
MOV ESI,0xf2
LEA RDI,[0x3235b2]
CALL 0x0016cdf0
(translation_unit "undefined8 FUN_0023d780(long param_1)\n\n{\n  undefined4 uVar1;\n  undefined8 uVar2;\n  undefined *puVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined8 uVar7;\n  ulong uVar8;\n  ulong uVar9;\n  undefined8 *puVar10;\n  int __fd;\n  long lVar11;\n  \n  __fd = *(int *)(param_1 + 0x40);\n  if (__fd < 0) {\n    return 0;\n  }\n  uVar9 = (ulong)__fd;\n  uVar8 = *(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x28) >> 4;\n  if (uVar9 < uVar8) {\n    lVar11 = -1;\n    do {\n      puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));\n      if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }\n      iVar4 = *(int *)(puVar10 + 1);\n      if (iVar4 < 0) {\n        return 0;\n      }\n      uVar9 = (ulong)iVar4;\n      lVar11 = (long)__fd;\n      __fd = iVar4;\n    } while (uVar9 < uVar8);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0016cdf0("../../gold/descriptors.cc",0xf2,"close_some_descriptor");\n}\n\n" (function_definition "undefined8 FUN_0023d780(long param_1)\n\n{\n  undefined4 uVar1;\n  undefined8 uVar2;\n  undefined *puVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined8 uVar7;\n  ulong uVar8;\n  ulong uVar9;\n  undefined8 *puVar10;\n  int __fd;\n  long lVar11;\n  \n  __fd = *(int *)(param_1 + 0x40);\n  if (__fd < 0) {\n    return 0;\n  }\n  uVar9 = (ulong)__fd;\n  uVar8 = *(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x28) >> 4;\n  if (uVar9 < uVar8) {\n    lVar11 = -1;\n    do {\n      puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));\n      if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }\n      iVar4 = *(int *)(puVar10 + 1);\n      if (iVar4 < 0) {\n        return 0;\n      }\n      uVar9 = (ulong)iVar4;\n      lVar11 = (long)__fd;\n      __fd = iVar4;\n    } while (uVar9 < uVar8);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0016cdf0("../../gold/descriptors.cc",0xf2,"close_some_descriptor");\n}" type_identifier (function_declarator "FUN_0023d780(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined8 uVar2;\n  undefined *puVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined8 uVar7;\n  ulong uVar8;\n  ulong uVar9;\n  undefined8 *puVar10;\n  int __fd;\n  long lVar11;\n  \n  __fd = *(int *)(param_1 + 0x40);\n  if (__fd < 0) {\n    return 0;\n  }\n  uVar9 = (ulong)__fd;\n  uVar8 = *(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x28) >> 4;\n  if (uVar9 < uVar8) {\n    lVar11 = -1;\n    do {\n      puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));\n      if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }\n      iVar4 = *(int *)(puVar10 + 1);\n      if (iVar4 < 0) {\n        return 0;\n      }\n      uVar9 = (ulong)iVar4;\n      lVar11 = (long)__fd;\n      __fd = iVar4;\n    } while (uVar9 < uVar8);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0016cdf0("../../gold/descriptors.cc",0xf2,"close_some_descriptor");\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (declaration "ulong uVar8;" type_identifier identifier ;) (declaration "ulong uVar9;" type_identifier identifier ;) (declaration "undefined8 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "int __fd;" primitive_type identifier ;) (declaration "long lVar11;" (sized_type_specifier "long" long) identifier ;) (expression_statement "__fd = *(int *)(param_1 + 0x40);" (assignment_expression "__fd = *(int *)(param_1 + 0x40)" identifier = (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) (if_statement "if (__fd < 0) {\n    return 0;\n  }" if (parenthesized_expression "(__fd < 0)" ( (binary_expression "__fd < 0" identifier < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar9 = (ulong)__fd;" (assignment_expression "uVar9 = (ulong)__fd" identifier = (cast_expression "(ulong)__fd" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar8 = *(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x28) >> 4;" (assignment_expression "uVar8 = *(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x28) >> 4" identifier = (binary_expression "*(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x28) >> 4" (binary_expression "*(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x28)" (pointer_expression "*(long *)(param_1 + 0x30)" * (cast_expression "(long *)(param_1 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) - (pointer_expression "*(long *)(param_1 + 0x28)" * (cast_expression "(long *)(param_1 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) >> number_literal)) ;) (if_statement "if (uVar9 < uVar8) {\n    lVar11 = -1;\n    do {\n      puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));\n      if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }\n      iVar4 = *(int *)(puVar10 + 1);\n      if (iVar4 < 0) {\n        return 0;\n      }\n      uVar9 = (ulong)iVar4;\n      lVar11 = (long)__fd;\n      __fd = iVar4;\n    } while (uVar9 < uVar8);\n  }" if (parenthesized_expression "(uVar9 < uVar8)" ( (binary_expression "uVar9 < uVar8" identifier < identifier) )) (compound_statement "{\n    lVar11 = -1;\n    do {\n      puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));\n      if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }\n      iVar4 = *(int *)(puVar10 + 1);\n      if (iVar4 < 0) {\n        return 0;\n      }\n      uVar9 = (ulong)iVar4;\n      lVar11 = (long)__fd;\n      __fd = iVar4;\n    } while (uVar9 < uVar8);\n  }" { (expression_statement "lVar11 = -1;" (assignment_expression "lVar11 = -1" identifier = number_literal) ;) (do_statement "do {\n      puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));\n      if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }\n      iVar4 = *(int *)(puVar10 + 1);\n      if (iVar4 < 0) {\n        return 0;\n      }\n      uVar9 = (ulong)iVar4;\n      lVar11 = (long)__fd;\n      __fd = iVar4;\n    } while (uVar9 < uVar8);" do (compound_statement "{\n      puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));\n      if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }\n      iVar4 = *(int *)(puVar10 + 1);\n      if (iVar4 < 0) {\n        return 0;\n      }\n      uVar9 = (ulong)iVar4;\n      lVar11 = (long)__fd;\n      __fd = iVar4;\n    }" { (expression_statement "puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));" (assignment_expression "puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28))" identifier = (cast_expression "(undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28))" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar9 * 0x10 + *(long *)(param_1 + 0x28))" ( (binary_expression "uVar9 * 0x10 + *(long *)(param_1 + 0x28)" (binary_expression "uVar9 * 0x10" identifier * number_literal) + (pointer_expression "*(long *)(param_1 + 0x28)" * (cast_expression "(long *)(param_1 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) )))) ;) (if_statement "if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }" if (parenthesized_expression "((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0'))" ( (binary_expression "(*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')" (parenthesized_expression "(*(char *)((long)puVar10 + 0xc) == '\0')" ( (binary_expression "*(char *)((long)puVar10 + 0xc) == '\0'" (pointer_expression "*(char *)((long)puVar10 + 0xc)" * (cast_expression "(char *)((long)puVar10 + 0xc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar10 + 0xc)" ( (binary_expression "(long)puVar10 + 0xc" (cast_expression "(long)puVar10" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(*(char *)((long)puVar10 + 0xd) == '\0')" ( (binary_expression "*(char *)((long)puVar10 + 0xd) == '\0'" (pointer_expression "*(char *)((long)puVar10 + 0xd)" * (cast_expression "(char *)((long)puVar10 + 0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar10 + 0xd)" ( (binary_expression "(long)puVar10 + 0xd" (cast_expression "(long)puVar10" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }" { (expression_statement "iVar4 = close(__fd);" (assignment_expression "iVar4 = close(__fd)" identifier = (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier )))) ;) (if_statement "if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar6 = strerror(*piVar5);" (assignment_expression "pcVar6 = strerror(*piVar5)" identifier = (call_expression "strerror(*piVar5)" identifier (argument_list "(*piVar5)" ( (pointer_expression "*piVar5" * identifier) )))) ;) (expression_statement "uVar2 = *puVar10;" (assignment_expression "uVar2 = *puVar10" identifier = (pointer_expression "*puVar10" * identifier)) ;) (expression_statement "uVar7 = gettext("while closing %s: %s");" (assignment_expression "uVar7 = gettext("while closing %s: %s")" identifier = (call_expression "gettext("while closing %s: %s")" identifier (argument_list "("while closing %s: %s")" ( (string_literal ""while closing %s: %s"" " string_content ") )))) ;) (expression_statement "FUN_00169150(uVar7,uVar2,pcVar6);" (call_expression "FUN_00169150(uVar7,uVar2,pcVar6)" identifier (argument_list "(uVar7,uVar2,pcVar6)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "puVar3 = PTR_DAT_003be6b0;" (assignment_expression "puVar3 = PTR_DAT_003be6b0" identifier = identifier) ;) (expression_statement "*(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;" (assignment_expression "*(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x44) + -1" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }" if (parenthesized_expression "((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0))" ( (binary_expression "(*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)" (parenthesized_expression "(*(long *)(puVar3 + 0x10) == 0)" ( (binary_expression "*(long *)(puVar3 + 0x10) == 0" (pointer_expression "*(long *)(puVar3 + 0x10)" * (cast_expression "(long *)(puVar3 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x10)" ( (binary_expression "puVar3 + 0x10" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "((puVar3[0x24] & 4) == 0)" ( (binary_expression "(puVar3[0x24] & 4) == 0" (parenthesized_expression "(puVar3[0x24] & 4)" ( (binary_expression "puVar3[0x24] & 4" (subscript_expression "puVar3[0x24]" identifier [ number_literal ]) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }" { (expression_statement "*puVar10 = 0;" (assignment_expression "*puVar10 = 0" (pointer_expression "*puVar10" * identifier) = number_literal) ;) (expression_statement "uVar1 = *(undefined4 *)(puVar10 + 1);" (assignment_expression "uVar1 = *(undefined4 *)(puVar10 + 1)" identifier = (pointer_expression "*(undefined4 *)(puVar10 + 1)" * (cast_expression "(undefined4 *)(puVar10 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 1)" ( (binary_expression "puVar10 + 1" identifier + number_literal) ))))) ;) }) (else_clause "else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }" else (compound_statement "{\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }" { (expression_statement "FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);" (call_expression "FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10)" identifier (argument_list "(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10)" ( (pointer_expression "*(undefined8 *)puVar3" * (cast_expression "(undefined8 *)puVar3" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (string_literal ""Closed descriptor %d for \"%s\""" " string_content escape_sequence string_content escape_sequence ") , identifier , (pointer_expression "*puVar10" * identifier) ))) ;) (expression_statement "*puVar10 = 0;" (assignment_expression "*puVar10 = 0" (pointer_expression "*puVar10" * identifier) = number_literal) ;) (expression_statement "uVar1 = *(undefined4 *)(puVar10 + 1);" (assignment_expression "uVar1 = *(undefined4 *)(puVar10 + 1)" identifier = (pointer_expression "*(undefined4 *)(puVar10 + 1)" * (cast_expression "(undefined4 *)(puVar10 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 1)" ( (binary_expression "puVar10 + 1" identifier + number_literal) ))))) ;) }))) (if_statement "if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }" if (parenthesized_expression "((int)lVar11 == -1)" ( (binary_expression "(int)lVar11 == -1" (cast_expression "(int)lVar11" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }" { (expression_statement "*(undefined4 *)(param_1 + 0x40) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x40) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x40)" * (cast_expression "(undefined4 *)(param_1 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }" else (compound_statement "{\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }" { (expression_statement "*(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;" (assignment_expression "*(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1" (pointer_expression "*(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8)" * (cast_expression "(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8)" ( (binary_expression "*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8" (binary_expression "*(long *)(param_1 + 0x28) + lVar11 * 0x10" (pointer_expression "*(long *)(param_1 + 0x28)" * (cast_expression "(long *)(param_1 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) + (binary_expression "lVar11 * 0x10" identifier * number_literal)) + number_literal) )))) = identifier) ;) }))) (expression_statement "*(undefined4 *)(puVar10 + 1) = 0xffffffff;" (assignment_expression "*(undefined4 *)(puVar10 + 1) = 0xffffffff" (pointer_expression "*(undefined4 *)(puVar10 + 1)" * (cast_expression "(undefined4 *)(puVar10 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 1)" ( (binary_expression "puVar10 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((long)puVar10 + 0xe) = 0;" (assignment_expression "*(undefined1 *)((long)puVar10 + 0xe) = 0" (pointer_expression "*(undefined1 *)((long)puVar10 + 0xe)" * (cast_expression "(undefined1 *)((long)puVar10 + 0xe)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar10 + 0xe)" ( (binary_expression "(long)puVar10 + 0xe" (cast_expression "(long)puVar10" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar4 = *(int *)(puVar10 + 1);" (assignment_expression "iVar4 = *(int *)(puVar10 + 1)" identifier = (pointer_expression "*(int *)(puVar10 + 1)" * (cast_expression "(int *)(puVar10 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 1)" ( (binary_expression "puVar10 + 1" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 < 0) {\n        return 0;\n      }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar9 = (ulong)iVar4;" (assignment_expression "uVar9 = (ulong)iVar4" identifier = (cast_expression "(ulong)iVar4" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "lVar11 = (long)__fd;" (assignment_expression "lVar11 = (long)__fd" identifier = (cast_expression "(long)__fd" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "__fd = iVar4;" (assignment_expression "__fd = iVar4" identifier = identifier) ;) }) while (parenthesized_expression "(uVar9 < uVar8)" ( (binary_expression "uVar9 < uVar8" identifier < identifier) )) ;) })) comment (expression_statement "FUN_0016cdf0("../../gold/descriptors.cc",0xf2,"close_some_descriptor");" (call_expression "FUN_0016cdf0("../../gold/descriptors.cc",0xf2,"close_some_descriptor")" identifier (argument_list "("../../gold/descriptors.cc",0xf2,"close_some_descriptor")" ( (string_literal ""../../gold/descriptors.cc"" " string_content ") , number_literal , (string_literal ""close_some_descriptor"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: bool close_some_descriptor(Descriptors * this) */\n\nbool __thiscall gold::Descriptors::close_some_descriptor(Descriptors *this)\n\n{\n  uint uVar1;\n  pointer pOVar2;\n  char *pcVar3;\n  Parameters *pPVar4;\n  int iVar5;\n  int *piVar6;\n  char *pcVar7;\n  char *format;\n  ulong uVar8;\n  ulong uVar9;\n  pointer pOVar10;\n  uint __fd;\n  long lVar11;\n  \n  __fd = this->stack_top_;\n  if ((int)__fd < 0) {\n    return false;\n  }\n  pOVar2 = (this->open_descriptors_).\n           super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n           ._M_impl._M_start;\n  uVar9 = (ulong)(int)__fd;\n  uVar8 = (long)(this->open_descriptors_).\n                super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n                ._M_impl._M_finish - (long)pOVar2 >> 4;\n  if (uVar9 < uVar8) {\n    lVar11 = -1;\n    do {\n      pOVar10 = pOVar2 + uVar9;\n      if ((pOVar10->inuse == false) && (pOVar10->is_write == false)) {\n        iVar5 = close(__fd);\n        if (iVar5 < 0) {\n          piVar6 = __errno_location();\n          pcVar7 = strerror(*piVar6);\n          pcVar3 = pOVar10->name;\n          format = (char *)gettext("while closing %s: %s");\n          gold_warning(format,pcVar3,pcVar7);\n        }\n        pPVar4 = parameters;\n        this->current_ = this->current_ + -1;\n        if ((pPVar4->options_ == (General_options *)0x0) || ((pPVar4->debug_ & 4) == 0)) {\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }\n        else {\n          Errors::debug(pPVar4->errors_,"Closed descriptor %d for \"%s\"",(ulong)__fd,pOVar10->name)\n          ;\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }\n        if ((int)lVar11 == -1) {\n          this->stack_top_ = iVar5;\n        }\n        else {\n          (this->open_descriptors_).\n          super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n          ._M_impl._M_start[lVar11].stack_next = iVar5;\n        }\n        pOVar10->stack_next = -1;\n        pOVar10->is_on_stack = false;\n        return true;\n      }\n      uVar1 = pOVar10->stack_next;\n      if ((int)uVar1 < 0) {\n        return false;\n      }\n      uVar9 = (ulong)(int)uVar1;\n      lVar11 = (long)(int)__fd;\n      __fd = uVar1;\n    } while (uVar9 < uVar8);\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/descriptors.cc",0xf2,"close_some_descriptor");\n}\n\n" comment comment (function_definition "bool __thiscall gold::Descriptors::close_some_descriptor(Descriptors *this)\n\n{\n  uint uVar1;\n  pointer pOVar2;\n  char *pcVar3;\n  Parameters *pPVar4;\n  int iVar5;\n  int *piVar6;\n  char *pcVar7;\n  char *format;\n  ulong uVar8;\n  ulong uVar9;\n  pointer pOVar10;\n  uint __fd;\n  long lVar11;\n  \n  __fd = this->stack_top_;\n  if ((int)__fd < 0) {\n    return false;\n  }\n  pOVar2 = (this->open_descriptors_).\n           super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n           ._M_impl._M_start;\n  uVar9 = (ulong)(int)__fd;\n  uVar8 = (long)(this->open_descriptors_).\n                super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n                ._M_impl._M_finish - (long)pOVar2 >> 4;\n  if (uVar9 < uVar8) {\n    lVar11 = -1;\n    do {\n      pOVar10 = pOVar2 + uVar9;\n      if ((pOVar10->inuse == false) && (pOVar10->is_write == false)) {\n        iVar5 = close(__fd);\n        if (iVar5 < 0) {\n          piVar6 = __errno_location();\n          pcVar7 = strerror(*piVar6);\n          pcVar3 = pOVar10->name;\n          format = (char *)gettext("while closing %s: %s");\n          gold_warning(format,pcVar3,pcVar7);\n        }\n        pPVar4 = parameters;\n        this->current_ = this->current_ + -1;\n        if ((pPVar4->options_ == (General_options *)0x0) || ((pPVar4->debug_ & 4) == 0)) {\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }\n        else {\n          Errors::debug(pPVar4->errors_,"Closed descriptor %d for \"%s\"",(ulong)__fd,pOVar10->name)\n          ;\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }\n        if ((int)lVar11 == -1) {\n          this->stack_top_ = iVar5;\n        }\n        else {\n          (this->open_descriptors_).\n          super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n          ._M_impl._M_start[lVar11].stack_next = iVar5;\n        }\n        pOVar10->stack_next = -1;\n        pOVar10->is_on_stack = false;\n        return true;\n      }\n      uVar1 = pOVar10->stack_next;\n      if ((int)uVar1 < 0) {\n        return false;\n      }\n      uVar9 = (ulong)(int)uVar1;\n      lVar11 = (long)(int)__fd;\n      __fd = uVar1;\n    } while (uVar9 < uVar8);\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/descriptors.cc",0xf2,"close_some_descriptor");\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Descriptors::" identifier : : identifier : :) (function_declarator "close_some_descriptor(Descriptors *this)" identifier (parameter_list "(Descriptors *this)" ( (parameter_declaration "Descriptors *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  pointer pOVar2;\n  char *pcVar3;\n  Parameters *pPVar4;\n  int iVar5;\n  int *piVar6;\n  char *pcVar7;\n  char *format;\n  ulong uVar8;\n  ulong uVar9;\n  pointer pOVar10;\n  uint __fd;\n  long lVar11;\n  \n  __fd = this->stack_top_;\n  if ((int)__fd < 0) {\n    return false;\n  }\n  pOVar2 = (this->open_descriptors_).\n           super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n           ._M_impl._M_start;\n  uVar9 = (ulong)(int)__fd;\n  uVar8 = (long)(this->open_descriptors_).\n                super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n                ._M_impl._M_finish - (long)pOVar2 >> 4;\n  if (uVar9 < uVar8) {\n    lVar11 = -1;\n    do {\n      pOVar10 = pOVar2 + uVar9;\n      if ((pOVar10->inuse == false) && (pOVar10->is_write == false)) {\n        iVar5 = close(__fd);\n        if (iVar5 < 0) {\n          piVar6 = __errno_location();\n          pcVar7 = strerror(*piVar6);\n          pcVar3 = pOVar10->name;\n          format = (char *)gettext("while closing %s: %s");\n          gold_warning(format,pcVar3,pcVar7);\n        }\n        pPVar4 = parameters;\n        this->current_ = this->current_ + -1;\n        if ((pPVar4->options_ == (General_options *)0x0) || ((pPVar4->debug_ & 4) == 0)) {\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }\n        else {\n          Errors::debug(pPVar4->errors_,"Closed descriptor %d for \"%s\"",(ulong)__fd,pOVar10->name)\n          ;\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }\n        if ((int)lVar11 == -1) {\n          this->stack_top_ = iVar5;\n        }\n        else {\n          (this->open_descriptors_).\n          super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n          ._M_impl._M_start[lVar11].stack_next = iVar5;\n        }\n        pOVar10->stack_next = -1;\n        pOVar10->is_on_stack = false;\n        return true;\n      }\n      uVar1 = pOVar10->stack_next;\n      if ((int)uVar1 < 0) {\n        return false;\n      }\n      uVar9 = (ulong)(int)uVar1;\n      lVar11 = (long)(int)__fd;\n      __fd = uVar1;\n    } while (uVar9 < uVar8);\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/descriptors.cc",0xf2,"close_some_descriptor");\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "pointer pOVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "Parameters *pPVar4;" type_identifier (pointer_declarator "*pPVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "ulong uVar8;" type_identifier identifier ;) (declaration "ulong uVar9;" type_identifier identifier ;) (declaration "pointer pOVar10;" type_identifier identifier ;) (declaration "uint __fd;" type_identifier identifier ;) (declaration "long lVar11;" (sized_type_specifier "long" long) identifier ;) (expression_statement "__fd = this->stack_top_;" (assignment_expression "__fd = this->stack_top_" identifier = (field_expression "this->stack_top_" identifier -> field_identifier)) ;) (if_statement "if ((int)__fd < 0) {\n    return false;\n  }" if (parenthesized_expression "((int)__fd < 0)" ( (binary_expression "(int)__fd < 0" (cast_expression "(int)__fd" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (ERROR "pOVar2 = (this->open_descriptors_).\n           super__Vector_base<gold::" (assignment_expression "pOVar2 = (this->open_descriptors_).\n           super__Vector_base<gold" identifier = (binary_expression "(this->open_descriptors_).\n           super__Vector_base<gold" (field_expression "(this->open_descriptors_).\n           super__Vector_base" (parenthesized_expression "(this->open_descriptors_)" ( (field_expression "this->open_descriptors_" identifier -> field_identifier) )) . field_identifier) < identifier)) : :) (labeled_statement "Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n           ._M_impl._M_start;" statement_identifier (ERROR "::Open_descriptor,_std::allocator<gold:" : : (comma_expression "Open_descriptor,_std" identifier , identifier) : : (binary_expression "allocator<gold" identifier < identifier) :) : (labeled_statement "Descriptors::Open_descriptor>_>\n           ._M_impl._M_start;" statement_identifier : (ERROR ":" :) (expression_statement "Open_descriptor>_>\n           ._M_impl._M_start;" (field_expression "Open_descriptor>_>\n           ._M_impl._M_start" (field_expression "Open_descriptor>_>\n           ._M_impl" (binary_expression "Open_descriptor>_" identifier > identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;))) (expression_statement "uVar9 = (ulong)(int)__fd;" (assignment_expression "uVar9 = (ulong)(int)__fd" identifier = (cast_expression "(ulong)(int)__fd" ( (type_descriptor "ulong" type_identifier) ) (cast_expression "(int)__fd" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (ERROR "uVar8 = (long)(this->open_descriptors_).\n                super__Vector_base<gold::" (assignment_expression "uVar8 = (long)(this->open_descriptors_).\n                super__Vector_base<gold" identifier = (binary_expression "(long)(this->open_descriptors_).\n                super__Vector_base<gold" (cast_expression "(long)(this->open_descriptors_).\n                super__Vector_base" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "(this->open_descriptors_).\n                super__Vector_base" (parenthesized_expression "(this->open_descriptors_)" ( (field_expression "this->open_descriptors_" identifier -> field_identifier) )) . field_identifier)) < identifier)) : :) (labeled_statement "Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n                ._M_impl._M_finish - (long)pOVar2 >> 4;" statement_identifier (ERROR "::Open_descriptor,_std::allocator<gold:" : : (comma_expression "Open_descriptor,_std" identifier , identifier) : : (binary_expression "allocator<gold" identifier < identifier) :) : (labeled_statement "Descriptors::Open_descriptor>_>\n                ._M_impl._M_finish - (long)pOVar2 >> 4;" statement_identifier : (ERROR ":" :) (expression_statement "Open_descriptor>_>\n                ._M_impl._M_finish - (long)pOVar2 >> 4;" (binary_expression "Open_descriptor>_>\n                ._M_impl._M_finish - (long)pOVar2 >> 4" (binary_expression "Open_descriptor>_>\n                ._M_impl._M_finish - (long)pOVar2" (field_expression "Open_descriptor>_>\n                ._M_impl._M_finish" (field_expression "Open_descriptor>_>\n                ._M_impl" (binary_expression "Open_descriptor>_" identifier > identifier) (ERROR ">" >) . field_identifier) . field_identifier) - (cast_expression "(long)pOVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal) ;))) (if_statement "if (uVar9 < uVar8) {\n    lVar11 = -1;\n    do {\n      pOVar10 = pOVar2 + uVar9;\n      if ((pOVar10->inuse == false) && (pOVar10->is_write == false)) {\n        iVar5 = close(__fd);\n        if (iVar5 < 0) {\n          piVar6 = __errno_location();\n          pcVar7 = strerror(*piVar6);\n          pcVar3 = pOVar10->name;\n          format = (char *)gettext("while closing %s: %s");\n          gold_warning(format,pcVar3,pcVar7);\n        }\n        pPVar4 = parameters;\n        this->current_ = this->current_ + -1;\n        if ((pPVar4->options_ == (General_options *)0x0) || ((pPVar4->debug_ & 4) == 0)) {\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }\n        else {\n          Errors::debug(pPVar4->errors_,"Closed descriptor %d for \"%s\"",(ulong)__fd,pOVar10->name)\n          ;\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }\n        if ((int)lVar11 == -1) {\n          this->stack_top_ = iVar5;\n        }\n        else {\n          (this->open_descriptors_).\n          super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n          ._M_impl._M_start[lVar11].stack_next = iVar5;\n        }\n        pOVar10->stack_next = -1;\n        pOVar10->is_on_stack = false;\n        return true;\n      }\n      uVar1 = pOVar10->stack_next;\n      if ((int)uVar1 < 0) {\n        return false;\n      }\n      uVar9 = (ulong)(int)uVar1;\n      lVar11 = (long)(int)__fd;\n      __fd = uVar1;\n    } while (uVar9 < uVar8);\n  }" if (parenthesized_expression "(uVar9 < uVar8)" ( (binary_expression "uVar9 < uVar8" identifier < identifier) )) (compound_statement "{\n    lVar11 = -1;\n    do {\n      pOVar10 = pOVar2 + uVar9;\n      if ((pOVar10->inuse == false) && (pOVar10->is_write == false)) {\n        iVar5 = close(__fd);\n        if (iVar5 < 0) {\n          piVar6 = __errno_location();\n          pcVar7 = strerror(*piVar6);\n          pcVar3 = pOVar10->name;\n          format = (char *)gettext("while closing %s: %s");\n          gold_warning(format,pcVar3,pcVar7);\n        }\n        pPVar4 = parameters;\n        this->current_ = this->current_ + -1;\n        if ((pPVar4->options_ == (General_options *)0x0) || ((pPVar4->debug_ & 4) == 0)) {\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }\n        else {\n          Errors::debug(pPVar4->errors_,"Closed descriptor %d for \"%s\"",(ulong)__fd,pOVar10->name)\n          ;\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }\n        if ((int)lVar11 == -1) {\n          this->stack_top_ = iVar5;\n        }\n        else {\n          (this->open_descriptors_).\n          super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n          ._M_impl._M_start[lVar11].stack_next = iVar5;\n        }\n        pOVar10->stack_next = -1;\n        pOVar10->is_on_stack = false;\n        return true;\n      }\n      uVar1 = pOVar10->stack_next;\n      if ((int)uVar1 < 0) {\n        return false;\n      }\n      uVar9 = (ulong)(int)uVar1;\n      lVar11 = (long)(int)__fd;\n      __fd = uVar1;\n    } while (uVar9 < uVar8);\n  }" { (expression_statement "lVar11 = -1;" (assignment_expression "lVar11 = -1" identifier = number_literal) ;) (do_statement "do {\n      pOVar10 = pOVar2 + uVar9;\n      if ((pOVar10->inuse == false) && (pOVar10->is_write == false)) {\n        iVar5 = close(__fd);\n        if (iVar5 < 0) {\n          piVar6 = __errno_location();\n          pcVar7 = strerror(*piVar6);\n          pcVar3 = pOVar10->name;\n          format = (char *)gettext("while closing %s: %s");\n          gold_warning(format,pcVar3,pcVar7);\n        }\n        pPVar4 = parameters;\n        this->current_ = this->current_ + -1;\n        if ((pPVar4->options_ == (General_options *)0x0) || ((pPVar4->debug_ & 4) == 0)) {\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }\n        else {\n          Errors::debug(pPVar4->errors_,"Closed descriptor %d for \"%s\"",(ulong)__fd,pOVar10->name)\n          ;\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }\n        if ((int)lVar11 == -1) {\n          this->stack_top_ = iVar5;\n        }\n        else {\n          (this->open_descriptors_).\n          super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n          ._M_impl._M_start[lVar11].stack_next = iVar5;\n        }\n        pOVar10->stack_next = -1;\n        pOVar10->is_on_stack = false;\n        return true;\n      }\n      uVar1 = pOVar10->stack_next;\n      if ((int)uVar1 < 0) {\n        return false;\n      }\n      uVar9 = (ulong)(int)uVar1;\n      lVar11 = (long)(int)__fd;\n      __fd = uVar1;\n    } while (uVar9 < uVar8);" do (compound_statement "{\n      pOVar10 = pOVar2 + uVar9;\n      if ((pOVar10->inuse == false) && (pOVar10->is_write == false)) {\n        iVar5 = close(__fd);\n        if (iVar5 < 0) {\n          piVar6 = __errno_location();\n          pcVar7 = strerror(*piVar6);\n          pcVar3 = pOVar10->name;\n          format = (char *)gettext("while closing %s: %s");\n          gold_warning(format,pcVar3,pcVar7);\n        }\n        pPVar4 = parameters;\n        this->current_ = this->current_ + -1;\n        if ((pPVar4->options_ == (General_options *)0x0) || ((pPVar4->debug_ & 4) == 0)) {\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }\n        else {\n          Errors::debug(pPVar4->errors_,"Closed descriptor %d for \"%s\"",(ulong)__fd,pOVar10->name)\n          ;\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }\n        if ((int)lVar11 == -1) {\n          this->stack_top_ = iVar5;\n        }\n        else {\n          (this->open_descriptors_).\n          super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n          ._M_impl._M_start[lVar11].stack_next = iVar5;\n        }\n        pOVar10->stack_next = -1;\n        pOVar10->is_on_stack = false;\n        return true;\n      }\n      uVar1 = pOVar10->stack_next;\n      if ((int)uVar1 < 0) {\n        return false;\n      }\n      uVar9 = (ulong)(int)uVar1;\n      lVar11 = (long)(int)__fd;\n      __fd = uVar1;\n    }" { (expression_statement "pOVar10 = pOVar2 + uVar9;" (assignment_expression "pOVar10 = pOVar2 + uVar9" identifier = (binary_expression "pOVar2 + uVar9" identifier + identifier)) ;) (if_statement "if ((pOVar10->inuse == false) && (pOVar10->is_write == false)) {\n        iVar5 = close(__fd);\n        if (iVar5 < 0) {\n          piVar6 = __errno_location();\n          pcVar7 = strerror(*piVar6);\n          pcVar3 = pOVar10->name;\n          format = (char *)gettext("while closing %s: %s");\n          gold_warning(format,pcVar3,pcVar7);\n        }\n        pPVar4 = parameters;\n        this->current_ = this->current_ + -1;\n        if ((pPVar4->options_ == (General_options *)0x0) || ((pPVar4->debug_ & 4) == 0)) {\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }\n        else {\n          Errors::debug(pPVar4->errors_,"Closed descriptor %d for \"%s\"",(ulong)__fd,pOVar10->name)\n          ;\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }\n        if ((int)lVar11 == -1) {\n          this->stack_top_ = iVar5;\n        }\n        else {\n          (this->open_descriptors_).\n          super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n          ._M_impl._M_start[lVar11].stack_next = iVar5;\n        }\n        pOVar10->stack_next = -1;\n        pOVar10->is_on_stack = false;\n        return true;\n      }" if (parenthesized_expression "((pOVar10->inuse == false) && (pOVar10->is_write == false))" ( (binary_expression "(pOVar10->inuse == false) && (pOVar10->is_write == false)" (parenthesized_expression "(pOVar10->inuse == false)" ( (binary_expression "pOVar10->inuse == false" (field_expression "pOVar10->inuse" identifier -> field_identifier) == false) )) && (parenthesized_expression "(pOVar10->is_write == false)" ( (binary_expression "pOVar10->is_write == false" (field_expression "pOVar10->is_write" identifier -> field_identifier) == false) ))) )) (compound_statement "{\n        iVar5 = close(__fd);\n        if (iVar5 < 0) {\n          piVar6 = __errno_location();\n          pcVar7 = strerror(*piVar6);\n          pcVar3 = pOVar10->name;\n          format = (char *)gettext("while closing %s: %s");\n          gold_warning(format,pcVar3,pcVar7);\n        }\n        pPVar4 = parameters;\n        this->current_ = this->current_ + -1;\n        if ((pPVar4->options_ == (General_options *)0x0) || ((pPVar4->debug_ & 4) == 0)) {\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }\n        else {\n          Errors::debug(pPVar4->errors_,"Closed descriptor %d for \"%s\"",(ulong)__fd,pOVar10->name)\n          ;\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }\n        if ((int)lVar11 == -1) {\n          this->stack_top_ = iVar5;\n        }\n        else {\n          (this->open_descriptors_).\n          super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n          ._M_impl._M_start[lVar11].stack_next = iVar5;\n        }\n        pOVar10->stack_next = -1;\n        pOVar10->is_on_stack = false;\n        return true;\n      }" { (expression_statement "iVar5 = close(__fd);" (assignment_expression "iVar5 = close(__fd)" identifier = (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier )))) ;) (if_statement "if (iVar5 < 0) {\n          piVar6 = __errno_location();\n          pcVar7 = strerror(*piVar6);\n          pcVar3 = pOVar10->name;\n          format = (char *)gettext("while closing %s: %s");\n          gold_warning(format,pcVar3,pcVar7);\n        }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n          piVar6 = __errno_location();\n          pcVar7 = strerror(*piVar6);\n          pcVar3 = pOVar10->name;\n          format = (char *)gettext("while closing %s: %s");\n          gold_warning(format,pcVar3,pcVar7);\n        }" { (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar7 = strerror(*piVar6);" (assignment_expression "pcVar7 = strerror(*piVar6)" identifier = (call_expression "strerror(*piVar6)" identifier (argument_list "(*piVar6)" ( (pointer_expression "*piVar6" * identifier) )))) ;) (expression_statement "pcVar3 = pOVar10->name;" (assignment_expression "pcVar3 = pOVar10->name" identifier = (field_expression "pOVar10->name" identifier -> field_identifier)) ;) (expression_statement "format = (char *)gettext("while closing %s: %s");" (assignment_expression "format = (char *)gettext("while closing %s: %s")" identifier = (cast_expression "(char *)gettext("while closing %s: %s")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("while closing %s: %s")" identifier (argument_list "("while closing %s: %s")" ( (string_literal ""while closing %s: %s"" " string_content ") ))))) ;) (expression_statement "gold_warning(format,pcVar3,pcVar7);" (call_expression "gold_warning(format,pcVar3,pcVar7)" identifier (argument_list "(format,pcVar3,pcVar7)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "pPVar4 = parameters;" (assignment_expression "pPVar4 = parameters" identifier = identifier) ;) (expression_statement "this->current_ = this->current_ + -1;" (assignment_expression "this->current_ = this->current_ + -1" (field_expression "this->current_" identifier -> field_identifier) = (binary_expression "this->current_ + -1" (field_expression "this->current_" identifier -> field_identifier) + number_literal)) ;) (if_statement "if ((pPVar4->options_ == (General_options *)0x0) || ((pPVar4->debug_ & 4) == 0)) {\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }\n        else {\n          Errors::debug(pPVar4->errors_,"Closed descriptor %d for \"%s\"",(ulong)__fd,pOVar10->name)\n          ;\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }" if (parenthesized_expression "((pPVar4->options_ == (General_options *)0x0) || ((pPVar4->debug_ & 4) == 0))" ( (binary_expression "(pPVar4->options_ == (General_options *)0x0) || ((pPVar4->debug_ & 4) == 0)" (parenthesized_expression "(pPVar4->options_ == (General_options *)0x0)" ( (binary_expression "pPVar4->options_ == (General_options *)0x0" (field_expression "pPVar4->options_" identifier -> field_identifier) == (cast_expression "(General_options *)0x0" ( (type_descriptor "General_options *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "((pPVar4->debug_ & 4) == 0)" ( (binary_expression "(pPVar4->debug_ & 4) == 0" (parenthesized_expression "(pPVar4->debug_ & 4)" ( (binary_expression "pPVar4->debug_ & 4" (field_expression "pPVar4->debug_" identifier -> field_identifier) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }" { (expression_statement "pOVar10->name = (char *)0x0;" (assignment_expression "pOVar10->name = (char *)0x0" (field_expression "pOVar10->name" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar5 = pOVar10->stack_next;" (assignment_expression "iVar5 = pOVar10->stack_next" identifier = (field_expression "pOVar10->stack_next" identifier -> field_identifier)) ;) }) (else_clause "else {\n          Errors::debug(pPVar4->errors_,"Closed descriptor %d for \"%s\"",(ulong)__fd,pOVar10->name)\n          ;\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }" else (compound_statement "{\n          Errors::debug(pPVar4->errors_,"Closed descriptor %d for \"%s\"",(ulong)__fd,pOVar10->name)\n          ;\n          pOVar10->name = (char *)0x0;\n          iVar5 = pOVar10->stack_next;\n        }" { (labeled_statement "Errors::debug(pPVar4->errors_,"Closed descriptor %d for \"%s\"",(ulong)__fd,pOVar10->name)\n          ;" statement_identifier : (ERROR ":" :) (expression_statement "debug(pPVar4->errors_,"Closed descriptor %d for \"%s\"",(ulong)__fd,pOVar10->name)\n          ;" (call_expression "debug(pPVar4->errors_,"Closed descriptor %d for \"%s\"",(ulong)__fd,pOVar10->name)" identifier (argument_list "(pPVar4->errors_,"Closed descriptor %d for \"%s\"",(ulong)__fd,pOVar10->name)" ( (field_expression "pPVar4->errors_" identifier -> field_identifier) , (string_literal ""Closed descriptor %d for \"%s\""" " string_content escape_sequence string_content escape_sequence ") , (cast_expression "(ulong)__fd" ( (type_descriptor "ulong" type_identifier) ) identifier) , (field_expression "pOVar10->name" identifier -> field_identifier) ))) ;)) (expression_statement "pOVar10->name = (char *)0x0;" (assignment_expression "pOVar10->name = (char *)0x0" (field_expression "pOVar10->name" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar5 = pOVar10->stack_next;" (assignment_expression "iVar5 = pOVar10->stack_next" identifier = (field_expression "pOVar10->stack_next" identifier -> field_identifier)) ;) }))) (if_statement "if ((int)lVar11 == -1) {\n          this->stack_top_ = iVar5;\n        }\n        else {\n          (this->open_descriptors_).\n          super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n          ._M_impl._M_start[lVar11].stack_next = iVar5;\n        }" if (parenthesized_expression "((int)lVar11 == -1)" ( (binary_expression "(int)lVar11 == -1" (cast_expression "(int)lVar11" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n          this->stack_top_ = iVar5;\n        }" { (expression_statement "this->stack_top_ = iVar5;" (assignment_expression "this->stack_top_ = iVar5" (field_expression "this->stack_top_" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n          (this->open_descriptors_).\n          super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n          ._M_impl._M_start[lVar11].stack_next = iVar5;\n        }" else (compound_statement "{\n          (this->open_descriptors_).\n          super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n          ._M_impl._M_start[lVar11].stack_next = iVar5;\n        }" { (ERROR "(this->open_descriptors_).\n          super__Vector_base<gold::" (binary_expression "(this->open_descriptors_).\n          super__Vector_base<gold" (field_expression "(this->open_descriptors_).\n          super__Vector_base" (parenthesized_expression "(this->open_descriptors_)" ( (field_expression "this->open_descriptors_" identifier -> field_identifier) )) . field_identifier) < identifier) : :) (labeled_statement "Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n          ._M_impl._M_start[lVar11].stack_next = iVar5;" statement_identifier (ERROR "::Open_descriptor,_std::allocator<gold:" : : (comma_expression "Open_descriptor,_std" identifier , identifier) : : (binary_expression "allocator<gold" identifier < identifier) :) : (labeled_statement "Descriptors::Open_descriptor>_>\n          ._M_impl._M_start[lVar11].stack_next = iVar5;" statement_identifier : (ERROR ":" :) (expression_statement "Open_descriptor>_>\n          ._M_impl._M_start[lVar11].stack_next = iVar5;" (assignment_expression "Open_descriptor>_>\n          ._M_impl._M_start[lVar11].stack_next = iVar5" (field_expression "Open_descriptor>_>\n          ._M_impl._M_start[lVar11].stack_next" (subscript_expression "Open_descriptor>_>\n          ._M_impl._M_start[lVar11]" (field_expression "Open_descriptor>_>\n          ._M_impl._M_start" (field_expression "Open_descriptor>_>\n          ._M_impl" (binary_expression "Open_descriptor>_" identifier > identifier) (ERROR ">" >) . field_identifier) . field_identifier) [ identifier ]) . field_identifier) = identifier) ;))) }))) (expression_statement "pOVar10->stack_next = -1;" (assignment_expression "pOVar10->stack_next = -1" (field_expression "pOVar10->stack_next" identifier -> field_identifier) = number_literal) ;) (expression_statement "pOVar10->is_on_stack = false;" (assignment_expression "pOVar10->is_on_stack = false" (field_expression "pOVar10->is_on_stack" identifier -> field_identifier) = false) ;) (return_statement "return true;" return true ;) })) (expression_statement "uVar1 = pOVar10->stack_next;" (assignment_expression "uVar1 = pOVar10->stack_next" identifier = (field_expression "pOVar10->stack_next" identifier -> field_identifier)) ;) (if_statement "if ((int)uVar1 < 0) {\n        return false;\n      }" if (parenthesized_expression "((int)uVar1 < 0)" ( (binary_expression "(int)uVar1 < 0" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) (expression_statement "uVar9 = (ulong)(int)uVar1;" (assignment_expression "uVar9 = (ulong)(int)uVar1" identifier = (cast_expression "(ulong)(int)uVar1" ( (type_descriptor "ulong" type_identifier) ) (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "lVar11 = (long)(int)__fd;" (assignment_expression "lVar11 = (long)(int)__fd" identifier = (cast_expression "(long)(int)__fd" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)__fd" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "__fd = uVar1;" (assignment_expression "__fd = uVar1" identifier = identifier) ;) }) while (parenthesized_expression "(uVar9 < uVar8)" ( (binary_expression "uVar9 < uVar8" identifier < identifier) )) ;) })) comment (expression_statement "do_gold_unreachable("../../gold/descriptors.cc",0xf2,"close_some_descriptor");" (call_expression "do_gold_unreachable("../../gold/descriptors.cc",0xf2,"close_some_descriptor")" identifier (argument_list "("../../gold/descriptors.cc",0xf2,"close_some_descriptor")" ( (string_literal ""../../gold/descriptors.cc"" " string_content ") , number_literal , (string_literal ""close_some_descriptor"" " string_content ") ))) ;) })))
(translation_unit "undefined8 FUN_0023d780(long param_1)\n\n{\n  undefined4 uVar1;\n  undefined8 uVar2;\n  undefined *puVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined8 uVar7;\n  ulong uVar8;\n  ulong uVar9;\n  undefined8 *puVar10;\n  int __fd;\n  long lVar11;\n  \n  __fd = *(int *)(param_1 + 0x40);\n  if (__fd < 0) {\n    return 0;\n  }\n  uVar9 = (ulong)__fd;\n  uVar8 = *(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x28) >> 4;\n  if (uVar9 < uVar8) {\n    lVar11 = -1;\n    do {\n      puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));\n      if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }\n      iVar4 = *(int *)(puVar10 + 1);\n      if (iVar4 < 0) {\n        return 0;\n      }\n      uVar9 = (ulong)iVar4;\n      lVar11 = (long)__fd;\n      __fd = iVar4;\n    } while (uVar9 < uVar8);\n  }\n                    \n  FUN_0016cdf0("../../gold/descriptors.cc",0xf2,"close_some_descriptor");\n}\n\n" (function_definition "undefined8 FUN_0023d780(long param_1)\n\n{\n  undefined4 uVar1;\n  undefined8 uVar2;\n  undefined *puVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined8 uVar7;\n  ulong uVar8;\n  ulong uVar9;\n  undefined8 *puVar10;\n  int __fd;\n  long lVar11;\n  \n  __fd = *(int *)(param_1 + 0x40);\n  if (__fd < 0) {\n    return 0;\n  }\n  uVar9 = (ulong)__fd;\n  uVar8 = *(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x28) >> 4;\n  if (uVar9 < uVar8) {\n    lVar11 = -1;\n    do {\n      puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));\n      if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }\n      iVar4 = *(int *)(puVar10 + 1);\n      if (iVar4 < 0) {\n        return 0;\n      }\n      uVar9 = (ulong)iVar4;\n      lVar11 = (long)__fd;\n      __fd = iVar4;\n    } while (uVar9 < uVar8);\n  }\n                    \n  FUN_0016cdf0("../../gold/descriptors.cc",0xf2,"close_some_descriptor");\n}" type_identifier (function_declarator "FUN_0023d780(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined8 uVar2;\n  undefined *puVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined8 uVar7;\n  ulong uVar8;\n  ulong uVar9;\n  undefined8 *puVar10;\n  int __fd;\n  long lVar11;\n  \n  __fd = *(int *)(param_1 + 0x40);\n  if (__fd < 0) {\n    return 0;\n  }\n  uVar9 = (ulong)__fd;\n  uVar8 = *(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x28) >> 4;\n  if (uVar9 < uVar8) {\n    lVar11 = -1;\n    do {\n      puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));\n      if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }\n      iVar4 = *(int *)(puVar10 + 1);\n      if (iVar4 < 0) {\n        return 0;\n      }\n      uVar9 = (ulong)iVar4;\n      lVar11 = (long)__fd;\n      __fd = iVar4;\n    } while (uVar9 < uVar8);\n  }\n                    \n  FUN_0016cdf0("../../gold/descriptors.cc",0xf2,"close_some_descriptor");\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (declaration "ulong uVar8;" type_identifier identifier ;) (declaration "ulong uVar9;" type_identifier identifier ;) (declaration "undefined8 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "int __fd;" primitive_type identifier ;) (declaration "long lVar11;" (sized_type_specifier "long" long) identifier ;) (expression_statement "__fd = *(int *)(param_1 + 0x40);" (assignment_expression "__fd = *(int *)(param_1 + 0x40)" identifier = (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) (if_statement "if (__fd < 0) {\n    return 0;\n  }" if (parenthesized_expression "(__fd < 0)" ( (binary_expression "__fd < 0" identifier < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar9 = (ulong)__fd;" (assignment_expression "uVar9 = (ulong)__fd" identifier = (cast_expression "(ulong)__fd" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar8 = *(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x28) >> 4;" (assignment_expression "uVar8 = *(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x28) >> 4" identifier = (binary_expression "*(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x28) >> 4" (binary_expression "*(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x28)" (pointer_expression "*(long *)(param_1 + 0x30)" * (cast_expression "(long *)(param_1 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) - (pointer_expression "*(long *)(param_1 + 0x28)" * (cast_expression "(long *)(param_1 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) >> number_literal)) ;) (if_statement "if (uVar9 < uVar8) {\n    lVar11 = -1;\n    do {\n      puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));\n      if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }\n      iVar4 = *(int *)(puVar10 + 1);\n      if (iVar4 < 0) {\n        return 0;\n      }\n      uVar9 = (ulong)iVar4;\n      lVar11 = (long)__fd;\n      __fd = iVar4;\n    } while (uVar9 < uVar8);\n  }" if (parenthesized_expression "(uVar9 < uVar8)" ( (binary_expression "uVar9 < uVar8" identifier < identifier) )) (compound_statement "{\n    lVar11 = -1;\n    do {\n      puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));\n      if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }\n      iVar4 = *(int *)(puVar10 + 1);\n      if (iVar4 < 0) {\n        return 0;\n      }\n      uVar9 = (ulong)iVar4;\n      lVar11 = (long)__fd;\n      __fd = iVar4;\n    } while (uVar9 < uVar8);\n  }" { (expression_statement "lVar11 = -1;" (assignment_expression "lVar11 = -1" identifier = number_literal) ;) (do_statement "do {\n      puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));\n      if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }\n      iVar4 = *(int *)(puVar10 + 1);\n      if (iVar4 < 0) {\n        return 0;\n      }\n      uVar9 = (ulong)iVar4;\n      lVar11 = (long)__fd;\n      __fd = iVar4;\n    } while (uVar9 < uVar8);" do (compound_statement "{\n      puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));\n      if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }\n      iVar4 = *(int *)(puVar10 + 1);\n      if (iVar4 < 0) {\n        return 0;\n      }\n      uVar9 = (ulong)iVar4;\n      lVar11 = (long)__fd;\n      __fd = iVar4;\n    }" { (expression_statement "puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));" (assignment_expression "puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28))" identifier = (cast_expression "(undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28))" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar9 * 0x10 + *(long *)(param_1 + 0x28))" ( (binary_expression "uVar9 * 0x10 + *(long *)(param_1 + 0x28)" (binary_expression "uVar9 * 0x10" identifier * number_literal) + (pointer_expression "*(long *)(param_1 + 0x28)" * (cast_expression "(long *)(param_1 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) )))) ;) (if_statement "if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }" if (parenthesized_expression "((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0'))" ( (binary_expression "(*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')" (parenthesized_expression "(*(char *)((long)puVar10 + 0xc) == '\0')" ( (binary_expression "*(char *)((long)puVar10 + 0xc) == '\0'" (pointer_expression "*(char *)((long)puVar10 + 0xc)" * (cast_expression "(char *)((long)puVar10 + 0xc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar10 + 0xc)" ( (binary_expression "(long)puVar10 + 0xc" (cast_expression "(long)puVar10" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(*(char *)((long)puVar10 + 0xd) == '\0')" ( (binary_expression "*(char *)((long)puVar10 + 0xd) == '\0'" (pointer_expression "*(char *)((long)puVar10 + 0xd)" * (cast_expression "(char *)((long)puVar10 + 0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar10 + 0xd)" ( (binary_expression "(long)puVar10 + 0xd" (cast_expression "(long)puVar10" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }" { (expression_statement "iVar4 = close(__fd);" (assignment_expression "iVar4 = close(__fd)" identifier = (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier )))) ;) (if_statement "if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar6 = strerror(*piVar5);" (assignment_expression "pcVar6 = strerror(*piVar5)" identifier = (call_expression "strerror(*piVar5)" identifier (argument_list "(*piVar5)" ( (pointer_expression "*piVar5" * identifier) )))) ;) (expression_statement "uVar2 = *puVar10;" (assignment_expression "uVar2 = *puVar10" identifier = (pointer_expression "*puVar10" * identifier)) ;) (expression_statement "uVar7 = gettext("while closing %s: %s");" (assignment_expression "uVar7 = gettext("while closing %s: %s")" identifier = (call_expression "gettext("while closing %s: %s")" identifier (argument_list "("while closing %s: %s")" ( (string_literal ""while closing %s: %s"" " string_content ") )))) ;) (expression_statement "FUN_00169150(uVar7,uVar2,pcVar6);" (call_expression "FUN_00169150(uVar7,uVar2,pcVar6)" identifier (argument_list "(uVar7,uVar2,pcVar6)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "puVar3 = PTR_DAT_003be6b0;" (assignment_expression "puVar3 = PTR_DAT_003be6b0" identifier = identifier) ;) (expression_statement "*(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;" (assignment_expression "*(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x44) + -1" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }" if (parenthesized_expression "((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0))" ( (binary_expression "(*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)" (parenthesized_expression "(*(long *)(puVar3 + 0x10) == 0)" ( (binary_expression "*(long *)(puVar3 + 0x10) == 0" (pointer_expression "*(long *)(puVar3 + 0x10)" * (cast_expression "(long *)(puVar3 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x10)" ( (binary_expression "puVar3 + 0x10" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "((puVar3[0x24] & 4) == 0)" ( (binary_expression "(puVar3[0x24] & 4) == 0" (parenthesized_expression "(puVar3[0x24] & 4)" ( (binary_expression "puVar3[0x24] & 4" (subscript_expression "puVar3[0x24]" identifier [ number_literal ]) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }" { (expression_statement "*puVar10 = 0;" (assignment_expression "*puVar10 = 0" (pointer_expression "*puVar10" * identifier) = number_literal) ;) (expression_statement "uVar1 = *(undefined4 *)(puVar10 + 1);" (assignment_expression "uVar1 = *(undefined4 *)(puVar10 + 1)" identifier = (pointer_expression "*(undefined4 *)(puVar10 + 1)" * (cast_expression "(undefined4 *)(puVar10 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 1)" ( (binary_expression "puVar10 + 1" identifier + number_literal) ))))) ;) }) (else_clause "else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }" else (compound_statement "{\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }" { (expression_statement "FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);" (call_expression "FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10)" identifier (argument_list "(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10)" ( (pointer_expression "*(undefined8 *)puVar3" * (cast_expression "(undefined8 *)puVar3" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (string_literal ""Closed descriptor %d for \"%s\""" " string_content escape_sequence string_content escape_sequence ") , identifier , (pointer_expression "*puVar10" * identifier) ))) ;) (expression_statement "*puVar10 = 0;" (assignment_expression "*puVar10 = 0" (pointer_expression "*puVar10" * identifier) = number_literal) ;) (expression_statement "uVar1 = *(undefined4 *)(puVar10 + 1);" (assignment_expression "uVar1 = *(undefined4 *)(puVar10 + 1)" identifier = (pointer_expression "*(undefined4 *)(puVar10 + 1)" * (cast_expression "(undefined4 *)(puVar10 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 1)" ( (binary_expression "puVar10 + 1" identifier + number_literal) ))))) ;) }))) (if_statement "if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }" if (parenthesized_expression "((int)lVar11 == -1)" ( (binary_expression "(int)lVar11 == -1" (cast_expression "(int)lVar11" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }" { (expression_statement "*(undefined4 *)(param_1 + 0x40) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x40) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x40)" * (cast_expression "(undefined4 *)(param_1 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }" else (compound_statement "{\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }" { (expression_statement "*(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;" (assignment_expression "*(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1" (pointer_expression "*(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8)" * (cast_expression "(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8)" ( (binary_expression "*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8" (binary_expression "*(long *)(param_1 + 0x28) + lVar11 * 0x10" (pointer_expression "*(long *)(param_1 + 0x28)" * (cast_expression "(long *)(param_1 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) + (binary_expression "lVar11 * 0x10" identifier * number_literal)) + number_literal) )))) = identifier) ;) }))) (expression_statement "*(undefined4 *)(puVar10 + 1) = 0xffffffff;" (assignment_expression "*(undefined4 *)(puVar10 + 1) = 0xffffffff" (pointer_expression "*(undefined4 *)(puVar10 + 1)" * (cast_expression "(undefined4 *)(puVar10 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 1)" ( (binary_expression "puVar10 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((long)puVar10 + 0xe) = 0;" (assignment_expression "*(undefined1 *)((long)puVar10 + 0xe) = 0" (pointer_expression "*(undefined1 *)((long)puVar10 + 0xe)" * (cast_expression "(undefined1 *)((long)puVar10 + 0xe)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar10 + 0xe)" ( (binary_expression "(long)puVar10 + 0xe" (cast_expression "(long)puVar10" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar4 = *(int *)(puVar10 + 1);" (assignment_expression "iVar4 = *(int *)(puVar10 + 1)" identifier = (pointer_expression "*(int *)(puVar10 + 1)" * (cast_expression "(int *)(puVar10 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 1)" ( (binary_expression "puVar10 + 1" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 < 0) {\n        return 0;\n      }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar9 = (ulong)iVar4;" (assignment_expression "uVar9 = (ulong)iVar4" identifier = (cast_expression "(ulong)iVar4" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "lVar11 = (long)__fd;" (assignment_expression "lVar11 = (long)__fd" identifier = (cast_expression "(long)__fd" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "__fd = iVar4;" (assignment_expression "__fd = iVar4" identifier = identifier) ;) }) while (parenthesized_expression "(uVar9 < uVar8)" ( (binary_expression "uVar9 < uVar8" identifier < identifier) )) ;) })) (expression_statement "FUN_0016cdf0("../../gold/descriptors.cc",0xf2,"close_some_descriptor");" (call_expression "FUN_0016cdf0("../../gold/descriptors.cc",0xf2,"close_some_descriptor")" identifier (argument_list "("../../gold/descriptors.cc",0xf2,"close_some_descriptor")" ( (string_literal ""../../gold/descriptors.cc"" " string_content ") , number_literal , (string_literal ""close_some_descriptor"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , (string_literal " string_content escape_sequence string_content escape_sequence ") , IDENT , (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) + LIT) )))) = IDENT) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "undefined8 FUN_0023d780(long param_1)\n\n{\n  undefined4 uVar1;\n  undefined8 uVar2;\n  undefined *puVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined8 uVar7;\n  ulong uVar8;\n  ulong uVar9;\n  undefined8 *puVar10;\n  int __fd;\n  long lVar11;\n  \n  __fd = *(int *)(param_1 + 0x40);\n  if (__fd < 0) {\n    return 0;\n  }\n  uVar9 = (ulong)__fd;\n  uVar8 = *(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x28) >> 4;\n  if (uVar9 < uVar8) {\n    lVar11 = -1;\n    do {\n      puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));\n      if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }\n      iVar4 = *(int *)(puVar10 + 1);\n      if (iVar4 < 0) {\n        return 0;\n      }\n      uVar9 = (ulong)iVar4;\n      lVar11 = (long)__fd;\n      __fd = iVar4;\n    } while (uVar9 < uVar8);\n  }\n                    \n  FUN_0016cdf0("../../gold/descriptors.cc",0xf2,"close_some_descriptor");\n}" (type_identifier "undefined8") (function_declarator "FUN_0023d780(long param_1)" (identifier "FUN_0023d780") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined8 uVar2;\n  undefined *puVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined8 uVar7;\n  ulong uVar8;\n  ulong uVar9;\n  undefined8 *puVar10;\n  int __fd;\n  long lVar11;\n  \n  __fd = *(int *)(param_1 + 0x40);\n  if (__fd < 0) {\n    return 0;\n  }\n  uVar9 = (ulong)__fd;\n  uVar8 = *(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x28) >> 4;\n  if (uVar9 < uVar8) {\n    lVar11 = -1;\n    do {\n      puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));\n      if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }\n      iVar4 = *(int *)(puVar10 + 1);\n      if (iVar4 < 0) {\n        return 0;\n      }\n      uVar9 = (ulong)iVar4;\n      lVar11 = (long)__fd;\n      __fd = iVar4;\n    } while (uVar9 < uVar8);\n  }\n                    \n  FUN_0016cdf0("../../gold/descriptors.cc",0xf2,"close_some_descriptor");\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "undefined8 uVar7;" (type_identifier "undefined8") (identifier "uVar7") (; ";")) (declaration "ulong uVar8;" (type_identifier "ulong") (identifier "uVar8") (; ";")) (declaration "ulong uVar9;" (type_identifier "ulong") (identifier "uVar9") (; ";")) (declaration "undefined8 *puVar10;" (type_identifier "undefined8") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (declaration "int __fd;" (primitive_type "int") (identifier "__fd") (; ";")) (declaration "long lVar11;" (sized_type_specifier "long" (long "long")) (identifier "lVar11") (; ";")) (expression_statement "__fd = *(int *)(param_1 + 0x40);" (assignment_expression "__fd = *(int *)(param_1 + 0x40)" (identifier "__fd") (= "=") (pointer_expression "*(int *)(param_1 + 0x40)" (* "*") (cast_expression "(int *)(param_1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (if_statement "if (__fd < 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(__fd < 0)" (( "(") (binary_expression "__fd < 0" (identifier "__fd") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar9 = (ulong)__fd;" (assignment_expression "uVar9 = (ulong)__fd" (identifier "uVar9") (= "=") (cast_expression "(ulong)__fd" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "__fd"))) (; ";")) (expression_statement "uVar8 = *(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x28) >> 4;" (assignment_expression "uVar8 = *(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x28) >> 4" (identifier "uVar8") (= "=") (binary_expression "*(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x28) >> 4" (binary_expression "*(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x28)" (pointer_expression "*(long *)(param_1 + 0x30)" (* "*") (cast_expression "(long *)(param_1 + 0x30)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (- "-") (pointer_expression "*(long *)(param_1 + 0x28)" (* "*") (cast_expression "(long *)(param_1 + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (>> ">>") (number_literal "4"))) (; ";")) (if_statement "if (uVar9 < uVar8) {\n    lVar11 = -1;\n    do {\n      puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));\n      if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }\n      iVar4 = *(int *)(puVar10 + 1);\n      if (iVar4 < 0) {\n        return 0;\n      }\n      uVar9 = (ulong)iVar4;\n      lVar11 = (long)__fd;\n      __fd = iVar4;\n    } while (uVar9 < uVar8);\n  }" (if "if") (parenthesized_expression "(uVar9 < uVar8)" (( "(") (binary_expression "uVar9 < uVar8" (identifier "uVar9") (< "<") (identifier "uVar8")) () ")")) (compound_statement "{\n    lVar11 = -1;\n    do {\n      puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));\n      if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }\n      iVar4 = *(int *)(puVar10 + 1);\n      if (iVar4 < 0) {\n        return 0;\n      }\n      uVar9 = (ulong)iVar4;\n      lVar11 = (long)__fd;\n      __fd = iVar4;\n    } while (uVar9 < uVar8);\n  }" ({ "{") (expression_statement "lVar11 = -1;" (assignment_expression "lVar11 = -1" (identifier "lVar11") (= "=") (number_literal "-1")) (; ";")) (do_statement "do {\n      puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));\n      if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }\n      iVar4 = *(int *)(puVar10 + 1);\n      if (iVar4 < 0) {\n        return 0;\n      }\n      uVar9 = (ulong)iVar4;\n      lVar11 = (long)__fd;\n      __fd = iVar4;\n    } while (uVar9 < uVar8);" (do "do") (compound_statement "{\n      puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));\n      if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }\n      iVar4 = *(int *)(puVar10 + 1);\n      if (iVar4 < 0) {\n        return 0;\n      }\n      uVar9 = (ulong)iVar4;\n      lVar11 = (long)__fd;\n      __fd = iVar4;\n    }" ({ "{") (expression_statement "puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));" (assignment_expression "puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28))" (identifier "puVar10") (= "=") (cast_expression "(undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28))" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar9 * 0x10 + *(long *)(param_1 + 0x28))" (( "(") (binary_expression "uVar9 * 0x10 + *(long *)(param_1 + 0x28)" (binary_expression "uVar9 * 0x10" (identifier "uVar9") (* "*") (number_literal "0x10")) (+ "+") (pointer_expression "*(long *)(param_1 + 0x28)" (* "*") (cast_expression "(long *)(param_1 + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) () ")")))) (; ";")) (if_statement "if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }" (if "if") (parenthesized_expression "((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0'))" (( "(") (binary_expression "(*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')" (parenthesized_expression "(*(char *)((long)puVar10 + 0xc) == '\0')" (( "(") (binary_expression "*(char *)((long)puVar10 + 0xc) == '\0'" (pointer_expression "*(char *)((long)puVar10 + 0xc)" (* "*") (cast_expression "(char *)((long)puVar10 + 0xc)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar10 + 0xc)" (( "(") (binary_expression "(long)puVar10 + 0xc" (cast_expression "(long)puVar10" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar10")) (+ "+") (number_literal "0xc")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(*(char *)((long)puVar10 + 0xd) == '\0')" (( "(") (binary_expression "*(char *)((long)puVar10 + 0xd) == '\0'" (pointer_expression "*(char *)((long)puVar10 + 0xd)" (* "*") (cast_expression "(char *)((long)puVar10 + 0xd)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar10 + 0xd)" (( "(") (binary_expression "(long)puVar10 + 0xd" (cast_expression "(long)puVar10" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar10")) (+ "+") (number_literal "0xd")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n        iVar4 = close(__fd);\n        if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }\n        puVar3 = PTR_DAT_003be6b0;\n        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;\n        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }\n        *(undefined4 *)(puVar10 + 1) = 0xffffffff;\n        *(undefined1 *)((long)puVar10 + 0xe) = 0;\n        return 1;\n      }" ({ "{") (expression_statement "iVar4 = close(__fd);" (assignment_expression "iVar4 = close(__fd)" (identifier "iVar4") (= "=") (call_expression "close(__fd)" (identifier "close") (argument_list "(__fd)" (( "(") (identifier "__fd") () ")")))) (; ";")) (if_statement "if (iVar4 < 0) {\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }" (if "if") (parenthesized_expression "(iVar4 < 0)" (( "(") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n          piVar5 = __errno_location();\n          pcVar6 = strerror(*piVar5);\n          uVar2 = *puVar10;\n          uVar7 = gettext("while closing %s: %s");\n          FUN_00169150(uVar7,uVar2,pcVar6);\n        }" ({ "{") (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar6 = strerror(*piVar5);" (assignment_expression "pcVar6 = strerror(*piVar5)" (identifier "pcVar6") (= "=") (call_expression "strerror(*piVar5)" (identifier "strerror") (argument_list "(*piVar5)" (( "(") (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) () ")")))) (; ";")) (expression_statement "uVar2 = *puVar10;" (assignment_expression "uVar2 = *puVar10" (identifier "uVar2") (= "=") (pointer_expression "*puVar10" (* "*") (identifier "puVar10"))) (; ";")) (expression_statement "uVar7 = gettext("while closing %s: %s");" (assignment_expression "uVar7 = gettext("while closing %s: %s")" (identifier "uVar7") (= "=") (call_expression "gettext("while closing %s: %s")" (identifier "gettext") (argument_list "("while closing %s: %s")" (( "(") (string_literal ""while closing %s: %s"" (" """) (string_content "while closing %s: %s") (" """)) () ")")))) (; ";")) (expression_statement "FUN_00169150(uVar7,uVar2,pcVar6);" (call_expression "FUN_00169150(uVar7,uVar2,pcVar6)" (identifier "FUN_00169150") (argument_list "(uVar7,uVar2,pcVar6)" (( "(") (identifier "uVar7") (, ",") (identifier "uVar2") (, ",") (identifier "pcVar6") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar3 = PTR_DAT_003be6b0;" (assignment_expression "puVar3 = PTR_DAT_003be6b0" (identifier "puVar3") (= "=") (identifier "PTR_DAT_003be6b0")) (; ";")) (expression_statement "*(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;" (assignment_expression "*(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1" (pointer_expression "*(int *)(param_1 + 0x44)" (* "*") (cast_expression "(int *)(param_1 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x44) + -1" (pointer_expression "*(int *)(param_1 + 0x44)" (* "*") (cast_expression "(int *)(param_1 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }\n        else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }" (if "if") (parenthesized_expression "((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0))" (( "(") (binary_expression "(*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)" (parenthesized_expression "(*(long *)(puVar3 + 0x10) == 0)" (( "(") (binary_expression "*(long *)(puVar3 + 0x10) == 0" (pointer_expression "*(long *)(puVar3 + 0x10)" (* "*") (cast_expression "(long *)(puVar3 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x10)" (( "(") (binary_expression "puVar3 + 0x10" (identifier "puVar3") (+ "+") (number_literal "0x10")) () ")")))) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((puVar3[0x24] & 4) == 0)" (( "(") (binary_expression "(puVar3[0x24] & 4) == 0" (parenthesized_expression "(puVar3[0x24] & 4)" (( "(") (binary_expression "puVar3[0x24] & 4" (subscript_expression "puVar3[0x24]" (identifier "puVar3") ([ "[") (number_literal "0x24") (] "]")) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }" ({ "{") (expression_statement "*puVar10 = 0;" (assignment_expression "*puVar10 = 0" (pointer_expression "*puVar10" (* "*") (identifier "puVar10")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = *(undefined4 *)(puVar10 + 1);" (assignment_expression "uVar1 = *(undefined4 *)(puVar10 + 1)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(puVar10 + 1)" (* "*") (cast_expression "(undefined4 *)(puVar10 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar10 + 1)" (( "(") (binary_expression "puVar10 + 1" (identifier "puVar10") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }" (else "else") (compound_statement "{\n          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);\n          *puVar10 = 0;\n          uVar1 = *(undefined4 *)(puVar10 + 1);\n        }" ({ "{") (expression_statement "FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);" (call_expression "FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10)" (identifier "FUN_00168e80") (argument_list "(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10)" (( "(") (pointer_expression "*(undefined8 *)puVar3" (* "*") (cast_expression "(undefined8 *)puVar3" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (, ",") (string_literal ""Closed descriptor %d for \"%s\""" (" """) (string_content "Closed descriptor %d for ") (escape_sequence "\"") (string_content "%s") (escape_sequence "\"") (" """)) (, ",") (identifier "__fd") (, ",") (pointer_expression "*puVar10" (* "*") (identifier "puVar10")) () ")"))) (; ";")) (expression_statement "*puVar10 = 0;" (assignment_expression "*puVar10 = 0" (pointer_expression "*puVar10" (* "*") (identifier "puVar10")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = *(undefined4 *)(puVar10 + 1);" (assignment_expression "uVar1 = *(undefined4 *)(puVar10 + 1)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(puVar10 + 1)" (* "*") (cast_expression "(undefined4 *)(puVar10 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar10 + 1)" (( "(") (binary_expression "puVar10 + 1" (identifier "puVar10") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (} "}")))) (if_statement "if ((int)lVar11 == -1) {\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }\n        else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }" (if "if") (parenthesized_expression "((int)lVar11 == -1)" (( "(") (binary_expression "(int)lVar11 == -1" (cast_expression "(int)lVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar11")) (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n          *(undefined4 *)(param_1 + 0x40) = uVar1;\n        }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x40) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x40) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x40)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x40)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (} "}")) (else_clause "else {\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }" (else "else") (compound_statement "{\n          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;\n        }" ({ "{") (expression_statement "*(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;" (assignment_expression "*(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1" (pointer_expression "*(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8)" (* "*") (cast_expression "(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8)" (( "(") (binary_expression "*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8" (binary_expression "*(long *)(param_1 + 0x28) + lVar11 * 0x10" (pointer_expression "*(long *)(param_1 + 0x28)" (* "*") (cast_expression "(long *)(param_1 + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (+ "+") (binary_expression "lVar11 * 0x10" (identifier "lVar11") (* "*") (number_literal "0x10"))) (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (} "}")))) (expression_statement "*(undefined4 *)(puVar10 + 1) = 0xffffffff;" (assignment_expression "*(undefined4 *)(puVar10 + 1) = 0xffffffff" (pointer_expression "*(undefined4 *)(puVar10 + 1)" (* "*") (cast_expression "(undefined4 *)(puVar10 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar10 + 1)" (( "(") (binary_expression "puVar10 + 1" (identifier "puVar10") (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*(undefined1 *)((long)puVar10 + 0xe) = 0;" (assignment_expression "*(undefined1 *)((long)puVar10 + 0xe) = 0" (pointer_expression "*(undefined1 *)((long)puVar10 + 0xe)" (* "*") (cast_expression "(undefined1 *)((long)puVar10 + 0xe)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar10 + 0xe)" (( "(") (binary_expression "(long)puVar10 + 0xe" (cast_expression "(long)puVar10" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar10")) (+ "+") (number_literal "0xe")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "iVar4 = *(int *)(puVar10 + 1);" (assignment_expression "iVar4 = *(int *)(puVar10 + 1)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(puVar10 + 1)" (* "*") (cast_expression "(int *)(puVar10 + 1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar10 + 1)" (( "(") (binary_expression "puVar10 + 1" (identifier "puVar10") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (if_statement "if (iVar4 < 0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(iVar4 < 0)" (( "(") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar9 = (ulong)iVar4;" (assignment_expression "uVar9 = (ulong)iVar4" (identifier "uVar9") (= "=") (cast_expression "(ulong)iVar4" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "iVar4"))) (; ";")) (expression_statement "lVar11 = (long)__fd;" (assignment_expression "lVar11 = (long)__fd" (identifier "lVar11") (= "=") (cast_expression "(long)__fd" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "__fd"))) (; ";")) (expression_statement "__fd = iVar4;" (assignment_expression "__fd = iVar4" (identifier "__fd") (= "=") (identifier "iVar4")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar9 < uVar8)" (( "(") (binary_expression "uVar9 < uVar8" (identifier "uVar9") (< "<") (identifier "uVar8")) () ")")) (; ";")) (} "}"))) (expression_statement "FUN_0016cdf0("../../gold/descriptors.cc",0xf2,"close_some_descriptor");" (call_expression "FUN_0016cdf0("../../gold/descriptors.cc",0xf2,"close_some_descriptor")" (identifier "FUN_0016cdf0") (argument_list "("../../gold/descriptors.cc",0xf2,"close_some_descriptor")" (( "(") (string_literal ""../../gold/descriptors.cc"" (" """) (string_content "../../gold/descriptors.cc") (" """)) (, ",") (number_literal "0xf2") (, ",") (string_literal ""close_some_descriptor"" (" """) (string_content "close_some_descriptor") (" """)) () ")"))) (; ";")) (} "}")))

/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: bool close_some_descriptor(Descriptors * this) */

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

{
  type_2 uVar1;
  type_3 var_5;
  char *pcVar3;
  type_4 *pPVar4;
  int var_7;
  int *piVar6;
  char *pcVar7;
  char *format;
  type_5 var_4;
  type_5 var_3;
  type_3 pOVar10;
  type_2 __fd;
  long lVar11;
  
  __fd = this->stack_top_;
  if ((int)__fd < 0) {
    return false;
  }
  var_5 = (this->open_descriptors_).
           super__Vector_base<gold::Descriptors::var_1,_std::allocator<gold::Descriptors::var_1>var_2>
           ._M_impl._M_start;
  var_3 = (type_5)(int)__fd;
  var_4 = (long)(this->open_descriptors_).
                super__Vector_base<gold::Descriptors::var_1,_std::allocator<gold::Descriptors::var_1>var_2>
                ._M_impl._M_finish - (long)var_5 >> 4;
  if (var_3 < var_4) {
    lVar11 = -1;
    do {
      pOVar10 = var_5 + var_3;
      if ((pOVar10->inuse == false) && (pOVar10->is_write == false)) {
        var_7 = var_6(__fd);
        if (var_7 < 0) {
          piVar6 = var_8();
          pcVar7 = var_9(*piVar6);
          pcVar3 = pOVar10->name;
          format = (char *)var_10("while closing %s: %s");
          var_11(format,pcVar3,pcVar7);
        }
        pPVar4 = parameters;
        this->current_ = this->current_ + -1;
        if ((pPVar4->options_ == (type_6 *)0x0) || ((pPVar4->debug_ & 4) == 0)) {
          pOVar10->name = (char *)0x0;
          var_7 = pOVar10->stack_next;
        }
        else {
          Errors::var_12(pPVar4->errors_,"Closed descriptor %d for \"%s\"",(type_5)__fd,pOVar10->name)
          ;
          pOVar10->name = (char *)0x0;
          var_7 = pOVar10->stack_next;
        }
        if ((int)lVar11 == -1) {
          this->stack_top_ = var_7;
        }
        else {
          (this->open_descriptors_).
          super__Vector_base<gold::Descriptors::var_1,_std::allocator<gold::Descriptors::var_1>var_2>
          ._M_impl._M_start[lVar11].stack_next = var_7;
        }
        pOVar10->stack_next = -1;
        pOVar10->is_on_stack = false;
        return true;
      }
      uVar1 = pOVar10->stack_next;
      if ((int)uVar1 < 0) {
        return false;
      }
      var_3 = (type_5)(int)uVar1;
      lVar11 = (long)(int)__fd;
      __fd = uVar1;
    } while (var_3 < var_4);
  }
                    /* WARNING: Subroutine does not return */
  var_13("../../gold/descriptors.cc",0xf2,"close_some_descriptor");
}


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

undefined8 MASKED(long param_1)

{
  undefined4 uVar1;
  undefined8 uVar2;
  undefined *puVar3;
  int iVar4;
  int *piVar5;
  char *pcVar6;
  undefined8 uVar7;
  ulong uVar8;
  ulong uVar9;
  undefined8 *puVar10;
  int __fd;
  long lVar11;
  
  __fd = *(int *)(param_1 + 0x40);
  if (__fd < 0) {
    return 0;
  }
  uVar9 = (ulong)__fd;
  uVar8 = *(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x28) >> 4;
  if (uVar9 < uVar8) {
    lVar11 = -1;
    do {
      puVar10 = (undefined8 *)(uVar9 * 0x10 + *(long *)(param_1 + 0x28));
      if ((*(char *)((long)puVar10 + 0xc) == '\0') && (*(char *)((long)puVar10 + 0xd) == '\0')) {
        iVar4 = close(__fd);
        if (iVar4 < 0) {
          piVar5 = __errno_location();
          pcVar6 = strerror(*piVar5);
          uVar2 = *puVar10;
          uVar7 = gettext("while closing %s: %s");
          FUN_00169150(uVar7,uVar2,pcVar6);
        }
        puVar3 = PTR_DAT_003be6b0;
        *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + -1;
        if ((*(long *)(puVar3 + 0x10) == 0) || ((puVar3[0x24] & 4) == 0)) {
          *puVar10 = 0;
          uVar1 = *(undefined4 *)(puVar10 + 1);
        }
        else {
          FUN_00168e80(*(undefined8 *)puVar3,"Closed descriptor %d for \"%s\"",__fd,*puVar10);
          *puVar10 = 0;
          uVar1 = *(undefined4 *)(puVar10 + 1);
        }
        if ((int)lVar11 == -1) {
          *(undefined4 *)(param_1 + 0x40) = uVar1;
        }
        else {
          *(undefined4 *)(*(long *)(param_1 + 0x28) + lVar11 * 0x10 + 8) = uVar1;
        }
        *(undefined4 *)(puVar10 + 1) = 0xffffffff;
        *(undefined1 *)((long)puVar10 + 0xe) = 0;
        return 1;
      }
      iVar4 = *(int *)(puVar10 + 1);
      if (iVar4 < 0) {
        return 0;
      }
      uVar9 = (ulong)iVar4;
      lVar11 = (long)__fd;
      __fd = iVar4;
    } while (uVar9 < uVar8);
  }
                    /* WARNING: Subroutine does not return */
  FUN_0016cdf0("../../gold/descriptors.cc",0xf2,"close_some_descriptor");
}

