
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */
/* DWARF original prototype: void release(Descriptors * this, int descriptor, bool permanent) */

void __thiscall gold::Descriptors::release(Descriptors *this,int descriptor,bool permanent)

{
  Lock *pLVar1;
  pointer pOVar2;
  char *pcVar3;
  int iVar4;
  int *piVar5;
  char *pcVar6;
  char *format;
  
  pLVar1 = this->lock_;
  if (pLVar1 != (Lock *)0x0) {
    (*pLVar1->lock_->_vptr_Lock_impl[2])(pLVar1->lock_);
  }
  if ((descriptor < 0) ||
     (pOVar2 = (this->open_descriptors_).
               super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>
               ._M_impl._M_start,
     (uint)(((int)(this->open_descriptors_).
                  super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>
                  ._M_impl._M_finish - (int)pOVar2 >> 2) * -0x55555555) <= (uint)descriptor)) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/descriptors.cc",0xc9,"release");
  }
  pOVar2 = pOVar2 + descriptor;
  if (!permanent) {
    if (this->current_ <= this->limit_) {
      pOVar2->inuse = false;
      if ((pOVar2->is_write == false) && (pOVar2->is_on_stack == false)) {
        pOVar2->stack_next = this->stack_top_;
        this->stack_top_ = descriptor;
        pOVar2->is_on_stack = true;
      }
      goto LAB_0020b19c;
    }
    if (pOVar2->is_write != false) {
      pOVar2->inuse = false;
      goto LAB_0020b19c;
    }
  }
                    /* try { // try from 0020b17f to 0020b183 has its CatchHandler @ 0020b278 */
  iVar4 = close(descriptor);
  if (iVar4 < 0) {
    piVar5 = __errno_location();
    pcVar6 = strerror(*piVar5);
    pcVar3 = pOVar2->name;
    format = (char *)gettext("while closing %s: %s");
    gold_warning(format,pcVar3,pcVar6);
  }
  pOVar2->name = (char *)0x0;
  this->current_ = this->current_ + -1;
LAB_0020b19c:
  if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)) {
                    /* try { // try from 0020b1e1 to 0020b277 has its CatchHandler @ 0020b278 */
    Errors::debug(parameters->errors_,"Released descriptor %d for \"%s\"",descriptor,pOVar2->name);
  }
  if (pLVar1 == (Lock *)0x0) {
    return;
  }
                    /* WARNING: Could not recover jumptable at 0x0020b1cc. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*pLVar1->lock_->_vptr_Lock_impl[3])();
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void FUN_0020b0e0(int *param_1,uint param_2,char param_3)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  int iVar4;
  int *piVar5;
  char *pcVar6;
  undefined4 uVar7;
  undefined4 in_ECX;
  undefined4 extraout_ECX;
  
  puVar2 = (undefined4 *)*param_1;
  if (puVar2 != (undefined4 *)0x0) {
    (**(code **)(*(int *)*puVar2 + 8))((int *)*puVar2);
    in_ECX = extraout_ECX;
  }
  if (((int)param_2 < 0) || ((uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2)) {
                    /* WARNING: Subroutine does not return */
    FUN_000da200("../../gold/descriptors.cc",0xc9,"release",in_ECX);
  }
  puVar1 = (undefined4 *)(param_1[6] + param_2 * 0xc);
  if (param_3 == '\0') {
    if (param_1[10] <= param_1[0xb]) {
      *(undefined1 *)(puVar1 + 2) = 0;
      if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {
        puVar1[1] = param_1[9];
        param_1[9] = param_2;
        *(undefined1 *)((int)puVar1 + 10) = 1;
      }
      goto LAB_0020b19c;
    }
    if (*(char *)((int)puVar1 + 9) != '\0') {
      *(undefined1 *)(puVar1 + 2) = 0;
      goto LAB_0020b19c;
    }
  }
                    /* try { // try from 0020b17f to 0020b183 has its CatchHandler @ 0020b278 */
  iVar4 = close(param_2);
  if (iVar4 < 0) {
    piVar5 = __errno_location();
    pcVar6 = strerror(*piVar5);
    uVar3 = *puVar1;
    uVar7 = gettext("while closing %s: %s");
    FUN_000d1360(uVar7,uVar3,pcVar6);
  }
  *puVar1 = 0;
  param_1[10] = param_1[10] + -1;
LAB_0020b19c:
  if ((DAT_004144e8[2] != 0) && ((*(byte *)(DAT_004144e8 + 5) & 4) != 0)) {
                    /* try { // try from 0020b1e1 to 0020b277 has its CatchHandler @ 0020b278 */
    FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1);
  }
  if (puVar2 == (undefined4 *)0x0) {
    return;
  }
                    /* WARNING: Could not recover jumptable at 0x0020b1cc. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(*(int *)*puVar2 + 0xc))();
  return;
}


CALL 0x000b4846
ADD EAX,0x208f1b
PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x2c
MOV ESI,dword ptr [EBP + 0x8]
MOV EDI,dword ptr [EBP + 0xc]
MOV dword ptr [EBP + -0x1c],EAX
MOV EBX,dword ptr [EBP + 0x10]
MOV EAX,dword ptr [ESI]
MOV dword ptr [EBP + -0x24],EAX
TEST EAX,EAX
JZ 0x0020b116
MOV EAX,dword ptr [EAX]
SUB ESP,0xc
MOV EDX,dword ptr [EAX]
PUSH EAX
CALL dword ptr [EDX + 0x8]
ADD ESP,0x10
TEST EDI,EDI
JS 0x0020b25c
MOV EDX,dword ptr [ESI + 0x18]
MOV EAX,dword ptr [ESI + 0x1c]
SUB EAX,EDX
SAR EAX,0x2
IMUL EAX,EAX,-0x55555555
CMP EDI,EAX
JNC 0x0020b25c
LEA EAX,[EDI + EDI*0x2]
LEA EAX,[EDX + EAX*0x4]
MOV dword ptr [EBP + -0x20],EAX
TEST BL,BL
JNZ 0x0020b178
MOVZX EAX,byte ptr [EAX + 0x9]
MOV EBX,dword ptr [ESI + 0x2c]
CMP dword ptr [ESI + 0x28],EBX
JG 0x0020b170
MOV EBX,dword ptr [EBP + -0x20]
MOV byte ptr [EBX + 0x8],0x0
TEST AL,AL
JNZ 0x0020b19c
CMP byte ptr [EBX + 0xa],0x0
JNZ 0x0020b19c
MOV EAX,dword ptr [ESI + 0x24]
MOV dword ptr [EBX + 0x4],EAX
MOV dword ptr [ESI + 0x24],EDI
MOV byte ptr [EBX + 0xa],0x1
JMP 0x0020b19c
TEST AL,AL
JNZ 0x0020b200
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x1c]
PUSH EDI
CALL 0x0002c980
ADD ESP,0x10
TEST EAX,EAX
JS 0x0020b210
MOV EAX,dword ptr [EBP + -0x20]
MOV dword ptr [EAX],0x0
SUB dword ptr [ESI + 0x28],0x1
MOV ECX,dword ptr [EBP + -0x1c]
LEA EAX,[ECX + 0x4e8]
MOV EAX,dword ptr [EAX]
MOV EDX,dword ptr [EAX + 0x8]
TEST EDX,EDX
JZ 0x0020b1b4
TEST byte ptr [EAX + 0x14],0x4
JNZ 0x0020b1d0
MOV EAX,dword ptr [EBP + -0x24]
TEST EAX,EAX
JZ 0x0020b1f0
MOV EAX,dword ptr [EAX]
MOV EDX,dword ptr [EAX]
MOV dword ptr [EBP + 0x8],EAX
MOV EAX,dword ptr [EDX + 0xc]
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
JMP EAX
MOV ESI,dword ptr [EBP + -0x20]
LEA EDX,[ECX + 0xffefd320]
MOV EBX,ECX
PUSH dword ptr [ESI]
PUSH EDI
PUSH EDX
PUSH dword ptr [EAX]
CALL 0x000d1270
MOV EAX,dword ptr [EBP + -0x24]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0020b1bb
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBP + -0x20]
MOV byte ptr [EAX + 0x8],0x0
JMP 0x0020b19c
MOV EBX,dword ptr [EBP + -0x1c]
CALL 0x0002c480
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x0002c810
MOV ECX,dword ptr [EBP + -0x1c]
MOV dword ptr [EBP + -0x2c],EAX
MOV EAX,dword ptr [EBP + -0x20]
MOV EBX,ECX
MOV EDX,dword ptr [EAX]
LEA EAX,[ECX + 0xffefd2ec]
MOV dword ptr [ESP],EAX
MOV dword ptr [EBP + -0x28],EDX
CALL 0x0002c440
MOV ECX,dword ptr [EBP + -0x2c]
MOV EDX,dword ptr [EBP + -0x28]
ADD ESP,0xc
MOV EBX,dword ptr [EBP + -0x1c]
PUSH ECX
PUSH EDX
PUSH EAX
CALL 0x000d1360
ADD ESP,0x10
JMP 0x0020b18f
MOV EBX,dword ptr [EBP + -0x1c]
PUSH ECX
LEA EAX,[EBX + 0xffefd424]
PUSH EAX
LEA EAX,[EBX + 0xffefd2d2]
PUSH 0xc9
PUSH EAX
CALL 0x000da200
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid FUN_0020b0e0(int *param_1,uint param_2,char param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  undefined4 in_ECX;\n  undefined4 extraout_ECX;\n  \n  puVar2 = (undefined4 *)*param_1;\n  if (puVar2 != (undefined4 *)0x0) {\n    (**(code **)(*(int *)*puVar2 + 8))((int *)*puVar2);\n    in_ECX = extraout_ECX;\n  }\n  if (((int)param_2 < 0) || ((uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/descriptors.cc",0xc9,"release",in_ECX);\n  }\n  puVar1 = (undefined4 *)(param_1[6] + param_2 * 0xc);\n  if (param_3 == '\0') {\n    if (param_1[10] <= param_1[0xb]) {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }\n      goto LAB_0020b19c;\n    }\n    if (*(char *)((int)puVar1 + 9) != '\0') {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      goto LAB_0020b19c;\n    }\n  }\n                    /* try { // try from 0020b17f to 0020b183 has its CatchHandler @ 0020b278 */\n  iVar4 = close(param_2);\n  if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    pcVar6 = strerror(*piVar5);\n    uVar3 = *puVar1;\n    uVar7 = gettext("while closing %s: %s");\n    FUN_000d1360(uVar7,uVar3,pcVar6);\n  }\n  *puVar1 = 0;\n  param_1[10] = param_1[10] + -1;\nLAB_0020b19c:\n  if ((DAT_004144e8[2] != 0) && ((*(byte *)(DAT_004144e8 + 5) & 4) != 0)) {\n                    /* try { // try from 0020b1e1 to 0020b277 has its CatchHandler @ 0020b278 */\n    FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1);\n  }\n  if (puVar2 == (undefined4 *)0x0) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0020b1cc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(*(int *)*puVar2 + 0xc))();\n  return;\n}\n\n" comment (function_definition "void FUN_0020b0e0(int *param_1,uint param_2,char param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  undefined4 in_ECX;\n  undefined4 extraout_ECX;\n  \n  puVar2 = (undefined4 *)*param_1;\n  if (puVar2 != (undefined4 *)0x0) {\n    (**(code **)(*(int *)*puVar2 + 8))((int *)*puVar2);\n    in_ECX = extraout_ECX;\n  }\n  if (((int)param_2 < 0) || ((uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/descriptors.cc",0xc9,"release",in_ECX);\n  }\n  puVar1 = (undefined4 *)(param_1[6] + param_2 * 0xc);\n  if (param_3 == '\0') {\n    if (param_1[10] <= param_1[0xb]) {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }\n      goto LAB_0020b19c;\n    }\n    if (*(char *)((int)puVar1 + 9) != '\0') {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      goto LAB_0020b19c;\n    }\n  }\n                    /* try { // try from 0020b17f to 0020b183 has its CatchHandler @ 0020b278 */\n  iVar4 = close(param_2);\n  if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    pcVar6 = strerror(*piVar5);\n    uVar3 = *puVar1;\n    uVar7 = gettext("while closing %s: %s");\n    FUN_000d1360(uVar7,uVar3,pcVar6);\n  }\n  *puVar1 = 0;\n  param_1[10] = param_1[10] + -1;\nLAB_0020b19c:\n  if ((DAT_004144e8[2] != 0) && ((*(byte *)(DAT_004144e8 + 5) & 4) != 0)) {\n                    /* try { // try from 0020b1e1 to 0020b277 has its CatchHandler @ 0020b278 */\n    FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1);\n  }\n  if (puVar2 == (undefined4 *)0x0) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0020b1cc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(*(int *)*puVar2 + 0xc))();\n  return;\n}" primitive_type (function_declarator "FUN_0020b0e0(int *param_1,uint param_2,char param_3)" identifier (parameter_list "(int *param_1,uint param_2,char param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  undefined4 in_ECX;\n  undefined4 extraout_ECX;\n  \n  puVar2 = (undefined4 *)*param_1;\n  if (puVar2 != (undefined4 *)0x0) {\n    (**(code **)(*(int *)*puVar2 + 8))((int *)*puVar2);\n    in_ECX = extraout_ECX;\n  }\n  if (((int)param_2 < 0) || ((uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/descriptors.cc",0xc9,"release",in_ECX);\n  }\n  puVar1 = (undefined4 *)(param_1[6] + param_2 * 0xc);\n  if (param_3 == '\0') {\n    if (param_1[10] <= param_1[0xb]) {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }\n      goto LAB_0020b19c;\n    }\n    if (*(char *)((int)puVar1 + 9) != '\0') {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      goto LAB_0020b19c;\n    }\n  }\n                    /* try { // try from 0020b17f to 0020b183 has its CatchHandler @ 0020b278 */\n  iVar4 = close(param_2);\n  if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    pcVar6 = strerror(*piVar5);\n    uVar3 = *puVar1;\n    uVar7 = gettext("while closing %s: %s");\n    FUN_000d1360(uVar7,uVar3,pcVar6);\n  }\n  *puVar1 = 0;\n  param_1[10] = param_1[10] + -1;\nLAB_0020b19c:\n  if ((DAT_004144e8[2] != 0) && ((*(byte *)(DAT_004144e8 + 5) & 4) != 0)) {\n                    /* try { // try from 0020b1e1 to 0020b277 has its CatchHandler @ 0020b278 */\n    FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1);\n  }\n  if (puVar2 == (undefined4 *)0x0) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0020b1cc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(*(int *)*puVar2 + 0xc))();\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier 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 "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 in_ECX;" type_identifier identifier ;) (declaration "undefined4 extraout_ECX;" type_identifier identifier ;) (expression_statement "puVar2 = (undefined4 *)*param_1;" (assignment_expression "puVar2 = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n    (**(code **)(*(int *)*puVar2 + 8))((int *)*puVar2);\n    in_ECX = extraout_ECX;\n  }" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(*(int *)*puVar2 + 8))((int *)*puVar2);\n    in_ECX = extraout_ECX;\n  }" { (expression_statement "(**(code **)(*(int *)*puVar2 + 8))((int *)*puVar2);" (call_expression "(**(code **)(*(int *)*puVar2 + 8))((int *)*puVar2)" (parenthesized_expression "(**(code **)(*(int *)*puVar2 + 8))" ( (pointer_expression "**(code **)(*(int *)*puVar2 + 8)" * (pointer_expression "*(code **)(*(int *)*puVar2 + 8)" * (cast_expression "(code **)(*(int *)*puVar2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)*puVar2 + 8)" ( (binary_expression "*(int *)*puVar2 + 8" (pointer_expression "*(int *)*puVar2" * (cast_expression "(int *)*puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) + number_literal) ))))) )) (argument_list "((int *)*puVar2)" ( (cast_expression "(int *)*puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier)) ))) ;) (expression_statement "in_ECX = extraout_ECX;" (assignment_expression "in_ECX = extraout_ECX" identifier = identifier) ;) })) (if_statement "if (((int)param_2 < 0) || ((uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/descriptors.cc",0xc9,"release",in_ECX);\n  }" if (parenthesized_expression "(((int)param_2 < 0) || ((uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2))" ( (binary_expression "((int)param_2 < 0) || ((uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2)" (parenthesized_expression "((int)param_2 < 0)" ( (binary_expression "(int)param_2 < 0" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "((uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2)" ( (binary_expression "(uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2" (call_expression "(uint)((param_1[7] - param_1[6] >> 2) * -0x55555555)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((param_1[7] - param_1[6] >> 2) * -0x55555555)" ( (binary_expression "(param_1[7] - param_1[6] >> 2) * -0x55555555" (parenthesized_expression "(param_1[7] - param_1[6] >> 2)" ( (binary_expression "param_1[7] - param_1[6] >> 2" (binary_expression "param_1[7] - param_1[6]" (subscript_expression "param_1[7]" identifier [ number_literal ]) - (subscript_expression "param_1[6]" identifier [ number_literal ])) >> number_literal) )) * number_literal) ))) <= identifier) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/descriptors.cc",0xc9,"release",in_ECX);\n  }" { comment (expression_statement "FUN_000da200("../../gold/descriptors.cc",0xc9,"release",in_ECX);" (call_expression "FUN_000da200("../../gold/descriptors.cc",0xc9,"release",in_ECX)" identifier (argument_list "("../../gold/descriptors.cc",0xc9,"release",in_ECX)" ( (string_literal ""../../gold/descriptors.cc"" " string_content ") , number_literal , (string_literal ""release"" " string_content ") , identifier ))) ;) })) (expression_statement "puVar1 = (undefined4 *)(param_1[6] + param_2 * 0xc);" (assignment_expression "puVar1 = (undefined4 *)(param_1[6] + param_2 * 0xc)" identifier = (cast_expression "(undefined4 *)(param_1[6] + param_2 * 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[6] + param_2 * 0xc)" ( (binary_expression "param_1[6] + param_2 * 0xc" (subscript_expression "param_1[6]" identifier [ number_literal ]) + (binary_expression "param_2 * 0xc" identifier * number_literal)) )))) ;) (if_statement "if (param_3 == '\0') {\n    if (param_1[10] <= param_1[0xb]) {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }\n      goto LAB_0020b19c;\n    }\n    if (*(char *)((int)puVar1 + 9) != '\0') {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      goto LAB_0020b19c;\n    }\n  }" if (parenthesized_expression "(param_3 == '\0')" ( (binary_expression "param_3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (param_1[10] <= param_1[0xb]) {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }\n      goto LAB_0020b19c;\n    }\n    if (*(char *)((int)puVar1 + 9) != '\0') {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      goto LAB_0020b19c;\n    }\n  }" { (if_statement "if (param_1[10] <= param_1[0xb]) {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }\n      goto LAB_0020b19c;\n    }" if (parenthesized_expression "(param_1[10] <= param_1[0xb])" ( (binary_expression "param_1[10] <= param_1[0xb]" (subscript_expression "param_1[10]" identifier [ number_literal ]) <= (subscript_expression "param_1[0xb]" identifier [ number_literal ])) )) (compound_statement "{\n      *(undefined1 *)(puVar1 + 2) = 0;\n      if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }\n      goto LAB_0020b19c;\n    }" { (expression_statement "*(undefined1 *)(puVar1 + 2) = 0;" (assignment_expression "*(undefined1 *)(puVar1 + 2) = 0" (pointer_expression "*(undefined1 *)(puVar1 + 2)" * (cast_expression "(undefined1 *)(puVar1 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) = number_literal) ;) (if_statement "if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }" if (parenthesized_expression "((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0'))" ( (binary_expression "(*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')" (parenthesized_expression "(*(char *)((int)puVar1 + 9) == '\0')" ( (binary_expression "*(char *)((int)puVar1 + 9) == '\0'" (pointer_expression "*(char *)((int)puVar1 + 9)" * (cast_expression "(char *)((int)puVar1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 9)" ( (binary_expression "(int)puVar1 + 9" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(*(char *)((int)puVar1 + 10) == '\0')" ( (binary_expression "*(char *)((int)puVar1 + 10) == '\0'" (pointer_expression "*(char *)((int)puVar1 + 10)" * (cast_expression "(char *)((int)puVar1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 10)" ( (binary_expression "(int)puVar1 + 10" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }" { (expression_statement "puVar1[1] = param_1[9];" (assignment_expression "puVar1[1] = param_1[9]" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;) (expression_statement "param_1[9] = param_2;" (assignment_expression "param_1[9] = param_2" (subscript_expression "param_1[9]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)((int)puVar1 + 10) = 1;" (assignment_expression "*(undefined1 *)((int)puVar1 + 10) = 1" (pointer_expression "*(undefined1 *)((int)puVar1 + 10)" * (cast_expression "(undefined1 *)((int)puVar1 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 10)" ( (binary_expression "(int)puVar1 + 10" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) (goto_statement "goto LAB_0020b19c;" goto statement_identifier ;) })) (if_statement "if (*(char *)((int)puVar1 + 9) != '\0') {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      goto LAB_0020b19c;\n    }" if (parenthesized_expression "(*(char *)((int)puVar1 + 9) != '\0')" ( (binary_expression "*(char *)((int)puVar1 + 9) != '\0'" (pointer_expression "*(char *)((int)puVar1 + 9)" * (cast_expression "(char *)((int)puVar1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 9)" ( (binary_expression "(int)puVar1 + 9" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *(undefined1 *)(puVar1 + 2) = 0;\n      goto LAB_0020b19c;\n    }" { (expression_statement "*(undefined1 *)(puVar1 + 2) = 0;" (assignment_expression "*(undefined1 *)(puVar1 + 2) = 0" (pointer_expression "*(undefined1 *)(puVar1 + 2)" * (cast_expression "(undefined1 *)(puVar1 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_0020b19c;" goto statement_identifier ;) })) })) comment (expression_statement "iVar4 = close(param_2);" (assignment_expression "iVar4 = close(param_2)" identifier = (call_expression "close(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    pcVar6 = strerror(*piVar5);\n    uVar3 = *puVar1;\n    uVar7 = gettext("while closing %s: %s");\n    FUN_000d1360(uVar7,uVar3,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    uVar3 = *puVar1;\n    uVar7 = gettext("while closing %s: %s");\n    FUN_000d1360(uVar7,uVar3,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 "uVar3 = *puVar1;" (assignment_expression "uVar3 = *puVar1" identifier = (pointer_expression "*puVar1" * 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_000d1360(uVar7,uVar3,pcVar6);" (call_expression "FUN_000d1360(uVar7,uVar3,pcVar6)" identifier (argument_list "(uVar7,uVar3,pcVar6)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "param_1[10] = param_1[10] + -1;" (assignment_expression "param_1[10] = param_1[10] + -1" (subscript_expression "param_1[10]" identifier [ number_literal ]) = (binary_expression "param_1[10] + -1" (subscript_expression "param_1[10]" identifier [ number_literal ]) + number_literal)) ;) (labeled_statement "LAB_0020b19c:\n  if ((DAT_004144e8[2] != 0) && ((*(byte *)(DAT_004144e8 + 5) & 4) != 0)) {\n                    /* try { // try from 0020b1e1 to 0020b277 has its CatchHandler @ 0020b278 */\n    FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1);\n  }" statement_identifier : (if_statement "if ((DAT_004144e8[2] != 0) && ((*(byte *)(DAT_004144e8 + 5) & 4) != 0)) {\n                    /* try { // try from 0020b1e1 to 0020b277 has its CatchHandler @ 0020b278 */\n    FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1);\n  }" if (parenthesized_expression "((DAT_004144e8[2] != 0) && ((*(byte *)(DAT_004144e8 + 5) & 4) != 0))" ( (binary_expression "(DAT_004144e8[2] != 0) && ((*(byte *)(DAT_004144e8 + 5) & 4) != 0)" (parenthesized_expression "(DAT_004144e8[2] != 0)" ( (binary_expression "DAT_004144e8[2] != 0" (subscript_expression "DAT_004144e8[2]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "((*(byte *)(DAT_004144e8 + 5) & 4) != 0)" ( (binary_expression "(*(byte *)(DAT_004144e8 + 5) & 4) != 0" (parenthesized_expression "(*(byte *)(DAT_004144e8 + 5) & 4)" ( (binary_expression "*(byte *)(DAT_004144e8 + 5) & 4" (pointer_expression "*(byte *)(DAT_004144e8 + 5)" * (cast_expression "(byte *)(DAT_004144e8 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_004144e8 + 5)" ( (binary_expression "DAT_004144e8 + 5" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n                    /* try { // try from 0020b1e1 to 0020b277 has its CatchHandler @ 0020b278 */\n    FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1);\n  }" { comment (expression_statement "FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1);" (call_expression "FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1)" identifier (argument_list "(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1)" ( (pointer_expression "*DAT_004144e8" * identifier) , (string_literal ""Released descriptor %d for \"%s\""" " string_content escape_sequence string_content escape_sequence ") , identifier , (pointer_expression "*puVar1" * identifier) ))) ;) }))) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n    return;\n  }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment comment (expression_statement "(**(code **)(*(int *)*puVar2 + 0xc))();" (call_expression "(**(code **)(*(int *)*puVar2 + 0xc))()" (parenthesized_expression "(**(code **)(*(int *)*puVar2 + 0xc))" ( (pointer_expression "**(code **)(*(int *)*puVar2 + 0xc)" * (pointer_expression "*(code **)(*(int *)*puVar2 + 0xc)" * (cast_expression "(code **)(*(int *)*puVar2 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)*puVar2 + 0xc)" ( (binary_expression "*(int *)*puVar2 + 0xc" (pointer_expression "*(int *)*puVar2" * (cast_expression "(int *)*puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* WARNING: Enum "ELFOSABI": Some values do not have unique names */\n/* DWARF original prototype: void release(Descriptors * this, int descriptor, bool permanent) */\n\nvoid __thiscall gold::Descriptors::release(Descriptors *this,int descriptor,bool permanent)\n\n{\n  Lock *pLVar1;\n  pointer pOVar2;\n  char *pcVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  char *format;\n  \n  pLVar1 = this->lock_;\n  if (pLVar1 != (Lock *)0x0) {\n    (*pLVar1->lock_->_vptr_Lock_impl[2])(pLVar1->lock_);\n  }\n  if ((descriptor < 0) ||\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     (uint)(((int)(this->open_descriptors_).\n                  super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n                  ._M_impl._M_finish - (int)pOVar2 >> 2) * -0x55555555) <= (uint)descriptor)) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/descriptors.cc",0xc9,"release");\n  }\n  pOVar2 = pOVar2 + descriptor;\n  if (!permanent) {\n    if (this->current_ <= this->limit_) {\n      pOVar2->inuse = false;\n      if ((pOVar2->is_write == false) && (pOVar2->is_on_stack == false)) {\n        pOVar2->stack_next = this->stack_top_;\n        this->stack_top_ = descriptor;\n        pOVar2->is_on_stack = true;\n      }\n      goto LAB_0020b19c;\n    }\n    if (pOVar2->is_write != false) {\n      pOVar2->inuse = false;\n      goto LAB_0020b19c;\n    }\n  }\n                    /* try { // try from 0020b17f to 0020b183 has its CatchHandler @ 0020b278 */\n  iVar4 = close(descriptor);\n  if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    pcVar6 = strerror(*piVar5);\n    pcVar3 = pOVar2->name;\n    format = (char *)gettext("while closing %s: %s");\n    gold_warning(format,pcVar3,pcVar6);\n  }\n  pOVar2->name = (char *)0x0;\n  this->current_ = this->current_ + -1;\nLAB_0020b19c:\n  if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)) {\n                    /* try { // try from 0020b1e1 to 0020b277 has its CatchHandler @ 0020b278 */\n    Errors::debug(parameters->errors_,"Released descriptor %d for \"%s\"",descriptor,pOVar2->name);\n  }\n  if (pLVar1 == (Lock *)0x0) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0020b1cc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*pLVar1->lock_->_vptr_Lock_impl[3])();\n  return;\n}\n\n" comment comment comment comment (function_definition "void __thiscall gold::Descriptors::release(Descriptors *this,int descriptor,bool permanent)\n\n{\n  Lock *pLVar1;\n  pointer pOVar2;\n  char *pcVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  char *format;\n  \n  pLVar1 = this->lock_;\n  if (pLVar1 != (Lock *)0x0) {\n    (*pLVar1->lock_->_vptr_Lock_impl[2])(pLVar1->lock_);\n  }\n  if ((descriptor < 0) ||\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     (uint)(((int)(this->open_descriptors_).\n                  super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n                  ._M_impl._M_finish - (int)pOVar2 >> 2) * -0x55555555) <= (uint)descriptor)) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/descriptors.cc",0xc9,"release");\n  }\n  pOVar2 = pOVar2 + descriptor;\n  if (!permanent) {\n    if (this->current_ <= this->limit_) {\n      pOVar2->inuse = false;\n      if ((pOVar2->is_write == false) && (pOVar2->is_on_stack == false)) {\n        pOVar2->stack_next = this->stack_top_;\n        this->stack_top_ = descriptor;\n        pOVar2->is_on_stack = true;\n      }\n      goto LAB_0020b19c;\n    }\n    if (pOVar2->is_write != false) {\n      pOVar2->inuse = false;\n      goto LAB_0020b19c;\n    }\n  }\n                    /* try { // try from 0020b17f to 0020b183 has its CatchHandler @ 0020b278 */\n  iVar4 = close(descriptor);\n  if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    pcVar6 = strerror(*piVar5);\n    pcVar3 = pOVar2->name;\n    format = (char *)gettext("while closing %s: %s");\n    gold_warning(format,pcVar3,pcVar6);\n  }\n  pOVar2->name = (char *)0x0;\n  this->current_ = this->current_ + -1;\nLAB_0020b19c:\n  if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)) {\n                    /* try { // try from 0020b1e1 to 0020b277 has its CatchHandler @ 0020b278 */\n    Errors::debug(parameters->errors_,"Released descriptor %d for \"%s\"",descriptor,pOVar2->name);\n  }\n  if (pLVar1 == (Lock *)0x0) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0020b1cc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*pLVar1->lock_->_vptr_Lock_impl[3])();\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Descriptors::" identifier : : identifier : :) (function_declarator "release(Descriptors *this,int descriptor,bool permanent)" identifier (parameter_list "(Descriptors *this,int descriptor,bool permanent)" ( (parameter_declaration "Descriptors *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "int descriptor" primitive_type identifier) , (parameter_declaration "bool permanent" primitive_type identifier) ))) (compound_statement "{\n  Lock *pLVar1;\n  pointer pOVar2;\n  char *pcVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  char *format;\n  \n  pLVar1 = this->lock_;\n  if (pLVar1 != (Lock *)0x0) {\n    (*pLVar1->lock_->_vptr_Lock_impl[2])(pLVar1->lock_);\n  }\n  if ((descriptor < 0) ||\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     (uint)(((int)(this->open_descriptors_).\n                  super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n                  ._M_impl._M_finish - (int)pOVar2 >> 2) * -0x55555555) <= (uint)descriptor)) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/descriptors.cc",0xc9,"release");\n  }\n  pOVar2 = pOVar2 + descriptor;\n  if (!permanent) {\n    if (this->current_ <= this->limit_) {\n      pOVar2->inuse = false;\n      if ((pOVar2->is_write == false) && (pOVar2->is_on_stack == false)) {\n        pOVar2->stack_next = this->stack_top_;\n        this->stack_top_ = descriptor;\n        pOVar2->is_on_stack = true;\n      }\n      goto LAB_0020b19c;\n    }\n    if (pOVar2->is_write != false) {\n      pOVar2->inuse = false;\n      goto LAB_0020b19c;\n    }\n  }\n                    /* try { // try from 0020b17f to 0020b183 has its CatchHandler @ 0020b278 */\n  iVar4 = close(descriptor);\n  if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    pcVar6 = strerror(*piVar5);\n    pcVar3 = pOVar2->name;\n    format = (char *)gettext("while closing %s: %s");\n    gold_warning(format,pcVar3,pcVar6);\n  }\n  pOVar2->name = (char *)0x0;\n  this->current_ = this->current_ + -1;\nLAB_0020b19c:\n  if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)) {\n                    /* try { // try from 0020b1e1 to 0020b277 has its CatchHandler @ 0020b278 */\n    Errors::debug(parameters->errors_,"Released descriptor %d for \"%s\"",descriptor,pOVar2->name);\n  }\n  if (pLVar1 == (Lock *)0x0) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0020b1cc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*pLVar1->lock_->_vptr_Lock_impl[3])();\n  return;\n}" { (declaration "Lock *pLVar1;" type_identifier (pointer_declarator "*pLVar1" * identifier) ;) (declaration "pointer pOVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * 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 "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (expression_statement "pLVar1 = this->lock_;" (assignment_expression "pLVar1 = this->lock_" identifier = (field_expression "this->lock_" identifier -> field_identifier)) ;) (if_statement "if (pLVar1 != (Lock *)0x0) {\n    (*pLVar1->lock_->_vptr_Lock_impl[2])(pLVar1->lock_);\n  }" if (parenthesized_expression "(pLVar1 != (Lock *)0x0)" ( (binary_expression "pLVar1 != (Lock *)0x0" identifier != (cast_expression "(Lock *)0x0" ( (type_descriptor "Lock *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*pLVar1->lock_->_vptr_Lock_impl[2])(pLVar1->lock_);\n  }" { (expression_statement "(*pLVar1->lock_->_vptr_Lock_impl[2])(pLVar1->lock_);" (call_expression "(*pLVar1->lock_->_vptr_Lock_impl[2])(pLVar1->lock_)" (parenthesized_expression "(*pLVar1->lock_->_vptr_Lock_impl[2])" ( (pointer_expression "*pLVar1->lock_->_vptr_Lock_impl[2]" * (subscript_expression "pLVar1->lock_->_vptr_Lock_impl[2]" (field_expression "pLVar1->lock_->_vptr_Lock_impl" (field_expression "pLVar1->lock_" identifier -> field_identifier) -> field_identifier) [ number_literal ])) )) (argument_list "(pLVar1->lock_)" ( (field_expression "pLVar1->lock_" identifier -> field_identifier) ))) ;) })) (if_statement "if ((descriptor < 0) ||\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     (uint)(((int)(this->open_descriptors_).\n                  super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n                  ._M_impl._M_finish - (int)pOVar2 >> 2) * -0x55555555) <= (uint)descriptor)) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/descriptors.cc",0xc9,"release");\n  }" if (parenthesized_expression "((descriptor < 0) ||\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     (uint)(((int)(this->open_descriptors_).\n                  super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n                  ._M_impl._M_finish - (int)pOVar2 >> 2) * -0x55555555) <= (uint)descriptor))" ( (binary_expression "(descriptor < 0) ||\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     (uint)(((int)(this->open_descriptors_).\n                  super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n                  ._M_impl._M_finish - (int)pOVar2 >> 2) * -0x55555555) <= (uint)descriptor)" (parenthesized_expression "(descriptor < 0)" ( (binary_expression "descriptor < 0" identifier < number_literal) )) || (parenthesized_expression "(pOVar2 = (this->open_descriptors_).\n               super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n               ._M_impl._M_start,\n     (uint)(((int)(this->open_descriptors_).\n                  super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n                  ._M_impl._M_finish - (int)pOVar2 >> 2) * -0x55555555) <= (uint)descriptor)" ( (ERROR "pOVar2 = (this->open_descriptors_).\n               super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::" (comma_expression "pOVar2 = (this->open_descriptors_).\n               super__Vector_base<gold::Descriptors::Open_descriptor,_std" (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)) (ERROR "::Descriptors::Open_descriptor" : : identifier : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : : identifier : :) (comma_expression "Open_descriptor>_>\n               ._M_impl._M_start,\n     (uint)(((int)(this->open_descriptors_).\n                  super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n                  ._M_impl._M_finish - (int)pOVar2 >> 2) * -0x55555555) <= (uint)descriptor" (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) , (binary_expression "(uint)(((int)(this->open_descriptors_).\n                  super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n                  ._M_impl._M_finish - (int)pOVar2 >> 2) * -0x55555555) <= (uint)descriptor" (call_expression "(uint)(((int)(this->open_descriptors_).\n                  super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n                  ._M_impl._M_finish - (int)pOVar2 >> 2) * -0x55555555)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(((int)(this->open_descriptors_).\n                  super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n                  ._M_impl._M_finish - (int)pOVar2 >> 2) * -0x55555555)" ( (binary_expression "((int)(this->open_descriptors_).\n                  super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n                  ._M_impl._M_finish - (int)pOVar2 >> 2) * -0x55555555" (parenthesized_expression "((int)(this->open_descriptors_).\n                  super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::Open_descriptor>_>\n                  ._M_impl._M_finish - (int)pOVar2 >> 2)" ( (ERROR "(int)(this->open_descriptors_).\n                  super__Vector_base<gold::Descriptors::Open_descriptor,_std::allocator<gold::Descriptors::" (comma_expression "(int)(this->open_descriptors_).\n                  super__Vector_base<gold::Descriptors::Open_descriptor,_std" (binary_expression "(int)(this->open_descriptors_).\n                  super__Vector_base<gold" (cast_expression "(int)(this->open_descriptors_).\n                  super__Vector_base" ( (type_descriptor "int" primitive_type) ) (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) (ERROR "::Descriptors::Open_descriptor" : : identifier : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : : identifier : :) (binary_expression "Open_descriptor>_>\n                  ._M_impl._M_finish - (int)pOVar2 >> 2" (binary_expression "Open_descriptor>_>\n                  ._M_impl._M_finish - (int)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 "(int)pOVar2" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )) * number_literal) ))) <= (cast_expression "(uint)descriptor" ( (type_descriptor "uint" type_identifier) ) identifier))) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/descriptors.cc",0xc9,"release");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/descriptors.cc",0xc9,"release");" (call_expression "do_gold_unreachable("../../gold/descriptors.cc",0xc9,"release")" identifier (argument_list "("../../gold/descriptors.cc",0xc9,"release")" ( (string_literal ""../../gold/descriptors.cc"" " string_content ") , number_literal , (string_literal ""release"" " string_content ") ))) ;) })) (expression_statement "pOVar2 = pOVar2 + descriptor;" (assignment_expression "pOVar2 = pOVar2 + descriptor" identifier = (binary_expression "pOVar2 + descriptor" identifier + identifier)) ;) (if_statement "if (!permanent) {\n    if (this->current_ <= this->limit_) {\n      pOVar2->inuse = false;\n      if ((pOVar2->is_write == false) && (pOVar2->is_on_stack == false)) {\n        pOVar2->stack_next = this->stack_top_;\n        this->stack_top_ = descriptor;\n        pOVar2->is_on_stack = true;\n      }\n      goto LAB_0020b19c;\n    }\n    if (pOVar2->is_write != false) {\n      pOVar2->inuse = false;\n      goto LAB_0020b19c;\n    }\n  }" if (parenthesized_expression "(!permanent)" ( (unary_expression "!permanent" ! identifier) )) (compound_statement "{\n    if (this->current_ <= this->limit_) {\n      pOVar2->inuse = false;\n      if ((pOVar2->is_write == false) && (pOVar2->is_on_stack == false)) {\n        pOVar2->stack_next = this->stack_top_;\n        this->stack_top_ = descriptor;\n        pOVar2->is_on_stack = true;\n      }\n      goto LAB_0020b19c;\n    }\n    if (pOVar2->is_write != false) {\n      pOVar2->inuse = false;\n      goto LAB_0020b19c;\n    }\n  }" { (if_statement "if (this->current_ <= this->limit_) {\n      pOVar2->inuse = false;\n      if ((pOVar2->is_write == false) && (pOVar2->is_on_stack == false)) {\n        pOVar2->stack_next = this->stack_top_;\n        this->stack_top_ = descriptor;\n        pOVar2->is_on_stack = true;\n      }\n      goto LAB_0020b19c;\n    }" if (parenthesized_expression "(this->current_ <= this->limit_)" ( (binary_expression "this->current_ <= this->limit_" (field_expression "this->current_" identifier -> field_identifier) <= (field_expression "this->limit_" identifier -> field_identifier)) )) (compound_statement "{\n      pOVar2->inuse = false;\n      if ((pOVar2->is_write == false) && (pOVar2->is_on_stack == false)) {\n        pOVar2->stack_next = this->stack_top_;\n        this->stack_top_ = descriptor;\n        pOVar2->is_on_stack = true;\n      }\n      goto LAB_0020b19c;\n    }" { (expression_statement "pOVar2->inuse = false;" (assignment_expression "pOVar2->inuse = false" (field_expression "pOVar2->inuse" identifier -> field_identifier) = false) ;) (if_statement "if ((pOVar2->is_write == false) && (pOVar2->is_on_stack == false)) {\n        pOVar2->stack_next = this->stack_top_;\n        this->stack_top_ = descriptor;\n        pOVar2->is_on_stack = true;\n      }" if (parenthesized_expression "((pOVar2->is_write == false) && (pOVar2->is_on_stack == false))" ( (binary_expression "(pOVar2->is_write == false) && (pOVar2->is_on_stack == false)" (parenthesized_expression "(pOVar2->is_write == false)" ( (binary_expression "pOVar2->is_write == false" (field_expression "pOVar2->is_write" identifier -> field_identifier) == false) )) && (parenthesized_expression "(pOVar2->is_on_stack == false)" ( (binary_expression "pOVar2->is_on_stack == false" (field_expression "pOVar2->is_on_stack" identifier -> field_identifier) == false) ))) )) (compound_statement "{\n        pOVar2->stack_next = this->stack_top_;\n        this->stack_top_ = descriptor;\n        pOVar2->is_on_stack = true;\n      }" { (expression_statement "pOVar2->stack_next = this->stack_top_;" (assignment_expression "pOVar2->stack_next = this->stack_top_" (field_expression "pOVar2->stack_next" identifier -> field_identifier) = (field_expression "this->stack_top_" identifier -> field_identifier)) ;) (expression_statement "this->stack_top_ = descriptor;" (assignment_expression "this->stack_top_ = descriptor" (field_expression "this->stack_top_" identifier -> field_identifier) = identifier) ;) (expression_statement "pOVar2->is_on_stack = true;" (assignment_expression "pOVar2->is_on_stack = true" (field_expression "pOVar2->is_on_stack" identifier -> field_identifier) = true) ;) })) (goto_statement "goto LAB_0020b19c;" goto statement_identifier ;) })) (if_statement "if (pOVar2->is_write != false) {\n      pOVar2->inuse = false;\n      goto LAB_0020b19c;\n    }" if (parenthesized_expression "(pOVar2->is_write != false)" ( (binary_expression "pOVar2->is_write != false" (field_expression "pOVar2->is_write" identifier -> field_identifier) != false) )) (compound_statement "{\n      pOVar2->inuse = false;\n      goto LAB_0020b19c;\n    }" { (expression_statement "pOVar2->inuse = false;" (assignment_expression "pOVar2->inuse = false" (field_expression "pOVar2->inuse" identifier -> field_identifier) = false) ;) (goto_statement "goto LAB_0020b19c;" goto statement_identifier ;) })) })) comment (expression_statement "iVar4 = close(descriptor);" (assignment_expression "iVar4 = close(descriptor)" identifier = (call_expression "close(descriptor)" identifier (argument_list "(descriptor)" ( identifier )))) ;) (if_statement "if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    pcVar6 = strerror(*piVar5);\n    pcVar3 = pOVar2->name;\n    format = (char *)gettext("while closing %s: %s");\n    gold_warning(format,pcVar3,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    pcVar3 = pOVar2->name;\n    format = (char *)gettext("while closing %s: %s");\n    gold_warning(format,pcVar3,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 "pcVar3 = pOVar2->name;" (assignment_expression "pcVar3 = pOVar2->name" identifier = (field_expression "pOVar2->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,pcVar6);" (call_expression "gold_warning(format,pcVar3,pcVar6)" identifier (argument_list "(format,pcVar3,pcVar6)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "pOVar2->name = (char *)0x0;" (assignment_expression "pOVar2->name = (char *)0x0" (field_expression "pOVar2->name" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (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)) ;) (labeled_statement "LAB_0020b19c:\n  if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)) {\n                    /* try { // try from 0020b1e1 to 0020b277 has its CatchHandler @ 0020b278 */\n    Errors::debug(parameters->errors_,"Released descriptor %d for \"%s\"",descriptor,pOVar2->name);\n  }" statement_identifier : (if_statement "if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)) {\n                    /* try { // try from 0020b1e1 to 0020b277 has its CatchHandler @ 0020b278 */\n    Errors::debug(parameters->errors_,"Released descriptor %d for \"%s\"",descriptor,pOVar2->name);\n  }" if (parenthesized_expression "((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0))" ( (binary_expression "(parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)" (parenthesized_expression "(parameters->options_ != (General_options *)0x0)" ( (binary_expression "parameters->options_ != (General_options *)0x0" (field_expression "parameters->options_" identifier -> field_identifier) != (cast_expression "(General_options *)0x0" ( (type_descriptor "General_options *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((parameters->debug_ & 4) != 0)" ( (binary_expression "(parameters->debug_ & 4) != 0" (parenthesized_expression "(parameters->debug_ & 4)" ( (binary_expression "parameters->debug_ & 4" (field_expression "parameters->debug_" identifier -> field_identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n                    /* try { // try from 0020b1e1 to 0020b277 has its CatchHandler @ 0020b278 */\n    Errors::debug(parameters->errors_,"Released descriptor %d for \"%s\"",descriptor,pOVar2->name);\n  }" { comment (labeled_statement "Errors::debug(parameters->errors_,"Released descriptor %d for \"%s\"",descriptor,pOVar2->name);" statement_identifier : (ERROR ":" :) (expression_statement "debug(parameters->errors_,"Released descriptor %d for \"%s\"",descriptor,pOVar2->name);" (call_expression "debug(parameters->errors_,"Released descriptor %d for \"%s\"",descriptor,pOVar2->name)" identifier (argument_list "(parameters->errors_,"Released descriptor %d for \"%s\"",descriptor,pOVar2->name)" ( (field_expression "parameters->errors_" identifier -> field_identifier) , (string_literal ""Released descriptor %d for \"%s\""" " string_content escape_sequence string_content escape_sequence ") , identifier , (field_expression "pOVar2->name" identifier -> field_identifier) ))) ;)) }))) (if_statement "if (pLVar1 == (Lock *)0x0) {\n    return;\n  }" if (parenthesized_expression "(pLVar1 == (Lock *)0x0)" ( (binary_expression "pLVar1 == (Lock *)0x0" identifier == (cast_expression "(Lock *)0x0" ( (type_descriptor "Lock *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment comment (expression_statement "(*pLVar1->lock_->_vptr_Lock_impl[3])();" (call_expression "(*pLVar1->lock_->_vptr_Lock_impl[3])()" (parenthesized_expression "(*pLVar1->lock_->_vptr_Lock_impl[3])" ( (pointer_expression "*pLVar1->lock_->_vptr_Lock_impl[3]" * (subscript_expression "pLVar1->lock_->_vptr_Lock_impl[3]" (field_expression "pLVar1->lock_->_vptr_Lock_impl" (field_expression "pLVar1->lock_" identifier -> field_identifier) -> field_identifier) [ number_literal ])) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0020b0e0(int *param_1,uint param_2,char param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  undefined4 in_ECX;\n  undefined4 extraout_ECX;\n  \n  puVar2 = (undefined4 *)*param_1;\n  if (puVar2 != (undefined4 *)0x0) {\n    (**(code **)(*(int *)*puVar2 + 8))((int *)*puVar2);\n    in_ECX = extraout_ECX;\n  }\n  if (((int)param_2 < 0) || ((uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2)) {\n                    \n    FUN_000da200("../../gold/descriptors.cc",0xc9,"release",in_ECX);\n  }\n  puVar1 = (undefined4 *)(param_1[6] + param_2 * 0xc);\n  if (param_3 == '\0') {\n    if (param_1[10] <= param_1[0xb]) {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }\n      goto LAB_0020b19c;\n    }\n    if (*(char *)((int)puVar1 + 9) != '\0') {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      goto LAB_0020b19c;\n    }\n  }\n                    \n  iVar4 = close(param_2);\n  if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    pcVar6 = strerror(*piVar5);\n    uVar3 = *puVar1;\n    uVar7 = gettext("while closing %s: %s");\n    FUN_000d1360(uVar7,uVar3,pcVar6);\n  }\n  *puVar1 = 0;\n  param_1[10] = param_1[10] + -1;\nLAB_0020b19c:\n  if ((DAT_004144e8[2] != 0) && ((*(byte *)(DAT_004144e8 + 5) & 4) != 0)) {\n                    \n    FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1);\n  }\n  if (puVar2 == (undefined4 *)0x0) {\n    return;\n  }\n                    \n                    \n  (**(code **)(*(int *)*puVar2 + 0xc))();\n  return;\n}\n\n" (function_definition "void FUN_0020b0e0(int *param_1,uint param_2,char param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  undefined4 in_ECX;\n  undefined4 extraout_ECX;\n  \n  puVar2 = (undefined4 *)*param_1;\n  if (puVar2 != (undefined4 *)0x0) {\n    (**(code **)(*(int *)*puVar2 + 8))((int *)*puVar2);\n    in_ECX = extraout_ECX;\n  }\n  if (((int)param_2 < 0) || ((uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2)) {\n                    \n    FUN_000da200("../../gold/descriptors.cc",0xc9,"release",in_ECX);\n  }\n  puVar1 = (undefined4 *)(param_1[6] + param_2 * 0xc);\n  if (param_3 == '\0') {\n    if (param_1[10] <= param_1[0xb]) {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }\n      goto LAB_0020b19c;\n    }\n    if (*(char *)((int)puVar1 + 9) != '\0') {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      goto LAB_0020b19c;\n    }\n  }\n                    \n  iVar4 = close(param_2);\n  if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    pcVar6 = strerror(*piVar5);\n    uVar3 = *puVar1;\n    uVar7 = gettext("while closing %s: %s");\n    FUN_000d1360(uVar7,uVar3,pcVar6);\n  }\n  *puVar1 = 0;\n  param_1[10] = param_1[10] + -1;\nLAB_0020b19c:\n  if ((DAT_004144e8[2] != 0) && ((*(byte *)(DAT_004144e8 + 5) & 4) != 0)) {\n                    \n    FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1);\n  }\n  if (puVar2 == (undefined4 *)0x0) {\n    return;\n  }\n                    \n                    \n  (**(code **)(*(int *)*puVar2 + 0xc))();\n  return;\n}" primitive_type (function_declarator "FUN_0020b0e0(int *param_1,uint param_2,char param_3)" identifier (parameter_list "(int *param_1,uint param_2,char param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  undefined4 in_ECX;\n  undefined4 extraout_ECX;\n  \n  puVar2 = (undefined4 *)*param_1;\n  if (puVar2 != (undefined4 *)0x0) {\n    (**(code **)(*(int *)*puVar2 + 8))((int *)*puVar2);\n    in_ECX = extraout_ECX;\n  }\n  if (((int)param_2 < 0) || ((uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2)) {\n                    \n    FUN_000da200("../../gold/descriptors.cc",0xc9,"release",in_ECX);\n  }\n  puVar1 = (undefined4 *)(param_1[6] + param_2 * 0xc);\n  if (param_3 == '\0') {\n    if (param_1[10] <= param_1[0xb]) {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }\n      goto LAB_0020b19c;\n    }\n    if (*(char *)((int)puVar1 + 9) != '\0') {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      goto LAB_0020b19c;\n    }\n  }\n                    \n  iVar4 = close(param_2);\n  if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    pcVar6 = strerror(*piVar5);\n    uVar3 = *puVar1;\n    uVar7 = gettext("while closing %s: %s");\n    FUN_000d1360(uVar7,uVar3,pcVar6);\n  }\n  *puVar1 = 0;\n  param_1[10] = param_1[10] + -1;\nLAB_0020b19c:\n  if ((DAT_004144e8[2] != 0) && ((*(byte *)(DAT_004144e8 + 5) & 4) != 0)) {\n                    \n    FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1);\n  }\n  if (puVar2 == (undefined4 *)0x0) {\n    return;\n  }\n                    \n                    \n  (**(code **)(*(int *)*puVar2 + 0xc))();\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier 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 "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 in_ECX;" type_identifier identifier ;) (declaration "undefined4 extraout_ECX;" type_identifier identifier ;) (expression_statement "puVar2 = (undefined4 *)*param_1;" (assignment_expression "puVar2 = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n    (**(code **)(*(int *)*puVar2 + 8))((int *)*puVar2);\n    in_ECX = extraout_ECX;\n  }" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(*(int *)*puVar2 + 8))((int *)*puVar2);\n    in_ECX = extraout_ECX;\n  }" { (expression_statement "(**(code **)(*(int *)*puVar2 + 8))((int *)*puVar2);" (call_expression "(**(code **)(*(int *)*puVar2 + 8))((int *)*puVar2)" (parenthesized_expression "(**(code **)(*(int *)*puVar2 + 8))" ( (pointer_expression "**(code **)(*(int *)*puVar2 + 8)" * (pointer_expression "*(code **)(*(int *)*puVar2 + 8)" * (cast_expression "(code **)(*(int *)*puVar2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)*puVar2 + 8)" ( (binary_expression "*(int *)*puVar2 + 8" (pointer_expression "*(int *)*puVar2" * (cast_expression "(int *)*puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) + number_literal) ))))) )) (argument_list "((int *)*puVar2)" ( (cast_expression "(int *)*puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier)) ))) ;) (expression_statement "in_ECX = extraout_ECX;" (assignment_expression "in_ECX = extraout_ECX" identifier = identifier) ;) })) (if_statement "if (((int)param_2 < 0) || ((uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2)) {\n                    \n    FUN_000da200("../../gold/descriptors.cc",0xc9,"release",in_ECX);\n  }" if (parenthesized_expression "(((int)param_2 < 0) || ((uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2))" ( (binary_expression "((int)param_2 < 0) || ((uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2)" (parenthesized_expression "((int)param_2 < 0)" ( (binary_expression "(int)param_2 < 0" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "((uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2)" ( (binary_expression "(uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2" (call_expression "(uint)((param_1[7] - param_1[6] >> 2) * -0x55555555)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((param_1[7] - param_1[6] >> 2) * -0x55555555)" ( (binary_expression "(param_1[7] - param_1[6] >> 2) * -0x55555555" (parenthesized_expression "(param_1[7] - param_1[6] >> 2)" ( (binary_expression "param_1[7] - param_1[6] >> 2" (binary_expression "param_1[7] - param_1[6]" (subscript_expression "param_1[7]" identifier [ number_literal ]) - (subscript_expression "param_1[6]" identifier [ number_literal ])) >> number_literal) )) * number_literal) ))) <= identifier) ))) )) (compound_statement "{\n                    \n    FUN_000da200("../../gold/descriptors.cc",0xc9,"release",in_ECX);\n  }" { (expression_statement "FUN_000da200("../../gold/descriptors.cc",0xc9,"release",in_ECX);" (call_expression "FUN_000da200("../../gold/descriptors.cc",0xc9,"release",in_ECX)" identifier (argument_list "("../../gold/descriptors.cc",0xc9,"release",in_ECX)" ( (string_literal ""../../gold/descriptors.cc"" " string_content ") , number_literal , (string_literal ""release"" " string_content ") , identifier ))) ;) })) (expression_statement "puVar1 = (undefined4 *)(param_1[6] + param_2 * 0xc);" (assignment_expression "puVar1 = (undefined4 *)(param_1[6] + param_2 * 0xc)" identifier = (cast_expression "(undefined4 *)(param_1[6] + param_2 * 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[6] + param_2 * 0xc)" ( (binary_expression "param_1[6] + param_2 * 0xc" (subscript_expression "param_1[6]" identifier [ number_literal ]) + (binary_expression "param_2 * 0xc" identifier * number_literal)) )))) ;) (if_statement "if (param_3 == '\0') {\n    if (param_1[10] <= param_1[0xb]) {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }\n      goto LAB_0020b19c;\n    }\n    if (*(char *)((int)puVar1 + 9) != '\0') {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      goto LAB_0020b19c;\n    }\n  }" if (parenthesized_expression "(param_3 == '\0')" ( (binary_expression "param_3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (param_1[10] <= param_1[0xb]) {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }\n      goto LAB_0020b19c;\n    }\n    if (*(char *)((int)puVar1 + 9) != '\0') {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      goto LAB_0020b19c;\n    }\n  }" { (if_statement "if (param_1[10] <= param_1[0xb]) {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }\n      goto LAB_0020b19c;\n    }" if (parenthesized_expression "(param_1[10] <= param_1[0xb])" ( (binary_expression "param_1[10] <= param_1[0xb]" (subscript_expression "param_1[10]" identifier [ number_literal ]) <= (subscript_expression "param_1[0xb]" identifier [ number_literal ])) )) (compound_statement "{\n      *(undefined1 *)(puVar1 + 2) = 0;\n      if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }\n      goto LAB_0020b19c;\n    }" { (expression_statement "*(undefined1 *)(puVar1 + 2) = 0;" (assignment_expression "*(undefined1 *)(puVar1 + 2) = 0" (pointer_expression "*(undefined1 *)(puVar1 + 2)" * (cast_expression "(undefined1 *)(puVar1 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) = number_literal) ;) (if_statement "if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }" if (parenthesized_expression "((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0'))" ( (binary_expression "(*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')" (parenthesized_expression "(*(char *)((int)puVar1 + 9) == '\0')" ( (binary_expression "*(char *)((int)puVar1 + 9) == '\0'" (pointer_expression "*(char *)((int)puVar1 + 9)" * (cast_expression "(char *)((int)puVar1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 9)" ( (binary_expression "(int)puVar1 + 9" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(*(char *)((int)puVar1 + 10) == '\0')" ( (binary_expression "*(char *)((int)puVar1 + 10) == '\0'" (pointer_expression "*(char *)((int)puVar1 + 10)" * (cast_expression "(char *)((int)puVar1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 10)" ( (binary_expression "(int)puVar1 + 10" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }" { (expression_statement "puVar1[1] = param_1[9];" (assignment_expression "puVar1[1] = param_1[9]" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;) (expression_statement "param_1[9] = param_2;" (assignment_expression "param_1[9] = param_2" (subscript_expression "param_1[9]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)((int)puVar1 + 10) = 1;" (assignment_expression "*(undefined1 *)((int)puVar1 + 10) = 1" (pointer_expression "*(undefined1 *)((int)puVar1 + 10)" * (cast_expression "(undefined1 *)((int)puVar1 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 10)" ( (binary_expression "(int)puVar1 + 10" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) (goto_statement "goto LAB_0020b19c;" goto statement_identifier ;) })) (if_statement "if (*(char *)((int)puVar1 + 9) != '\0') {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      goto LAB_0020b19c;\n    }" if (parenthesized_expression "(*(char *)((int)puVar1 + 9) != '\0')" ( (binary_expression "*(char *)((int)puVar1 + 9) != '\0'" (pointer_expression "*(char *)((int)puVar1 + 9)" * (cast_expression "(char *)((int)puVar1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 9)" ( (binary_expression "(int)puVar1 + 9" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *(undefined1 *)(puVar1 + 2) = 0;\n      goto LAB_0020b19c;\n    }" { (expression_statement "*(undefined1 *)(puVar1 + 2) = 0;" (assignment_expression "*(undefined1 *)(puVar1 + 2) = 0" (pointer_expression "*(undefined1 *)(puVar1 + 2)" * (cast_expression "(undefined1 *)(puVar1 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_0020b19c;" goto statement_identifier ;) })) })) (expression_statement "iVar4 = close(param_2);" (assignment_expression "iVar4 = close(param_2)" identifier = (call_expression "close(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    pcVar6 = strerror(*piVar5);\n    uVar3 = *puVar1;\n    uVar7 = gettext("while closing %s: %s");\n    FUN_000d1360(uVar7,uVar3,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    uVar3 = *puVar1;\n    uVar7 = gettext("while closing %s: %s");\n    FUN_000d1360(uVar7,uVar3,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 "uVar3 = *puVar1;" (assignment_expression "uVar3 = *puVar1" identifier = (pointer_expression "*puVar1" * 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_000d1360(uVar7,uVar3,pcVar6);" (call_expression "FUN_000d1360(uVar7,uVar3,pcVar6)" identifier (argument_list "(uVar7,uVar3,pcVar6)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "param_1[10] = param_1[10] + -1;" (assignment_expression "param_1[10] = param_1[10] + -1" (subscript_expression "param_1[10]" identifier [ number_literal ]) = (binary_expression "param_1[10] + -1" (subscript_expression "param_1[10]" identifier [ number_literal ]) + number_literal)) ;) (labeled_statement "LAB_0020b19c:\n  if ((DAT_004144e8[2] != 0) && ((*(byte *)(DAT_004144e8 + 5) & 4) != 0)) {\n                    \n    FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1);\n  }" statement_identifier : (if_statement "if ((DAT_004144e8[2] != 0) && ((*(byte *)(DAT_004144e8 + 5) & 4) != 0)) {\n                    \n    FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1);\n  }" if (parenthesized_expression "((DAT_004144e8[2] != 0) && ((*(byte *)(DAT_004144e8 + 5) & 4) != 0))" ( (binary_expression "(DAT_004144e8[2] != 0) && ((*(byte *)(DAT_004144e8 + 5) & 4) != 0)" (parenthesized_expression "(DAT_004144e8[2] != 0)" ( (binary_expression "DAT_004144e8[2] != 0" (subscript_expression "DAT_004144e8[2]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "((*(byte *)(DAT_004144e8 + 5) & 4) != 0)" ( (binary_expression "(*(byte *)(DAT_004144e8 + 5) & 4) != 0" (parenthesized_expression "(*(byte *)(DAT_004144e8 + 5) & 4)" ( (binary_expression "*(byte *)(DAT_004144e8 + 5) & 4" (pointer_expression "*(byte *)(DAT_004144e8 + 5)" * (cast_expression "(byte *)(DAT_004144e8 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_004144e8 + 5)" ( (binary_expression "DAT_004144e8 + 5" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n                    \n    FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1);\n  }" { (expression_statement "FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1);" (call_expression "FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1)" identifier (argument_list "(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1)" ( (pointer_expression "*DAT_004144e8" * identifier) , (string_literal ""Released descriptor %d for \"%s\""" " string_content escape_sequence string_content escape_sequence ") , identifier , (pointer_expression "*puVar1" * identifier) ))) ;) }))) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n    return;\n  }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(**(code **)(*(int *)*puVar2 + 0xc))();" (call_expression "(**(code **)(*(int *)*puVar2 + 0xc))()" (parenthesized_expression "(**(code **)(*(int *)*puVar2 + 0xc))" ( (pointer_expression "**(code **)(*(int *)*puVar2 + 0xc)" * (pointer_expression "*(code **)(*(int *)*puVar2 + 0xc)" * (cast_expression "(code **)(*(int *)*puVar2 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)*puVar2 + 0xc)" ( (binary_expression "*(int *)*puVar2 + 0xc" (pointer_expression "*(int *)*puVar2" * (cast_expression "(int *)*puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) + LIT) ))))) )) (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) || (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) - (subscript_expression IDENT [ LIT ])) >> LIT) )) * LIT) ))) <= IDENT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) <= (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (assignment_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 TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) 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 TYPE) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) })) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = (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 (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (string_literal " string_content escape_sequence string_content escape_sequence ") , IDENT , (pointer_expression * IDENT) ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) + LIT) ))))) )) (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0020b0e0(int *param_1,uint param_2,char param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  undefined4 in_ECX;\n  undefined4 extraout_ECX;\n  \n  puVar2 = (undefined4 *)*param_1;\n  if (puVar2 != (undefined4 *)0x0) {\n    (**(code **)(*(int *)*puVar2 + 8))((int *)*puVar2);\n    in_ECX = extraout_ECX;\n  }\n  if (((int)param_2 < 0) || ((uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2)) {\n                    \n    FUN_000da200("../../gold/descriptors.cc",0xc9,"release",in_ECX);\n  }\n  puVar1 = (undefined4 *)(param_1[6] + param_2 * 0xc);\n  if (param_3 == '\0') {\n    if (param_1[10] <= param_1[0xb]) {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }\n      goto LAB_0020b19c;\n    }\n    if (*(char *)((int)puVar1 + 9) != '\0') {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      goto LAB_0020b19c;\n    }\n  }\n                    \n  iVar4 = close(param_2);\n  if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    pcVar6 = strerror(*piVar5);\n    uVar3 = *puVar1;\n    uVar7 = gettext("while closing %s: %s");\n    FUN_000d1360(uVar7,uVar3,pcVar6);\n  }\n  *puVar1 = 0;\n  param_1[10] = param_1[10] + -1;\nLAB_0020b19c:\n  if ((DAT_004144e8[2] != 0) && ((*(byte *)(DAT_004144e8 + 5) & 4) != 0)) {\n                    \n    FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1);\n  }\n  if (puVar2 == (undefined4 *)0x0) {\n    return;\n  }\n                    \n                    \n  (**(code **)(*(int *)*puVar2 + 0xc))();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0020b0e0(int *param_1,uint param_2,char param_3)" (identifier "FUN_0020b0e0") (parameter_list "(int *param_1,uint param_2,char param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "char param_3" (primitive_type "char") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  undefined4 in_ECX;\n  undefined4 extraout_ECX;\n  \n  puVar2 = (undefined4 *)*param_1;\n  if (puVar2 != (undefined4 *)0x0) {\n    (**(code **)(*(int *)*puVar2 + 8))((int *)*puVar2);\n    in_ECX = extraout_ECX;\n  }\n  if (((int)param_2 < 0) || ((uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2)) {\n                    \n    FUN_000da200("../../gold/descriptors.cc",0xc9,"release",in_ECX);\n  }\n  puVar1 = (undefined4 *)(param_1[6] + param_2 * 0xc);\n  if (param_3 == '\0') {\n    if (param_1[10] <= param_1[0xb]) {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }\n      goto LAB_0020b19c;\n    }\n    if (*(char *)((int)puVar1 + 9) != '\0') {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      goto LAB_0020b19c;\n    }\n  }\n                    \n  iVar4 = close(param_2);\n  if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    pcVar6 = strerror(*piVar5);\n    uVar3 = *puVar1;\n    uVar7 = gettext("while closing %s: %s");\n    FUN_000d1360(uVar7,uVar3,pcVar6);\n  }\n  *puVar1 = 0;\n  param_1[10] = param_1[10] + -1;\nLAB_0020b19c:\n  if ((DAT_004144e8[2] != 0) && ((*(byte *)(DAT_004144e8 + 5) & 4) != 0)) {\n                    \n    FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1);\n  }\n  if (puVar2 == (undefined4 *)0x0) {\n    return;\n  }\n                    \n                    \n  (**(code **)(*(int *)*puVar2 + 0xc))();\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (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 "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "undefined4 in_ECX;" (type_identifier "undefined4") (identifier "in_ECX") (; ";")) (declaration "undefined4 extraout_ECX;" (type_identifier "undefined4") (identifier "extraout_ECX") (; ";")) (expression_statement "puVar2 = (undefined4 *)*param_1;" (assignment_expression "puVar2 = (undefined4 *)*param_1" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n    (**(code **)(*(int *)*puVar2 + 8))((int *)*puVar2);\n    in_ECX = extraout_ECX;\n  }" (if "if") (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 != (undefined4 *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    (**(code **)(*(int *)*puVar2 + 8))((int *)*puVar2);\n    in_ECX = extraout_ECX;\n  }" ({ "{") (expression_statement "(**(code **)(*(int *)*puVar2 + 8))((int *)*puVar2);" (call_expression "(**(code **)(*(int *)*puVar2 + 8))((int *)*puVar2)" (parenthesized_expression "(**(code **)(*(int *)*puVar2 + 8))" (( "(") (pointer_expression "**(code **)(*(int *)*puVar2 + 8)" (* "*") (pointer_expression "*(code **)(*(int *)*puVar2 + 8)" (* "*") (cast_expression "(code **)(*(int *)*puVar2 + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)*puVar2 + 8)" (( "(") (binary_expression "*(int *)*puVar2 + 8" (pointer_expression "*(int *)*puVar2" (* "*") (cast_expression "(int *)*puVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")))) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "((int *)*puVar2)" (( "(") (cast_expression "(int *)*puVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) () ")"))) (; ";")) (expression_statement "in_ECX = extraout_ECX;" (assignment_expression "in_ECX = extraout_ECX" (identifier "in_ECX") (= "=") (identifier "extraout_ECX")) (; ";")) (} "}"))) (if_statement "if (((int)param_2 < 0) || ((uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2)) {\n                    \n    FUN_000da200("../../gold/descriptors.cc",0xc9,"release",in_ECX);\n  }" (if "if") (parenthesized_expression "(((int)param_2 < 0) || ((uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2))" (( "(") (binary_expression "((int)param_2 < 0) || ((uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2)" (parenthesized_expression "((int)param_2 < 0)" (( "(") (binary_expression "(int)param_2 < 0" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2)" (( "(") (binary_expression "(uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2" (call_expression "(uint)((param_1[7] - param_1[6] >> 2) * -0x55555555)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((param_1[7] - param_1[6] >> 2) * -0x55555555)" (( "(") (binary_expression "(param_1[7] - param_1[6] >> 2) * -0x55555555" (parenthesized_expression "(param_1[7] - param_1[6] >> 2)" (( "(") (binary_expression "param_1[7] - param_1[6] >> 2" (binary_expression "param_1[7] - param_1[6]" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (- "-") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) (>> ">>") (number_literal "2")) () ")")) (* "*") (number_literal "-0x55555555")) () ")"))) (<= "<=") (identifier "param_2")) () ")"))) () ")")) (compound_statement "{\n                    \n    FUN_000da200("../../gold/descriptors.cc",0xc9,"release",in_ECX);\n  }" ({ "{") (expression_statement "FUN_000da200("../../gold/descriptors.cc",0xc9,"release",in_ECX);" (call_expression "FUN_000da200("../../gold/descriptors.cc",0xc9,"release",in_ECX)" (identifier "FUN_000da200") (argument_list "("../../gold/descriptors.cc",0xc9,"release",in_ECX)" (( "(") (string_literal ""../../gold/descriptors.cc"" (" """) (string_content "../../gold/descriptors.cc") (" """)) (, ",") (number_literal "0xc9") (, ",") (string_literal ""release"" (" """) (string_content "release") (" """)) (, ",") (identifier "in_ECX") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar1 = (undefined4 *)(param_1[6] + param_2 * 0xc);" (assignment_expression "puVar1 = (undefined4 *)(param_1[6] + param_2 * 0xc)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(param_1[6] + param_2 * 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[6] + param_2 * 0xc)" (( "(") (binary_expression "param_1[6] + param_2 * 0xc" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (+ "+") (binary_expression "param_2 * 0xc" (identifier "param_2") (* "*") (number_literal "0xc"))) () ")")))) (; ";")) (if_statement "if (param_3 == '\0') {\n    if (param_1[10] <= param_1[0xb]) {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }\n      goto LAB_0020b19c;\n    }\n    if (*(char *)((int)puVar1 + 9) != '\0') {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      goto LAB_0020b19c;\n    }\n  }" (if "if") (parenthesized_expression "(param_3 == '\0')" (( "(") (binary_expression "param_3 == '\0'" (identifier "param_3") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if (param_1[10] <= param_1[0xb]) {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }\n      goto LAB_0020b19c;\n    }\n    if (*(char *)((int)puVar1 + 9) != '\0') {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      goto LAB_0020b19c;\n    }\n  }" ({ "{") (if_statement "if (param_1[10] <= param_1[0xb]) {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }\n      goto LAB_0020b19c;\n    }" (if "if") (parenthesized_expression "(param_1[10] <= param_1[0xb])" (( "(") (binary_expression "param_1[10] <= param_1[0xb]" (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]")) (<= "<=") (subscript_expression "param_1[0xb]" (identifier "param_1") ([ "[") (number_literal "0xb") (] "]"))) () ")")) (compound_statement "{\n      *(undefined1 *)(puVar1 + 2) = 0;\n      if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }\n      goto LAB_0020b19c;\n    }" ({ "{") (expression_statement "*(undefined1 *)(puVar1 + 2) = 0;" (assignment_expression "*(undefined1 *)(puVar1 + 2) = 0" (pointer_expression "*(undefined1 *)(puVar1 + 2)" (* "*") (cast_expression "(undefined1 *)(puVar1 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 2)" (( "(") (binary_expression "puVar1 + 2" (identifier "puVar1") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }" (if "if") (parenthesized_expression "((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0'))" (( "(") (binary_expression "(*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')" (parenthesized_expression "(*(char *)((int)puVar1 + 9) == '\0')" (( "(") (binary_expression "*(char *)((int)puVar1 + 9) == '\0'" (pointer_expression "*(char *)((int)puVar1 + 9)" (* "*") (cast_expression "(char *)((int)puVar1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar1 + 9)" (( "(") (binary_expression "(int)puVar1 + 9" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (+ "+") (number_literal "9")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(*(char *)((int)puVar1 + 10) == '\0')" (( "(") (binary_expression "*(char *)((int)puVar1 + 10) == '\0'" (pointer_expression "*(char *)((int)puVar1 + 10)" (* "*") (cast_expression "(char *)((int)puVar1 + 10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar1 + 10)" (( "(") (binary_expression "(int)puVar1 + 10" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (+ "+") (number_literal "10")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n        puVar1[1] = param_1[9];\n        param_1[9] = param_2;\n        *(undefined1 *)((int)puVar1 + 10) = 1;\n      }" ({ "{") (expression_statement "puVar1[1] = param_1[9];" (assignment_expression "puVar1[1] = param_1[9]" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]"))) (; ";")) (expression_statement "param_1[9] = param_2;" (assignment_expression "param_1[9] = param_2" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined1 *)((int)puVar1 + 10) = 1;" (assignment_expression "*(undefined1 *)((int)puVar1 + 10) = 1" (pointer_expression "*(undefined1 *)((int)puVar1 + 10)" (* "*") (cast_expression "(undefined1 *)((int)puVar1 + 10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar1 + 10)" (( "(") (binary_expression "(int)puVar1 + 10" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (+ "+") (number_literal "10")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}"))) (goto_statement "goto LAB_0020b19c;" (goto "goto") (statement_identifier "LAB_0020b19c") (; ";")) (} "}"))) (if_statement "if (*(char *)((int)puVar1 + 9) != '\0') {\n      *(undefined1 *)(puVar1 + 2) = 0;\n      goto LAB_0020b19c;\n    }" (if "if") (parenthesized_expression "(*(char *)((int)puVar1 + 9) != '\0')" (( "(") (binary_expression "*(char *)((int)puVar1 + 9) != '\0'" (pointer_expression "*(char *)((int)puVar1 + 9)" (* "*") (cast_expression "(char *)((int)puVar1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar1 + 9)" (( "(") (binary_expression "(int)puVar1 + 9" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (+ "+") (number_literal "9")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      *(undefined1 *)(puVar1 + 2) = 0;\n      goto LAB_0020b19c;\n    }" ({ "{") (expression_statement "*(undefined1 *)(puVar1 + 2) = 0;" (assignment_expression "*(undefined1 *)(puVar1 + 2) = 0" (pointer_expression "*(undefined1 *)(puVar1 + 2)" (* "*") (cast_expression "(undefined1 *)(puVar1 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 2)" (( "(") (binary_expression "puVar1 + 2" (identifier "puVar1") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_0020b19c;" (goto "goto") (statement_identifier "LAB_0020b19c") (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar4 = close(param_2);" (assignment_expression "iVar4 = close(param_2)" (identifier "iVar4") (= "=") (call_expression "close(param_2)" (identifier "close") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    pcVar6 = strerror(*piVar5);\n    uVar3 = *puVar1;\n    uVar7 = gettext("while closing %s: %s");\n    FUN_000d1360(uVar7,uVar3,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    uVar3 = *puVar1;\n    uVar7 = gettext("while closing %s: %s");\n    FUN_000d1360(uVar7,uVar3,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 "uVar3 = *puVar1;" (assignment_expression "uVar3 = *puVar1" (identifier "uVar3") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (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_000d1360(uVar7,uVar3,pcVar6);" (call_expression "FUN_000d1360(uVar7,uVar3,pcVar6)" (identifier "FUN_000d1360") (argument_list "(uVar7,uVar3,pcVar6)" (( "(") (identifier "uVar7") (, ",") (identifier "uVar3") (, ",") (identifier "pcVar6") () ")"))) (; ";")) (} "}"))) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[10] = param_1[10] + -1;" (assignment_expression "param_1[10] = param_1[10] + -1" (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]")) (= "=") (binary_expression "param_1[10] + -1" (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]")) (+ "+") (number_literal "-1"))) (; ";")) (labeled_statement "LAB_0020b19c:\n  if ((DAT_004144e8[2] != 0) && ((*(byte *)(DAT_004144e8 + 5) & 4) != 0)) {\n                    \n    FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1);\n  }" (statement_identifier "LAB_0020b19c") (: ":") (if_statement "if ((DAT_004144e8[2] != 0) && ((*(byte *)(DAT_004144e8 + 5) & 4) != 0)) {\n                    \n    FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1);\n  }" (if "if") (parenthesized_expression "((DAT_004144e8[2] != 0) && ((*(byte *)(DAT_004144e8 + 5) & 4) != 0))" (( "(") (binary_expression "(DAT_004144e8[2] != 0) && ((*(byte *)(DAT_004144e8 + 5) & 4) != 0)" (parenthesized_expression "(DAT_004144e8[2] != 0)" (( "(") (binary_expression "DAT_004144e8[2] != 0" (subscript_expression "DAT_004144e8[2]" (identifier "DAT_004144e8") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(DAT_004144e8 + 5) & 4) != 0)" (( "(") (binary_expression "(*(byte *)(DAT_004144e8 + 5) & 4) != 0" (parenthesized_expression "(*(byte *)(DAT_004144e8 + 5) & 4)" (( "(") (binary_expression "*(byte *)(DAT_004144e8 + 5) & 4" (pointer_expression "*(byte *)(DAT_004144e8 + 5)" (* "*") (cast_expression "(byte *)(DAT_004144e8 + 5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_004144e8 + 5)" (( "(") (binary_expression "DAT_004144e8 + 5" (identifier "DAT_004144e8") (+ "+") (number_literal "5")) () ")")))) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n                    \n    FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1);\n  }" ({ "{") (expression_statement "FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1);" (call_expression "FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1)" (identifier "FUN_000d1270") (argument_list "(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1)" (( "(") (pointer_expression "*DAT_004144e8" (* "*") (identifier "DAT_004144e8")) (, ",") (string_literal ""Released descriptor %d for \"%s\""" (" """) (string_content "Released descriptor %d for ") (escape_sequence "\"") (string_content "%s") (escape_sequence "\"") (" """)) (, ",") (identifier "param_2") (, ",") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) () ")"))) (; ";")) (} "}")))) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n    return;\n  }" (if "if") (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined4 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "(**(code **)(*(int *)*puVar2 + 0xc))();" (call_expression "(**(code **)(*(int *)*puVar2 + 0xc))()" (parenthesized_expression "(**(code **)(*(int *)*puVar2 + 0xc))" (( "(") (pointer_expression "**(code **)(*(int *)*puVar2 + 0xc)" (* "*") (pointer_expression "*(code **)(*(int *)*puVar2 + 0xc)" (* "*") (cast_expression "(code **)(*(int *)*puVar2 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)*puVar2 + 0xc)" (( "(") (binary_expression "*(int *)*puVar2 + 0xc" (pointer_expression "*(int *)*puVar2" (* "*") (cast_expression "(int *)*puVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")))) (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */
/* DWARF original prototype: void release(Descriptors * this, int descriptor, bool permanent) */

void __thiscall gold::type_1::function_1(type_1 *this,int var_2,bool permanent)

{
  type_2 *var_1;
  type_3 var_6;
  char *pcVar3;
  int var_8;
  int *piVar5;
  char *pcVar6;
  char *format;
  
  var_1 = this->lock_;
  if (var_1 != (type_2 *)0x0) {
    (*var_1->lock_->_vptr_Lock_impl[2])(var_1->lock_);
  }
  if ((var_2 < 0) ||
     (var_6 = (this->open_descriptors_).
               super__Vector_base<gold::type_1::var_3,_std::allocator<gold::type_1::var_3>var_4>
               ._M_impl._M_start,
     (type_4)(((int)(this->open_descriptors_).
                  super__Vector_base<gold::type_1::var_3,_std::allocator<gold::type_1::var_3>var_4>
                  ._M_impl._M_finish - (int)var_6 >> 2) * -0x55555555) <= (type_4)var_2)) {
                    /* WARNING: Subroutine does not return */
    var_5("../../gold/descriptors.cc",0xc9,"release");
  }
  var_6 = var_6 + var_2;
  if (!permanent) {
    if (this->current_ <= this->limit_) {
      var_6->inuse = false;
      if ((var_6->is_write == false) && (var_6->is_on_stack == false)) {
        var_6->stack_next = this->stack_top_;
        this->stack_top_ = var_2;
        var_6->is_on_stack = true;
      }
      goto LAB_0020b19c;
    }
    if (var_6->is_write != false) {
      var_6->inuse = false;
      goto LAB_0020b19c;
    }
  }
                    /* try { // try from 0020b17f to 0020b183 has its CatchHandler @ 0020b278 */
  var_8 = var_7(var_2);
  if (var_8 < 0) {
    piVar5 = var_9();
    pcVar6 = var_10(*piVar5);
    pcVar3 = var_6->name;
    format = (char *)var_11("while closing %s: %s");
    var_12(format,pcVar3,pcVar6);
  }
  var_6->name = (char *)0x0;
  this->current_ = this->current_ + -1;
LAB_0020b19c:
  if ((parameters->options_ != (type_5 *)0x0) && ((parameters->debug_ & 4) != 0)) {
                    /* try { // try from 0020b1e1 to 0020b277 has its CatchHandler @ 0020b278 */
    Errors::var_13(parameters->errors_,"Released descriptor %d for \"%s\"",var_2,var_6->name);
  }
  if (var_1 == (type_2 *)0x0) {
    return;
  }
                    /* WARNING: Could not recover jumptable at 0x0020b1cc. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*var_1->lock_->_vptr_Lock_impl[3])();
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void MASKED(int *param_1,uint param_2,char param_3)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  int iVar4;
  int *piVar5;
  char *pcVar6;
  undefined4 uVar7;
  undefined4 in_ECX;
  undefined4 extraout_ECX;
  
  puVar2 = (undefined4 *)*param_1;
  if (puVar2 != (undefined4 *)0x0) {
    (**(code **)(*(int *)*puVar2 + 8))((int *)*puVar2);
    in_ECX = extraout_ECX;
  }
  if (((int)param_2 < 0) || ((uint)((param_1[7] - param_1[6] >> 2) * -0x55555555) <= param_2)) {
                    /* WARNING: Subroutine does not return */
    FUN_000da200("../../gold/descriptors.cc",0xc9,"release",in_ECX);
  }
  puVar1 = (undefined4 *)(param_1[6] + param_2 * 0xc);
  if (param_3 == '\0') {
    if (param_1[10] <= param_1[0xb]) {
      *(undefined1 *)(puVar1 + 2) = 0;
      if ((*(char *)((int)puVar1 + 9) == '\0') && (*(char *)((int)puVar1 + 10) == '\0')) {
        puVar1[1] = param_1[9];
        param_1[9] = param_2;
        *(undefined1 *)((int)puVar1 + 10) = 1;
      }
      goto LAB_0020b19c;
    }
    if (*(char *)((int)puVar1 + 9) != '\0') {
      *(undefined1 *)(puVar1 + 2) = 0;
      goto LAB_0020b19c;
    }
  }
                    /* try { // try from 0020b17f to 0020b183 has its CatchHandler @ 0020b278 */
  iVar4 = close(param_2);
  if (iVar4 < 0) {
    piVar5 = __errno_location();
    pcVar6 = strerror(*piVar5);
    uVar3 = *puVar1;
    uVar7 = gettext("while closing %s: %s");
    FUN_000d1360(uVar7,uVar3,pcVar6);
  }
  *puVar1 = 0;
  param_1[10] = param_1[10] + -1;
LAB_0020b19c:
  if ((DAT_004144e8[2] != 0) && ((*(byte *)(DAT_004144e8 + 5) & 4) != 0)) {
                    /* try { // try from 0020b1e1 to 0020b277 has its CatchHandler @ 0020b278 */
    FUN_000d1270(*DAT_004144e8,"Released descriptor %d for \"%s\"",param_2,*puVar1);
  }
  if (puVar2 == (undefined4 *)0x0) {
    return;
  }
                    /* WARNING: Could not recover jumptable at 0x0020b1cc. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(*(int *)*puVar2 + 0xc))();
  return;
}

