
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* std::locale::_Impl::_M_install_facet(std::locale::id const*, std::locale::facet const*) */

void __thiscall std::locale::_Impl::_M_install_facet(_Impl *this,id *param_1,facet *param_2)

{
  int *piVar1;
  int *piVar2;
  void *pvVar3;
  void *pvVar4;
  undefined *puVar5;
  uint uVar6;
  void *pvVar7;
  uint uVar8;
  undefined4 *puVar9;
  void *pvVar10;
  id *this_00;
  uint uVar11;
  int iVar12;
  int iVar13;
  uint uVar14;
  uint uVar15;
  int *piVar16;
  undefined **ppuVar17;
  int *local_24;
  
  if (param_2 == (facet *)0x0) {
    return;
  }
  uVar6 = locale::id::_M_id(param_1);
  if (*(int *)(this + 8) - 1U < uVar6) {
    uVar11 = uVar6 + 4;
    pvVar3 = *(void **)(this + 4);
    uVar14 = uVar11 * 4;
    if (0x1fffffff < uVar11) {
      uVar14 = 0xffffffff;
    }
    pvVar7 = operator_new__(uVar14);
    uVar15 = *(uint *)(this + 8);
    if (uVar15 != 0) {
      iVar13 = *(int *)(this + 4);
      uVar8 = 0;
      do {
        *(undefined4 *)((int)pvVar7 + uVar8 * 4) = *(undefined4 *)(iVar13 + uVar8 * 4);
        uVar8 = uVar8 + 1;
      } while (uVar8 != uVar15);
    }
    if (uVar15 < uVar11) {
      puVar9 = (undefined4 *)((int)pvVar7 + uVar15 * 4);
      do {
        *puVar9 = 0;
        puVar9 = puVar9 + 1;
      } while ((undefined4 *)((int)pvVar7 + uVar6 * 4 + 0x10) != puVar9);
    }
    pvVar4 = *(void **)(this + 0xc);
                    /* try { // try from 001aef1d to 001aef21 has its CatchHandler @ 001af256 */
    pvVar10 = operator_new__(uVar14);
    uVar14 = *(uint *)(this + 8);
    if (uVar14 != 0) {
      iVar13 = *(int *)(this + 0xc);
      uVar15 = 0;
      do {
        *(undefined4 *)((int)pvVar10 + uVar15 * 4) = *(undefined4 *)(iVar13 + uVar15 * 4);
        uVar15 = uVar15 + 1;
      } while (uVar15 != uVar14);
    }
    if (uVar14 < uVar11) {
      puVar9 = (undefined4 *)((int)pvVar10 + uVar14 * 4);
      do {
        *puVar9 = 0;
        puVar9 = puVar9 + 1;
      } while (puVar9 != (undefined4 *)((int)pvVar10 + uVar6 * 4 + 0x10));
    }
    *(void **)(this + 4) = pvVar7;
    *(void **)(this + 0xc) = pvVar10;
    *(uint *)(this + 8) = uVar11;
    if (pvVar3 != (void *)0x0) {
      operator_delete__(pvVar3);
    }
    if (pvVar4 != (void *)0x0) {
      operator_delete__(pvVar4);
    }
  }
  puVar5 = PTR___pthread_key_create_0033ef3c;
  if (PTR___pthread_key_create_0033ef3c == (undefined *)0x0) {
    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;
  }
  else {
    LOCK();
    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;
    UNLOCK();
  }
  piVar2 = (int *)(*(int *)(this + 4) + uVar6 * 4);
  piVar16 = (int *)*piVar2;
  if (piVar16 == (int *)0x0) goto LAB_001af0c6;
  ppuVar17 = &_S_twinned_facets;
  this_00 = (id *)_S_twinned_facets;
  if (_S_twinned_facets == (undefined *)0x0) {
LAB_001af0a8:
    if (puVar5 == (undefined *)0x0) goto LAB_001af170;
LAB_001af0b3:
    LOCK();
    piVar1 = piVar16 + 1;
    iVar13 = *piVar1;
    *piVar1 = *piVar1 + -1;
    UNLOCK();
  }
  else {
    do {
      uVar11 = locale::id::_M_id(this_00);
      if (uVar11 == uVar6) {
        iVar13 = *(int *)(this + 4);
        iVar12 = locale::id::_M_id((id *)ppuVar17[1]);
        local_24 = (int *)(iVar13 + iVar12 * 4);
        if (*local_24 != 0) {
          iVar13 = facet::_M_sso_shim(param_2,(id *)ppuVar17[1]);
          if (puVar5 == (undefined *)0x0) {
            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;
          }
          else {
            LOCK();
            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;
            UNLOCK();
          }
          piVar16 = (int *)*local_24;
          if (puVar5 == (undefined *)0x0) {
            iVar12 = piVar16[1];
            piVar16[1] = iVar12 + -1;
          }
          else {
            LOCK();
            piVar1 = piVar16 + 1;
            iVar12 = *piVar1;
            *piVar1 = *piVar1 + -1;
            UNLOCK();
          }
          if (iVar12 == 1) {
                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */
            (**(code **)(*piVar16 + 4))(piVar16);
          }
LAB_001af09e:
          *local_24 = iVar13;
          piVar16 = (int *)*piVar2;
          goto LAB_001af0a8;
        }
        break;
      }
      uVar11 = locale::id::_M_id((id *)ppuVar17[1]);
      if (uVar11 == uVar6) {
        iVar13 = *(int *)(this + 4);
        iVar12 = locale::id::_M_id((id *)*ppuVar17);
        local_24 = (int *)(iVar13 + iVar12 * 4);
        if (*local_24 != 0) {
          iVar13 = facet::_M_cow_shim(param_2,(id *)*ppuVar17);
          if (puVar5 == (undefined *)0x0) {
            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;
          }
          else {
            LOCK();
            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;
            UNLOCK();
          }
          piVar16 = (int *)*local_24;
          if (puVar5 == (undefined *)0x0) {
            iVar12 = piVar16[1];
            piVar16[1] = iVar12 + -1;
          }
          else {
            LOCK();
            piVar1 = piVar16 + 1;
            iVar12 = *piVar1;
            *piVar1 = *piVar1 + -1;
            UNLOCK();
          }
          if (iVar12 == 1) {
                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */
            (**(code **)(*piVar16 + 4))(piVar16);
          }
          goto LAB_001af09e;
        }
        break;
      }
      ppuVar17 = ppuVar17 + 2;
      this_00 = (id *)*ppuVar17;
    } while (this_00 != (id *)0x0);
    piVar16 = (int *)*piVar2;
    if (puVar5 != (undefined *)0x0) goto LAB_001af0b3;
LAB_001af170:
    iVar13 = piVar16[1];
    piVar16[1] = iVar13 + -1;
  }
  if (iVar13 == 1) {
                    /* try { // try from 001af188 to 001af18a has its CatchHandler @ 001af24c */
    (**(code **)(*piVar16 + 4))(piVar16);
  }
LAB_001af0c6:
  *piVar2 = (int)param_2;
  if (*(int *)(this + 8) != 0) {
    uVar6 = 0;
    iVar13 = *(int *)(this + 0xc);
    do {
      piVar2 = *(int **)(iVar13 + uVar6 * 4);
      if (piVar2 != (int *)0x0) {
        if (puVar5 == (undefined *)0x0) {
          iVar13 = piVar2[1];
          piVar2[1] = iVar13 + -1;
        }
        else {
          LOCK();
          piVar16 = piVar2 + 1;
          iVar13 = *piVar16;
          *piVar16 = *piVar16 + -1;
          UNLOCK();
        }
        if (iVar13 == 1) {
                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */
          (**(code **)(*piVar2 + 4))(piVar2);
        }
        iVar13 = *(int *)(this + 0xc);
        *(undefined4 *)(iVar13 + uVar6 * 4) = 0;
      }
      uVar6 = uVar6 + 1;
    } while (uVar6 < *(uint *)(this + 8));
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void FUN_001aee50(int param_1,undefined4 param_2,int param_3)

{
  int *piVar1;
  int *piVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  undefined *puVar6;
  uint uVar7;
  int iVar8;
  uint uVar9;
  undefined4 *puVar10;
  undefined *puVar11;
  uint uVar12;
  int iVar13;
  int iVar14;
  int *piVar15;
  undefined **ppuVar16;
  int *local_24;
  
  if (param_3 == 0) {
    return;
  }
  uVar7 = FUN_001aee00(param_2);
  if (*(int *)(param_1 + 8) - 1U < uVar7) {
    uVar12 = uVar7 + 4;
    iVar13 = *(int *)(param_1 + 4);
    iVar14 = uVar12 * 4;
    if (0x1fffffff < uVar12) {
      iVar14 = -1;
    }
    iVar8 = FUN_001aa840(iVar14);
    uVar3 = *(uint *)(param_1 + 8);
    if (uVar3 != 0) {
      iVar4 = *(int *)(param_1 + 4);
      uVar9 = 0;
      do {
        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);
        uVar9 = uVar9 + 1;
      } while (uVar9 != uVar3);
    }
    if (uVar3 < uVar12) {
      puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);
      do {
        *puVar10 = 0;
        puVar10 = puVar10 + 1;
      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);
    }
    iVar4 = *(int *)(param_1 + 0xc);
                    /* try { // try from 001aef1d to 001aef21 has its CatchHandler @ 001af256 */
    iVar14 = FUN_001aa840(iVar14);
    uVar3 = *(uint *)(param_1 + 8);
    if (uVar3 != 0) {
      iVar5 = *(int *)(param_1 + 0xc);
      uVar9 = 0;
      do {
        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);
        uVar9 = uVar9 + 1;
      } while (uVar9 != uVar3);
    }
    if (uVar3 < uVar12) {
      puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);
      do {
        *puVar10 = 0;
        puVar10 = puVar10 + 1;
      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));
    }
    *(int *)(param_1 + 4) = iVar8;
    *(int *)(param_1 + 0xc) = iVar14;
    *(uint *)(param_1 + 8) = uVar12;
    if (iVar13 != 0) {
      FUN_001ac410(iVar13);
    }
    if (iVar4 != 0) {
      FUN_001ac410(iVar4);
    }
  }
  puVar6 = PTR___pthread_key_create_0033ef3c;
  if (PTR___pthread_key_create_0033ef3c == (undefined *)0x0) {
    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;
  }
  else {
    LOCK();
    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;
    UNLOCK();
  }
  piVar2 = (int *)(*(int *)(param_1 + 4) + uVar7 * 4);
  piVar15 = (int *)*piVar2;
  if (piVar15 == (int *)0x0) goto LAB_001af0c6;
  ppuVar16 = &PTR_DAT_0033d900;
  puVar11 = PTR_DAT_0033d900;
  if (PTR_DAT_0033d900 == (undefined *)0x0) {
LAB_001af0a8:
    if (puVar6 == (undefined *)0x0) goto LAB_001af170;
LAB_001af0b3:
    LOCK();
    piVar1 = piVar15 + 1;
    iVar14 = *piVar1;
    *piVar1 = *piVar1 + -1;
    UNLOCK();
  }
  else {
    do {
      uVar12 = FUN_001aee00(puVar11);
      if (uVar12 == uVar7) {
        iVar14 = *(int *)(param_1 + 4);
        iVar13 = FUN_001aee00(ppuVar16[1]);
        local_24 = (int *)(iVar14 + iVar13 * 4);
        if (*local_24 != 0) {
          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);
          if (puVar6 == (undefined *)0x0) {
            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;
          }
          else {
            LOCK();
            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;
            UNLOCK();
          }
          piVar15 = (int *)*local_24;
          if (puVar6 == (undefined *)0x0) {
            iVar13 = piVar15[1];
            piVar15[1] = iVar13 + -1;
          }
          else {
            LOCK();
            piVar1 = piVar15 + 1;
            iVar13 = *piVar1;
            *piVar1 = *piVar1 + -1;
            UNLOCK();
          }
          if (iVar13 == 1) {
                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */
            (**(code **)(*piVar15 + 4))(piVar15);
          }
LAB_001af09e:
          *local_24 = iVar14;
          piVar15 = (int *)*piVar2;
          goto LAB_001af0a8;
        }
        break;
      }
      uVar12 = FUN_001aee00(ppuVar16[1]);
      if (uVar12 == uVar7) {
        iVar14 = *(int *)(param_1 + 4);
        iVar13 = FUN_001aee00(*ppuVar16);
        local_24 = (int *)(iVar14 + iVar13 * 4);
        if (*local_24 != 0) {
          iVar14 = FUN_001f0420(param_3,*ppuVar16);
          if (puVar6 == (undefined *)0x0) {
            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;
          }
          else {
            LOCK();
            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;
            UNLOCK();
          }
          piVar15 = (int *)*local_24;
          if (puVar6 == (undefined *)0x0) {
            iVar13 = piVar15[1];
            piVar15[1] = iVar13 + -1;
          }
          else {
            LOCK();
            piVar1 = piVar15 + 1;
            iVar13 = *piVar1;
            *piVar1 = *piVar1 + -1;
            UNLOCK();
          }
          if (iVar13 == 1) {
                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */
            (**(code **)(*piVar15 + 4))(piVar15);
          }
          goto LAB_001af09e;
        }
        break;
      }
      ppuVar16 = ppuVar16 + 2;
      puVar11 = *ppuVar16;
    } while (puVar11 != (undefined *)0x0);
    piVar15 = (int *)*piVar2;
    if (puVar6 != (undefined *)0x0) goto LAB_001af0b3;
LAB_001af170:
    iVar14 = piVar15[1];
    piVar15[1] = iVar14 + -1;
  }
  if (iVar14 == 1) {
                    /* try { // try from 001af188 to 001af18a has its CatchHandler @ 001af24c */
    (**(code **)(*piVar15 + 4))(piVar15);
  }
LAB_001af0c6:
  *piVar2 = param_3;
  if (*(int *)(param_1 + 8) != 0) {
    uVar7 = 0;
    iVar14 = *(int *)(param_1 + 0xc);
    do {
      piVar2 = *(int **)(iVar14 + uVar7 * 4);
      if (piVar2 != (int *)0x0) {
        if (puVar6 == (undefined *)0x0) {
          iVar14 = piVar2[1];
          piVar2[1] = iVar14 + -1;
        }
        else {
          LOCK();
          piVar15 = piVar2 + 1;
          iVar14 = *piVar15;
          *piVar15 = *piVar15 + -1;
          UNLOCK();
        }
        if (iVar14 == 1) {
                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */
          (**(code **)(*piVar2 + 4))(piVar2);
        }
        iVar14 = *(int *)(param_1 + 0xc);
        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;
      }
      uVar7 = uVar7 + 1;
    } while (uVar7 < *(uint *)(param_1 + 8));
  }
  return;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
CALL 0x000487a6
ADD ESI,0x1901a6
PUSH EBX
SUB ESP,0x2c
MOV EAX,dword ptr [EBP + 0x10]
MOV EDI,dword ptr [EBP + 0x8]
MOV dword ptr [EBP + -0x1c],ESI
TEST EAX,EAX
JZ 0x001af140
SUB ESP,0xc
PUSH dword ptr [EBP + 0xc]
MOV EBX,ESI
CALL 0x001aee00
ADD ESP,0x10
MOV ECX,EAX
MOV dword ptr [EBP + -0x20],EAX
MOV EAX,dword ptr [EDI + 0x8]
SUB EAX,0x1
CMP EAX,ECX
JNC 0x001aefaa
LEA EAX,[ECX + 0x4]
MOV ECX,dword ptr [EDI + 0x4]
CMP EAX,0x20000000
MOV dword ptr [EBP + -0x24],EAX
LEA EDX,[EAX*0x4 + 0x0]
MOV EAX,0xffffffff
CMOVNC EDX,EAX
SUB ESP,0xc
MOV dword ptr [EBP + -0x28],ECX
PUSH EDX
MOV dword ptr [EBP + -0x2c],EDX
CALL 0x001aa840
MOV ECX,dword ptr [EDI + 0x8]
ADD ESP,0x10
MOV EDX,dword ptr [EBP + -0x2c]
MOV ESI,EAX
TEST ECX,ECX
JZ 0x001aeef0
MOV dword ptr [EBP + -0x2c],EDX
MOV EBX,dword ptr [EDI + 0x4]
XOR EAX,EAX
LEA ESI,[ESI]
NOP
MOV EDX,dword ptr [EBX + EAX*0x4]
MOV dword ptr [ESI + EAX*0x4],EDX
ADD EAX,0x1
CMP EAX,ECX
JNZ 0x001aeee0
MOV EDX,dword ptr [EBP + -0x2c]
CMP dword ptr [EBP + -0x24],ECX
JBE 0x001aef10
MOV EBX,dword ptr [EBP + -0x20]
LEA EAX,[ESI + ECX*0x4]
LEA ECX,[ESI + EBX*0x4 + 0x10]
NOP
MOV dword ptr [EAX],0x0
ADD EAX,0x4
CMP ECX,EAX
JNZ 0x001aef00
MOV dword ptr [EBP + -0x20],EBX
SUB ESP,0xc
MOV EAX,dword ptr [EDI + 0xc]
MOV EBX,dword ptr [EBP + -0x1c]
PUSH EDX
MOV dword ptr [EBP + -0x2c],EAX
CALL 0x001aa840
MOV ECX,dword ptr [EDI + 0x8]
ADD ESP,0x10
TEST ECX,ECX
JZ 0x001aef48
MOV dword ptr [EBP + -0x30],ESI
MOV EBX,dword ptr [EDI + 0xc]
XOR EDX,EDX
LEA ESI,[ESI]
MOV ESI,dword ptr [EBX + EDX*0x4]
MOV dword ptr [EAX + EDX*0x4],ESI
ADD EDX,0x1
CMP EDX,ECX
JNZ 0x001aef38
MOV ESI,dword ptr [EBP + -0x30]
CMP dword ptr [EBP + -0x24],ECX
JBE 0x001aef70
MOV EBX,dword ptr [EBP + -0x20]
LEA EDX,[EAX + ECX*0x4]
LEA ECX,[EAX + EBX*0x4 + 0x10]
LEA ESI,[ESI]
NOP
MOV dword ptr [EDX],0x0
ADD EDX,0x4
CMP EDX,ECX
JNZ 0x001aef60
MOV dword ptr [EBP + -0x20],EBX
MOV ECX,dword ptr [EBP + -0x24]
MOV dword ptr [EDI + 0x4],ESI
MOV ESI,dword ptr [EBP + -0x28]
MOV dword ptr [EDI + 0xc],EAX
MOV dword ptr [EDI + 0x8],ECX
TEST ESI,ESI
JZ 0x001aef94
SUB ESP,0xc
PUSH dword ptr [EBP + -0x28]
MOV EBX,dword ptr [EBP + -0x1c]
CALL 0x001ac410
ADD ESP,0x10
MOV EAX,dword ptr [EBP + -0x2c]
TEST EAX,EAX
JZ 0x001aefaa
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x1c]
PUSH EAX
CALL 0x001ac410
ADD ESP,0x10
MOV EAX,dword ptr [EBP + -0x1c]
MOV EAX,dword ptr [EAX + 0xffffff3c]
TEST EAX,EAX
MOV dword ptr [EBP + -0x24],EAX
MOV EAX,dword ptr [EBP + 0x10]
JZ 0x001af150
ADD.LOCK dword ptr [EAX + 0x4],0x1
MOV EAX,dword ptr [EDI + 0x4]
MOV EBX,dword ptr [EBP + -0x20]
LEA EAX,[EAX + EBX*0x4]
MOV EDX,dword ptr [EAX]
MOV dword ptr [EBP + -0x28],EAX
TEST EDX,EDX
JZ 0x001af0c6
MOV EAX,dword ptr [EBP + -0x1c]
LEA ESI,[EAX + 0xffffe900]
MOV EAX,dword ptr [ESI]
TEST EAX,EAX
JNZ 0x001af017
JMP 0x001af0a8
SUB ESP,0xc
PUSH dword ptr [ESI + 0x4]
MOV EBX,dword ptr [EBP + -0x1c]
CALL 0x001aee00
ADD ESP,0x10
CMP EAX,dword ptr [EBP + -0x20]
JZ 0x001af198
ADD ESI,0x8
MOV EAX,dword ptr [ESI]
TEST EAX,EAX
JZ 0x001af160
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x1c]
PUSH EAX
CALL 0x001aee00
ADD ESP,0x10
CMP EAX,dword ptr [EBP + -0x20]
JNZ 0x001aeff0
MOV EAX,dword ptr [EDI + 0x4]
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x1c]
PUSH dword ptr [ESI + 0x4]
MOV dword ptr [EBP + -0x20],EAX
CALL 0x001aee00
MOV ECX,dword ptr [EBP + -0x20]
ADD ESP,0x10
LEA EAX,[ECX + EAX*0x4]
MOV EBX,dword ptr [EAX]
MOV dword ptr [EBP + -0x20],EAX
TEST EBX,EBX
JZ 0x001af160
SUB ESP,0x8
PUSH dword ptr [ESI + 0x4]
MOV EBX,dword ptr [EBP + -0x1c]
PUSH dword ptr [EBP + 0x10]
CALL 0x001eac90
MOV ECX,dword ptr [EBP + -0x24]
ADD ESP,0x10
MOV ESI,EAX
TEST ECX,ECX
JZ 0x001af20e
ADD.LOCK dword ptr [EAX + 0x4],0x1
MOV EAX,dword ptr [EBP + -0x20]
MOV EDX,dword ptr [EBP + -0x24]
MOV EAX,dword ptr [EAX]
TEST EDX,EDX
JZ 0x001af21d
MOV EDX,0xffffffff
XADD.LOCK dword ptr [EAX + 0x4],EDX
CMP EDX,0x1
JZ 0x001af236
MOV EAX,dword ptr [EBP + -0x20]
MOV dword ptr [EAX],ESI
MOV EAX,dword ptr [EBP + -0x28]
MOV EDX,dword ptr [EAX]
MOV EBX,dword ptr [EBP + -0x24]
TEST EBX,EBX
JZ 0x001af170
MOV EAX,0xffffffff
XADD.LOCK dword ptr [EDX + 0x4],EAX
CMP EAX,0x1
JZ 0x001af182
MOV ECX,dword ptr [EBP + 0x10]
MOV EAX,dword ptr [EBP + -0x28]
MOV dword ptr [EAX],ECX
MOV ECX,dword ptr [EDI + 0x8]
TEST ECX,ECX
JZ 0x001af140
XOR ESI,ESI
MOV EDX,dword ptr [EDI + 0xc]
JMP 0x001af108
MOV EDX,0xffffffff
XADD.LOCK dword ptr [EAX + 0x4],EDX
CMP EDX,0x1
JZ 0x001af12e
MOV EDX,dword ptr [EDI + 0xc]
LEA EAX,[ESI*0x4 + 0x0]
MOV dword ptr [EDX + EAX*0x1],0x0
ADD ESI,0x1
CMP dword ptr [EDI + 0x8],ESI
JBE 0x001af140
LEA EAX,[ESI*0x4 + 0x0]
MOV dword ptr [EBP + -0x20],EAX
MOV EAX,dword ptr [EDX + ESI*0x4]
TEST EAX,EAX
JZ 0x001af100
MOV EDX,dword ptr [EBP + -0x24]
TEST EDX,EDX
JNZ 0x001af0e0
MOV EDX,dword ptr [EAX + 0x4]
LEA ECX,[EDX + -0x1]
MOV dword ptr [EAX + 0x4],ECX
CMP EDX,0x1
JNZ 0x001af0ef
MOV EDX,dword ptr [EAX]
SUB ESP,0xc
PUSH EAX
CALL dword ptr [EDX + 0x4]
ADD ESP,0x10
JMP 0x001af0ef
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD dword ptr [EAX + 0x4],0x1
JMP 0x001aefc6
MOV EAX,dword ptr [EBP + -0x28]
MOV EBX,dword ptr [EBP + -0x24]
MOV EDX,dword ptr [EAX]
TEST EBX,EBX
JNZ 0x001af0b3
MOV EAX,dword ptr [EDX + 0x4]
LEA ECX,[EAX + -0x1]
MOV dword ptr [EDX + 0x4],ECX
CMP EAX,0x1
JNZ 0x001af0c6
MOV EAX,dword ptr [EDX]
SUB ESP,0xc
PUSH EDX
CALL dword ptr [EAX + 0x4]
ADD ESP,0x10
JMP 0x001af0c6
MOV EAX,dword ptr [EDI + 0x4]
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x1c]
PUSH dword ptr [ESI]
MOV dword ptr [EBP + -0x20],EAX
CALL 0x001aee00
MOV ECX,dword ptr [EBP + -0x20]
ADD ESP,0x10
LEA EAX,[ECX + EAX*0x4]
MOV EBX,dword ptr [EAX]
MOV dword ptr [EBP + -0x20],EAX
TEST EBX,EBX
JZ 0x001af160
SUB ESP,0x8
PUSH dword ptr [ESI]
MOV EBX,dword ptr [EBP + -0x1c]
PUSH dword ptr [EBP + 0x10]
CALL 0x001f0420
MOV ECX,dword ptr [EBP + -0x24]
ADD ESP,0x10
MOV ESI,EAX
TEST ECX,ECX
JZ 0x001af217
ADD.LOCK dword ptr [EAX + 0x4],0x1
MOV EAX,dword ptr [EBP + -0x20]
MOV EDX,dword ptr [EBP + -0x24]
MOV EAX,dword ptr [EAX]
TEST EDX,EDX
JZ 0x001af22b
MOV EDX,0xffffffff
XADD.LOCK dword ptr [EAX + 0x4],EDX
CMP EDX,0x1
JNZ 0x001af09e
MOV EDX,dword ptr [EAX]
SUB ESP,0xc
PUSH EAX
CALL dword ptr [EDX + 0x4]
ADD ESP,0x10
JMP 0x001af09e
ADD dword ptr [EAX + 0x4],0x1
JMP 0x001af07b
ADD dword ptr [EAX + 0x4],0x1
JMP 0x001af1de
MOV EDX,dword ptr [EAX + 0x4]
LEA ECX,[EDX + -0x1]
MOV dword ptr [EAX + 0x4],ECX
JMP 0x001af095
MOV EDX,dword ptr [EAX + 0x4]
LEA ECX,[EDX + -0x1]
MOV dword ptr [EAX + 0x4],ECX
JMP 0x001af1f4
MOV EDX,dword ptr [EAX]
SUB ESP,0xc
PUSH EAX
CALL dword ptr [EDX + 0x4]
ADD ESP,0x10
JMP 0x001af09e
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid FUN_001aee50(int param_1,undefined4 param_2,int param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  undefined *puVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  undefined4 *puVar10;\n  undefined *puVar11;\n  uint uVar12;\n  int iVar13;\n  int iVar14;\n  int *piVar15;\n  undefined **ppuVar16;\n  int *local_24;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  uVar7 = FUN_001aee00(param_2);\n  if (*(int *)(param_1 + 8) - 1U < uVar7) {\n    uVar12 = uVar7 + 4;\n    iVar13 = *(int *)(param_1 + 4);\n    iVar14 = uVar12 * 4;\n    if (0x1fffffff < uVar12) {\n      iVar14 = -1;\n    }\n    iVar8 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar4 = *(int *)(param_1 + 4);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n                    /* try { // try from 001aef1d to 001aef21 has its CatchHandler @ 001af256 */\n    iVar14 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar5 = *(int *)(param_1 + 0xc);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));\n    }\n    *(int *)(param_1 + 4) = iVar8;\n    *(int *)(param_1 + 0xc) = iVar14;\n    *(uint *)(param_1 + 8) = uVar12;\n    if (iVar13 != 0) {\n      FUN_001ac410(iVar13);\n    }\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }\n  puVar6 = PTR___pthread_key_create_0033ef3c;\n  if (PTR___pthread_key_create_0033ef3c == (undefined *)0x0) {\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n  }\n  else {\n    LOCK();\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n    UNLOCK();\n  }\n  piVar2 = (int *)(*(int *)(param_1 + 4) + uVar7 * 4);\n  piVar15 = (int *)*piVar2;\n  if (piVar15 == (int *)0x0) goto LAB_001af0c6;\n  ppuVar16 = &PTR_DAT_0033d900;\n  puVar11 = PTR_DAT_0033d900;\n  if (PTR_DAT_0033d900 == (undefined *)0x0) {\nLAB_001af0a8:\n    if (puVar6 == (undefined *)0x0) goto LAB_001af170;\nLAB_001af0b3:\n    LOCK();\n    piVar1 = piVar15 + 1;\n    iVar14 = *piVar1;\n    *piVar1 = *piVar1 + -1;\n    UNLOCK();\n  }\n  else {\n    do {\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    } while (puVar11 != (undefined *)0x0);\n    piVar15 = (int *)*piVar2;\n    if (puVar6 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar14 = piVar15[1];\n    piVar15[1] = iVar14 + -1;\n  }\n  if (iVar14 == 1) {\n                    /* try { // try from 001af188 to 001af18a has its CatchHandler @ 001af24c */\n    (**(code **)(*piVar15 + 4))(piVar15);\n  }\nLAB_001af0c6:\n  *piVar2 = param_3;\n  if (*(int *)(param_1 + 8) != 0) {\n    uVar7 = 0;\n    iVar14 = *(int *)(param_1 + 0xc);\n    do {\n      piVar2 = *(int **)(iVar14 + uVar7 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */\n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < *(uint *)(param_1 + 8));\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_001aee50(int param_1,undefined4 param_2,int param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  undefined *puVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  undefined4 *puVar10;\n  undefined *puVar11;\n  uint uVar12;\n  int iVar13;\n  int iVar14;\n  int *piVar15;\n  undefined **ppuVar16;\n  int *local_24;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  uVar7 = FUN_001aee00(param_2);\n  if (*(int *)(param_1 + 8) - 1U < uVar7) {\n    uVar12 = uVar7 + 4;\n    iVar13 = *(int *)(param_1 + 4);\n    iVar14 = uVar12 * 4;\n    if (0x1fffffff < uVar12) {\n      iVar14 = -1;\n    }\n    iVar8 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar4 = *(int *)(param_1 + 4);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n                    /* try { // try from 001aef1d to 001aef21 has its CatchHandler @ 001af256 */\n    iVar14 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar5 = *(int *)(param_1 + 0xc);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));\n    }\n    *(int *)(param_1 + 4) = iVar8;\n    *(int *)(param_1 + 0xc) = iVar14;\n    *(uint *)(param_1 + 8) = uVar12;\n    if (iVar13 != 0) {\n      FUN_001ac410(iVar13);\n    }\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }\n  puVar6 = PTR___pthread_key_create_0033ef3c;\n  if (PTR___pthread_key_create_0033ef3c == (undefined *)0x0) {\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n  }\n  else {\n    LOCK();\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n    UNLOCK();\n  }\n  piVar2 = (int *)(*(int *)(param_1 + 4) + uVar7 * 4);\n  piVar15 = (int *)*piVar2;\n  if (piVar15 == (int *)0x0) goto LAB_001af0c6;\n  ppuVar16 = &PTR_DAT_0033d900;\n  puVar11 = PTR_DAT_0033d900;\n  if (PTR_DAT_0033d900 == (undefined *)0x0) {\nLAB_001af0a8:\n    if (puVar6 == (undefined *)0x0) goto LAB_001af170;\nLAB_001af0b3:\n    LOCK();\n    piVar1 = piVar15 + 1;\n    iVar14 = *piVar1;\n    *piVar1 = *piVar1 + -1;\n    UNLOCK();\n  }\n  else {\n    do {\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    } while (puVar11 != (undefined *)0x0);\n    piVar15 = (int *)*piVar2;\n    if (puVar6 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar14 = piVar15[1];\n    piVar15[1] = iVar14 + -1;\n  }\n  if (iVar14 == 1) {\n                    /* try { // try from 001af188 to 001af18a has its CatchHandler @ 001af24c */\n    (**(code **)(*piVar15 + 4))(piVar15);\n  }\nLAB_001af0c6:\n  *piVar2 = param_3;\n  if (*(int *)(param_1 + 8) != 0) {\n    uVar7 = 0;\n    iVar14 = *(int *)(param_1 + 0xc);\n    do {\n      piVar2 = *(int **)(iVar14 + uVar7 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */\n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < *(uint *)(param_1 + 8));\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001aee50(int param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  undefined *puVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  undefined4 *puVar10;\n  undefined *puVar11;\n  uint uVar12;\n  int iVar13;\n  int iVar14;\n  int *piVar15;\n  undefined **ppuVar16;\n  int *local_24;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  uVar7 = FUN_001aee00(param_2);\n  if (*(int *)(param_1 + 8) - 1U < uVar7) {\n    uVar12 = uVar7 + 4;\n    iVar13 = *(int *)(param_1 + 4);\n    iVar14 = uVar12 * 4;\n    if (0x1fffffff < uVar12) {\n      iVar14 = -1;\n    }\n    iVar8 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar4 = *(int *)(param_1 + 4);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n                    /* try { // try from 001aef1d to 001aef21 has its CatchHandler @ 001af256 */\n    iVar14 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar5 = *(int *)(param_1 + 0xc);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));\n    }\n    *(int *)(param_1 + 4) = iVar8;\n    *(int *)(param_1 + 0xc) = iVar14;\n    *(uint *)(param_1 + 8) = uVar12;\n    if (iVar13 != 0) {\n      FUN_001ac410(iVar13);\n    }\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }\n  puVar6 = PTR___pthread_key_create_0033ef3c;\n  if (PTR___pthread_key_create_0033ef3c == (undefined *)0x0) {\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n  }\n  else {\n    LOCK();\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n    UNLOCK();\n  }\n  piVar2 = (int *)(*(int *)(param_1 + 4) + uVar7 * 4);\n  piVar15 = (int *)*piVar2;\n  if (piVar15 == (int *)0x0) goto LAB_001af0c6;\n  ppuVar16 = &PTR_DAT_0033d900;\n  puVar11 = PTR_DAT_0033d900;\n  if (PTR_DAT_0033d900 == (undefined *)0x0) {\nLAB_001af0a8:\n    if (puVar6 == (undefined *)0x0) goto LAB_001af170;\nLAB_001af0b3:\n    LOCK();\n    piVar1 = piVar15 + 1;\n    iVar14 = *piVar1;\n    *piVar1 = *piVar1 + -1;\n    UNLOCK();\n  }\n  else {\n    do {\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    } while (puVar11 != (undefined *)0x0);\n    piVar15 = (int *)*piVar2;\n    if (puVar6 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar14 = piVar15[1];\n    piVar15[1] = iVar14 + -1;\n  }\n  if (iVar14 == 1) {\n                    /* try { // try from 001af188 to 001af18a has its CatchHandler @ 001af24c */\n    (**(code **)(*piVar15 + 4))(piVar15);\n  }\nLAB_001af0c6:\n  *piVar2 = param_3;\n  if (*(int *)(param_1 + 8) != 0) {\n    uVar7 = 0;\n    iVar14 = *(int *)(param_1 + 0xc);\n    do {\n      piVar2 = *(int **)(iVar14 + uVar7 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */\n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < *(uint *)(param_1 + 8));\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "undefined4 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "int *piVar15;" primitive_type (pointer_declarator "*piVar15" * identifier) ;) (declaration "undefined **ppuVar16;" type_identifier (pointer_declarator "**ppuVar16" * (pointer_declarator "*ppuVar16" * identifier)) ;) (declaration "int *local_24;" primitive_type (pointer_declarator "*local_24" * identifier) ;) (if_statement "if (param_3 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar7 = FUN_001aee00(param_2);" (assignment_expression "uVar7 = FUN_001aee00(param_2)" identifier = (call_expression "FUN_001aee00(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (*(int *)(param_1 + 8) - 1U < uVar7) {\n    uVar12 = uVar7 + 4;\n    iVar13 = *(int *)(param_1 + 4);\n    iVar14 = uVar12 * 4;\n    if (0x1fffffff < uVar12) {\n      iVar14 = -1;\n    }\n    iVar8 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar4 = *(int *)(param_1 + 4);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n                    /* try { // try from 001aef1d to 001aef21 has its CatchHandler @ 001af256 */\n    iVar14 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar5 = *(int *)(param_1 + 0xc);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));\n    }\n    *(int *)(param_1 + 4) = iVar8;\n    *(int *)(param_1 + 0xc) = iVar14;\n    *(uint *)(param_1 + 8) = uVar12;\n    if (iVar13 != 0) {\n      FUN_001ac410(iVar13);\n    }\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) - 1U < uVar7)" ( (binary_expression "*(int *)(param_1 + 8) - 1U < uVar7" (binary_expression "*(int *)(param_1 + 8) - 1U" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) - number_literal) < identifier) )) (compound_statement "{\n    uVar12 = uVar7 + 4;\n    iVar13 = *(int *)(param_1 + 4);\n    iVar14 = uVar12 * 4;\n    if (0x1fffffff < uVar12) {\n      iVar14 = -1;\n    }\n    iVar8 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar4 = *(int *)(param_1 + 4);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n                    /* try { // try from 001aef1d to 001aef21 has its CatchHandler @ 001af256 */\n    iVar14 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar5 = *(int *)(param_1 + 0xc);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));\n    }\n    *(int *)(param_1 + 4) = iVar8;\n    *(int *)(param_1 + 0xc) = iVar14;\n    *(uint *)(param_1 + 8) = uVar12;\n    if (iVar13 != 0) {\n      FUN_001ac410(iVar13);\n    }\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }" { (expression_statement "uVar12 = uVar7 + 4;" (assignment_expression "uVar12 = uVar7 + 4" identifier = (binary_expression "uVar7 + 4" identifier + number_literal)) ;) (expression_statement "iVar13 = *(int *)(param_1 + 4);" (assignment_expression "iVar13 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar14 = uVar12 * 4;" (assignment_expression "iVar14 = uVar12 * 4" identifier = (binary_expression "uVar12 * 4" identifier * number_literal)) ;) (if_statement "if (0x1fffffff < uVar12) {\n      iVar14 = -1;\n    }" if (parenthesized_expression "(0x1fffffff < uVar12)" ( (binary_expression "0x1fffffff < uVar12" number_literal < identifier) )) (compound_statement "{\n      iVar14 = -1;\n    }" { (expression_statement "iVar14 = -1;" (assignment_expression "iVar14 = -1" identifier = number_literal) ;) })) (expression_statement "iVar8 = FUN_001aa840(iVar14);" (assignment_expression "iVar8 = FUN_001aa840(iVar14)" identifier = (call_expression "FUN_001aa840(iVar14)" identifier (argument_list "(iVar14)" ( identifier )))) ;) (expression_statement "uVar3 = *(uint *)(param_1 + 8);" (assignment_expression "uVar3 = *(uint *)(param_1 + 8)" identifier = (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (uVar3 != 0) {\n      iVar4 = *(int *)(param_1 + 4);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar4 = *(int *)(param_1 + 4);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }" { (expression_statement "iVar4 = *(int *)(param_1 + 4);" (assignment_expression "iVar4 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);" do (compound_statement "{\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      }" { (expression_statement "*(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);" (assignment_expression "*(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4)" (pointer_expression "*(undefined4 *)(iVar8 + uVar9 * 4)" * (cast_expression "(undefined4 *)(iVar8 + uVar9 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + uVar9 * 4)" ( (binary_expression "iVar8 + uVar9 * 4" identifier + (binary_expression "uVar9 * 4" identifier * number_literal)) )))) = (pointer_expression "*(undefined4 *)(iVar4 + uVar9 * 4)" * (cast_expression "(undefined4 *)(iVar4 + uVar9 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + uVar9 * 4)" ( (binary_expression "iVar4 + uVar9 * 4" identifier + (binary_expression "uVar9 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar9 != uVar3)" ( (binary_expression "uVar9 != uVar3" identifier != identifier) )) ;) })) (if_statement "if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);\n    }" if (parenthesized_expression "(uVar3 < uVar12)" ( (binary_expression "uVar3 < uVar12" identifier < identifier) )) (compound_statement "{\n      puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);\n    }" { (expression_statement "puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);" (assignment_expression "puVar10 = (undefined4 *)(iVar8 + uVar3 * 4)" identifier = (cast_expression "(undefined4 *)(iVar8 + uVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + uVar3 * 4)" ( (binary_expression "iVar8 + uVar3 * 4" identifier + (binary_expression "uVar3 * 4" identifier * number_literal)) )))) ;) (do_statement "do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);" do (compound_statement "{\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      }" { (expression_statement "*puVar10 = 0;" (assignment_expression "*puVar10 = 0" (pointer_expression "*puVar10" * identifier) = number_literal) ;) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10)" ( (binary_expression "(undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10" (cast_expression "(undefined4 *)(iVar8 + 0x10 + uVar7 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x10 + uVar7 * 4)" ( (binary_expression "iVar8 + 0x10 + uVar7 * 4" (binary_expression "iVar8 + 0x10" identifier + number_literal) + (binary_expression "uVar7 * 4" identifier * number_literal)) ))) != identifier) )) ;) })) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) comment (expression_statement "iVar14 = FUN_001aa840(iVar14);" (assignment_expression "iVar14 = FUN_001aa840(iVar14)" identifier = (call_expression "FUN_001aa840(iVar14)" identifier (argument_list "(iVar14)" ( identifier )))) ;) (expression_statement "uVar3 = *(uint *)(param_1 + 8);" (assignment_expression "uVar3 = *(uint *)(param_1 + 8)" identifier = (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (uVar3 != 0) {\n      iVar5 = *(int *)(param_1 + 0xc);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar5 = *(int *)(param_1 + 0xc);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }" { (expression_statement "iVar5 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar5 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);" do (compound_statement "{\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      }" { (expression_statement "*(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);" (assignment_expression "*(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4)" (pointer_expression "*(undefined4 *)(iVar14 + uVar9 * 4)" * (cast_expression "(undefined4 *)(iVar14 + uVar9 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + uVar9 * 4)" ( (binary_expression "iVar14 + uVar9 * 4" identifier + (binary_expression "uVar9 * 4" identifier * number_literal)) )))) = (pointer_expression "*(undefined4 *)(iVar5 + uVar9 * 4)" * (cast_expression "(undefined4 *)(iVar5 + uVar9 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + uVar9 * 4)" ( (binary_expression "iVar5 + uVar9 * 4" identifier + (binary_expression "uVar9 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar9 != uVar3)" ( (binary_expression "uVar9 != uVar3" identifier != identifier) )) ;) })) (if_statement "if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));\n    }" if (parenthesized_expression "(uVar3 < uVar12)" ( (binary_expression "uVar3 < uVar12" identifier < identifier) )) (compound_statement "{\n      puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));\n    }" { (expression_statement "puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);" (assignment_expression "puVar10 = (undefined4 *)(iVar14 + uVar3 * 4)" identifier = (cast_expression "(undefined4 *)(iVar14 + uVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + uVar3 * 4)" ( (binary_expression "iVar14 + uVar3 * 4" identifier + (binary_expression "uVar3 * 4" identifier * number_literal)) )))) ;) (do_statement "do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));" do (compound_statement "{\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      }" { (expression_statement "*puVar10 = 0;" (assignment_expression "*puVar10 = 0" (pointer_expression "*puVar10" * identifier) = number_literal) ;) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4))" ( (binary_expression "puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4)" identifier != (cast_expression "(undefined4 *)(iVar14 + 0x10 + uVar7 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0x10 + uVar7 * 4)" ( (binary_expression "iVar14 + 0x10 + uVar7 * 4" (binary_expression "iVar14 + 0x10" identifier + number_literal) + (binary_expression "uVar7 * 4" identifier * number_literal)) )))) )) ;) })) (expression_statement "*(int *)(param_1 + 4) = iVar8;" (assignment_expression "*(int *)(param_1 + 4) = iVar8" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0xc) = iVar14;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar14" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_1 + 8) = uVar12;" (assignment_expression "*(uint *)(param_1 + 8) = uVar12" (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar13 != 0) {\n      FUN_001ac410(iVar13);\n    }" if (parenthesized_expression "(iVar13 != 0)" ( (binary_expression "iVar13 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_001ac410(iVar13);\n    }" { (expression_statement "FUN_001ac410(iVar13);" (call_expression "FUN_001ac410(iVar13)" identifier (argument_list "(iVar13)" ( identifier ))) ;) })) (if_statement "if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_001ac410(iVar4);\n    }" { (expression_statement "FUN_001ac410(iVar4);" (call_expression "FUN_001ac410(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) })) })) (expression_statement "puVar6 = PTR___pthread_key_create_0033ef3c;" (assignment_expression "puVar6 = PTR___pthread_key_create_0033ef3c" identifier = identifier) ;) (if_statement "if (PTR___pthread_key_create_0033ef3c == (undefined *)0x0) {\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n  }\n  else {\n    LOCK();\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n    UNLOCK();\n  }" if (parenthesized_expression "(PTR___pthread_key_create_0033ef3c == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0033ef3c == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n  }" { (expression_statement "*(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;" (assignment_expression "*(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(param_3 + 4) + 1" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n    LOCK();\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n    UNLOCK();\n  }" else (compound_statement "{\n    LOCK();\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n    UNLOCK();\n  }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;" (assignment_expression "*(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(param_3 + 4) + 1" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "piVar2 = (int *)(*(int *)(param_1 + 4) + uVar7 * 4);" (assignment_expression "piVar2 = (int *)(*(int *)(param_1 + 4) + uVar7 * 4)" identifier = (cast_expression "(int *)(*(int *)(param_1 + 4) + uVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + uVar7 * 4)" ( (binary_expression "*(int *)(param_1 + 4) + uVar7 * 4" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + (binary_expression "uVar7 * 4" identifier * number_literal)) )))) ;) (expression_statement "piVar15 = (int *)*piVar2;" (assignment_expression "piVar15 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (if_statement "if (piVar15 == (int *)0x0) goto LAB_001af0c6;" if (parenthesized_expression "(piVar15 == (int *)0x0)" ( (binary_expression "piVar15 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001af0c6;" goto statement_identifier ;)) (expression_statement "ppuVar16 = &PTR_DAT_0033d900;" (assignment_expression "ppuVar16 = &PTR_DAT_0033d900" identifier = (pointer_expression "&PTR_DAT_0033d900" & identifier)) ;) (expression_statement "puVar11 = PTR_DAT_0033d900;" (assignment_expression "puVar11 = PTR_DAT_0033d900" identifier = identifier) ;) (if_statement "if (PTR_DAT_0033d900 == (undefined *)0x0) {\nLAB_001af0a8:\n    if (puVar6 == (undefined *)0x0) goto LAB_001af170;\nLAB_001af0b3:\n    LOCK();\n    piVar1 = piVar15 + 1;\n    iVar14 = *piVar1;\n    *piVar1 = *piVar1 + -1;\n    UNLOCK();\n  }\n  else {\n    do {\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    } while (puVar11 != (undefined *)0x0);\n    piVar15 = (int *)*piVar2;\n    if (puVar6 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar14 = piVar15[1];\n    piVar15[1] = iVar14 + -1;\n  }" if (parenthesized_expression "(PTR_DAT_0033d900 == (undefined *)0x0)" ( (binary_expression "PTR_DAT_0033d900 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_001af0a8:\n    if (puVar6 == (undefined *)0x0) goto LAB_001af170;\nLAB_001af0b3:\n    LOCK();\n    piVar1 = piVar15 + 1;\n    iVar14 = *piVar1;\n    *piVar1 = *piVar1 + -1;\n    UNLOCK();\n  }" { (labeled_statement "LAB_001af0a8:\n    if (puVar6 == (undefined *)0x0) goto LAB_001af170;" statement_identifier : (if_statement "if (puVar6 == (undefined *)0x0) goto LAB_001af170;" if (parenthesized_expression "(puVar6 == (undefined *)0x0)" ( (binary_expression "puVar6 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001af170;" goto statement_identifier ;))) (labeled_statement "LAB_001af0b3:\n    LOCK();" statement_identifier : (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;)) (expression_statement "piVar1 = piVar15 + 1;" (assignment_expression "piVar1 = piVar15 + 1" identifier = (binary_expression "piVar15 + 1" identifier + number_literal)) ;) (expression_statement "iVar14 = *piVar1;" (assignment_expression "iVar14 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n    do {\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    } while (puVar11 != (undefined *)0x0);\n    piVar15 = (int *)*piVar2;\n    if (puVar6 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar14 = piVar15[1];\n    piVar15[1] = iVar14 + -1;\n  }" else (compound_statement "{\n    do {\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    } while (puVar11 != (undefined *)0x0);\n    piVar15 = (int *)*piVar2;\n    if (puVar6 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar14 = piVar15[1];\n    piVar15[1] = iVar14 + -1;\n  }" { (do_statement "do {\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    } while (puVar11 != (undefined *)0x0);" do (compound_statement "{\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    }" { (expression_statement "uVar12 = FUN_001aee00(puVar11);" (assignment_expression "uVar12 = FUN_001aee00(puVar11)" identifier = (call_expression "FUN_001aee00(puVar11)" identifier (argument_list "(puVar11)" ( identifier )))) ;) (if_statement "if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }" if (parenthesized_expression "(uVar12 == uVar7)" ( (binary_expression "uVar12 == uVar7" identifier == identifier) )) (compound_statement "{\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }" { (expression_statement "iVar14 = *(int *)(param_1 + 4);" (assignment_expression "iVar14 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar13 = FUN_001aee00(ppuVar16[1]);" (assignment_expression "iVar13 = FUN_001aee00(ppuVar16[1])" identifier = (call_expression "FUN_001aee00(ppuVar16[1])" identifier (argument_list "(ppuVar16[1])" ( (subscript_expression "ppuVar16[1]" identifier [ number_literal ]) )))) ;) (expression_statement "local_24 = (int *)(iVar14 + iVar13 * 4);" (assignment_expression "local_24 = (int *)(iVar14 + iVar13 * 4)" identifier = (cast_expression "(int *)(iVar14 + iVar13 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + iVar13 * 4)" ( (binary_expression "iVar14 + iVar13 * 4" identifier + (binary_expression "iVar13 * 4" identifier * number_literal)) )))) ;) (if_statement "if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }" if (parenthesized_expression "(*local_24 != 0)" ( (binary_expression "*local_24 != 0" (pointer_expression "*local_24" * identifier) != number_literal) )) (compound_statement "{\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }" { (expression_statement "iVar14 = FUN_001eac90(param_3,ppuVar16[1]);" (assignment_expression "iVar14 = FUN_001eac90(param_3,ppuVar16[1])" identifier = (call_expression "FUN_001eac90(param_3,ppuVar16[1])" identifier (argument_list "(param_3,ppuVar16[1])" ( identifier , (subscript_expression "ppuVar16[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }" if (parenthesized_expression "(puVar6 == (undefined *)0x0)" ( (binary_expression "puVar6 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }" { (expression_statement "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;" (assignment_expression "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;" (assignment_expression "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "piVar15 = (int *)*local_24;" (assignment_expression "piVar15 = (int *)*local_24" identifier = (cast_expression "(int *)*local_24" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_24" * identifier))) ;) (if_statement "if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" if (parenthesized_expression "(puVar6 == (undefined *)0x0)" ( (binary_expression "puVar6 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }" { (expression_statement "iVar13 = piVar15[1];" (assignment_expression "iVar13 = piVar15[1]" identifier = (subscript_expression "piVar15[1]" identifier [ number_literal ])) ;) (expression_statement "piVar15[1] = iVar13 + -1;" (assignment_expression "piVar15[1] = iVar13 + -1" (subscript_expression "piVar15[1]" identifier [ number_literal ]) = (binary_expression "iVar13 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = piVar15 + 1;" (assignment_expression "piVar1 = piVar15 + 1" identifier = (binary_expression "piVar15 + 1" identifier + number_literal)) ;) (expression_statement "iVar13 = *piVar1;" (assignment_expression "iVar13 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar13 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }" if (parenthesized_expression "(iVar13 == 1)" ( (binary_expression "iVar13 == 1" identifier == number_literal) )) (compound_statement "{\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }" { comment (expression_statement "(**(code **)(*piVar15 + 4))(piVar15);" (call_expression "(**(code **)(*piVar15 + 4))(piVar15)" (parenthesized_expression "(**(code **)(*piVar15 + 4))" ( (pointer_expression "**(code **)(*piVar15 + 4)" * (pointer_expression "*(code **)(*piVar15 + 4)" * (cast_expression "(code **)(*piVar15 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar15 + 4)" ( (binary_expression "*piVar15 + 4" (pointer_expression "*piVar15" * identifier) + number_literal) ))))) )) (argument_list "(piVar15)" ( identifier ))) ;) })) (labeled_statement "LAB_001af09e:\n          *local_24 = iVar14;" statement_identifier : (expression_statement "*local_24 = iVar14;" (assignment_expression "*local_24 = iVar14" (pointer_expression "*local_24" * identifier) = identifier) ;)) (expression_statement "piVar15 = (int *)*piVar2;" (assignment_expression "piVar15 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (goto_statement "goto LAB_001af0a8;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) (expression_statement "uVar12 = FUN_001aee00(ppuVar16[1]);" (assignment_expression "uVar12 = FUN_001aee00(ppuVar16[1])" identifier = (call_expression "FUN_001aee00(ppuVar16[1])" identifier (argument_list "(ppuVar16[1])" ( (subscript_expression "ppuVar16[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }" if (parenthesized_expression "(uVar12 == uVar7)" ( (binary_expression "uVar12 == uVar7" identifier == identifier) )) (compound_statement "{\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }" { (expression_statement "iVar14 = *(int *)(param_1 + 4);" (assignment_expression "iVar14 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar13 = FUN_001aee00(*ppuVar16);" (assignment_expression "iVar13 = FUN_001aee00(*ppuVar16)" identifier = (call_expression "FUN_001aee00(*ppuVar16)" identifier (argument_list "(*ppuVar16)" ( (pointer_expression "*ppuVar16" * identifier) )))) ;) (expression_statement "local_24 = (int *)(iVar14 + iVar13 * 4);" (assignment_expression "local_24 = (int *)(iVar14 + iVar13 * 4)" identifier = (cast_expression "(int *)(iVar14 + iVar13 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + iVar13 * 4)" ( (binary_expression "iVar14 + iVar13 * 4" identifier + (binary_expression "iVar13 * 4" identifier * number_literal)) )))) ;) (if_statement "if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }" if (parenthesized_expression "(*local_24 != 0)" ( (binary_expression "*local_24 != 0" (pointer_expression "*local_24" * identifier) != number_literal) )) (compound_statement "{\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }" { (expression_statement "iVar14 = FUN_001f0420(param_3,*ppuVar16);" (assignment_expression "iVar14 = FUN_001f0420(param_3,*ppuVar16)" identifier = (call_expression "FUN_001f0420(param_3,*ppuVar16)" identifier (argument_list "(param_3,*ppuVar16)" ( identifier , (pointer_expression "*ppuVar16" * identifier) )))) ;) (if_statement "if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }" if (parenthesized_expression "(puVar6 == (undefined *)0x0)" ( (binary_expression "puVar6 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }" { (expression_statement "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;" (assignment_expression "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;" (assignment_expression "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "piVar15 = (int *)*local_24;" (assignment_expression "piVar15 = (int *)*local_24" identifier = (cast_expression "(int *)*local_24" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_24" * identifier))) ;) (if_statement "if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" if (parenthesized_expression "(puVar6 == (undefined *)0x0)" ( (binary_expression "puVar6 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }" { (expression_statement "iVar13 = piVar15[1];" (assignment_expression "iVar13 = piVar15[1]" identifier = (subscript_expression "piVar15[1]" identifier [ number_literal ])) ;) (expression_statement "piVar15[1] = iVar13 + -1;" (assignment_expression "piVar15[1] = iVar13 + -1" (subscript_expression "piVar15[1]" identifier [ number_literal ]) = (binary_expression "iVar13 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = piVar15 + 1;" (assignment_expression "piVar1 = piVar15 + 1" identifier = (binary_expression "piVar15 + 1" identifier + number_literal)) ;) (expression_statement "iVar13 = *piVar1;" (assignment_expression "iVar13 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar13 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }" if (parenthesized_expression "(iVar13 == 1)" ( (binary_expression "iVar13 == 1" identifier == number_literal) )) (compound_statement "{\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar15 + 4))(piVar15);\n          }" { comment (expression_statement "(**(code **)(*piVar15 + 4))(piVar15);" (call_expression "(**(code **)(*piVar15 + 4))(piVar15)" (parenthesized_expression "(**(code **)(*piVar15 + 4))" ( (pointer_expression "**(code **)(*piVar15 + 4)" * (pointer_expression "*(code **)(*piVar15 + 4)" * (cast_expression "(code **)(*piVar15 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar15 + 4)" ( (binary_expression "*piVar15 + 4" (pointer_expression "*piVar15" * identifier) + number_literal) ))))) )) (argument_list "(piVar15)" ( identifier ))) ;) })) (goto_statement "goto LAB_001af09e;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) (expression_statement "ppuVar16 = ppuVar16 + 2;" (assignment_expression "ppuVar16 = ppuVar16 + 2" identifier = (binary_expression "ppuVar16 + 2" identifier + number_literal)) ;) (expression_statement "puVar11 = *ppuVar16;" (assignment_expression "puVar11 = *ppuVar16" identifier = (pointer_expression "*ppuVar16" * identifier)) ;) }) while (parenthesized_expression "(puVar11 != (undefined *)0x0)" ( (binary_expression "puVar11 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "piVar15 = (int *)*piVar2;" (assignment_expression "piVar15 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (if_statement "if (puVar6 != (undefined *)0x0) goto LAB_001af0b3;" if (parenthesized_expression "(puVar6 != (undefined *)0x0)" ( (binary_expression "puVar6 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001af0b3;" goto statement_identifier ;)) (labeled_statement "LAB_001af170:\n    iVar14 = piVar15[1];" statement_identifier : (expression_statement "iVar14 = piVar15[1];" (assignment_expression "iVar14 = piVar15[1]" identifier = (subscript_expression "piVar15[1]" identifier [ number_literal ])) ;)) (expression_statement "piVar15[1] = iVar14 + -1;" (assignment_expression "piVar15[1] = iVar14 + -1" (subscript_expression "piVar15[1]" identifier [ number_literal ]) = (binary_expression "iVar14 + -1" identifier + number_literal)) ;) }))) (if_statement "if (iVar14 == 1) {\n                    /* try { // try from 001af188 to 001af18a has its CatchHandler @ 001af24c */\n    (**(code **)(*piVar15 + 4))(piVar15);\n  }" if (parenthesized_expression "(iVar14 == 1)" ( (binary_expression "iVar14 == 1" identifier == number_literal) )) (compound_statement "{\n                    /* try { // try from 001af188 to 001af18a has its CatchHandler @ 001af24c */\n    (**(code **)(*piVar15 + 4))(piVar15);\n  }" { comment (expression_statement "(**(code **)(*piVar15 + 4))(piVar15);" (call_expression "(**(code **)(*piVar15 + 4))(piVar15)" (parenthesized_expression "(**(code **)(*piVar15 + 4))" ( (pointer_expression "**(code **)(*piVar15 + 4)" * (pointer_expression "*(code **)(*piVar15 + 4)" * (cast_expression "(code **)(*piVar15 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar15 + 4)" ( (binary_expression "*piVar15 + 4" (pointer_expression "*piVar15" * identifier) + number_literal) ))))) )) (argument_list "(piVar15)" ( identifier ))) ;) })) (labeled_statement "LAB_001af0c6:\n  *piVar2 = param_3;" statement_identifier : (expression_statement "*piVar2 = param_3;" (assignment_expression "*piVar2 = param_3" (pointer_expression "*piVar2" * identifier) = identifier) ;)) (if_statement "if (*(int *)(param_1 + 8) != 0) {\n    uVar7 = 0;\n    iVar14 = *(int *)(param_1 + 0xc);\n    do {\n      piVar2 = *(int **)(iVar14 + uVar7 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */\n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < *(uint *)(param_1 + 8));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" ( (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar7 = 0;\n    iVar14 = *(int *)(param_1 + 0xc);\n    do {\n      piVar2 = *(int **)(iVar14 + uVar7 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */\n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < *(uint *)(param_1 + 8));\n  }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar14 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar14 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (do_statement "do {\n      piVar2 = *(int **)(iVar14 + uVar7 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */\n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < *(uint *)(param_1 + 8));" do (compound_statement "{\n      piVar2 = *(int **)(iVar14 + uVar7 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */\n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }\n      uVar7 = uVar7 + 1;\n    }" { (expression_statement "piVar2 = *(int **)(iVar14 + uVar7 * 4);" (assignment_expression "piVar2 = *(int **)(iVar14 + uVar7 * 4)" identifier = (pointer_expression "*(int **)(iVar14 + uVar7 * 4)" * (cast_expression "(int **)(iVar14 + uVar7 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar14 + uVar7 * 4)" ( (binary_expression "iVar14 + uVar7 * 4" identifier + (binary_expression "uVar7 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */\n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */\n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }" { (if_statement "if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }" if (parenthesized_expression "(puVar6 == (undefined *)0x0)" ( (binary_expression "puVar6 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }" { (expression_statement "iVar14 = piVar2[1];" (assignment_expression "iVar14 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2[1] = iVar14 + -1;" (assignment_expression "piVar2[1] = iVar14 + -1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (binary_expression "iVar14 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }" else (compound_statement "{\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar15 = piVar2 + 1;" (assignment_expression "piVar15 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar14 = *piVar15;" (assignment_expression "iVar14 = *piVar15" identifier = (pointer_expression "*piVar15" * identifier)) ;) (expression_statement "*piVar15 = *piVar15 + -1;" (assignment_expression "*piVar15 = *piVar15 + -1" (pointer_expression "*piVar15" * identifier) = (binary_expression "*piVar15 + -1" (pointer_expression "*piVar15" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar14 == 1) {\n                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */\n          (**(code **)(*piVar2 + 4))(piVar2);\n        }" if (parenthesized_expression "(iVar14 == 1)" ( (binary_expression "iVar14 == 1" identifier == number_literal) )) (compound_statement "{\n                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */\n          (**(code **)(*piVar2 + 4))(piVar2);\n        }" { comment (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" ( (pointer_expression "**(code **)(*piVar2 + 4)" * (pointer_expression "*(code **)(*piVar2 + 4)" * (cast_expression "(code **)(*piVar2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 4)" ( (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) })) (expression_statement "iVar14 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar14 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar14 + uVar7 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar14 + uVar7 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar14 + uVar7 * 4)" * (cast_expression "(undefined4 *)(iVar14 + uVar7 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + uVar7 * 4)" ( (binary_expression "iVar14 + uVar7 * 4" identifier + (binary_expression "uVar7 * 4" identifier * number_literal)) )))) = number_literal) ;) })) (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar7 < *(uint *)(param_1 + 8))" ( (binary_expression "uVar7 < *(uint *)(param_1 + 8)" identifier < (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* std::locale::_Impl::_M_install_facet(std::locale::id const*, std::locale::facet const*) */\n\nvoid __thiscall std::locale::_Impl::_M_install_facet(_Impl *this,id *param_1,facet *param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  void *pvVar3;\n  void *pvVar4;\n  undefined *puVar5;\n  uint uVar6;\n  void *pvVar7;\n  uint uVar8;\n  undefined4 *puVar9;\n  void *pvVar10;\n  id *this_00;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  uint uVar14;\n  uint uVar15;\n  int *piVar16;\n  undefined **ppuVar17;\n  int *local_24;\n  \n  if (param_2 == (facet *)0x0) {\n    return;\n  }\n  uVar6 = locale::id::_M_id(param_1);\n  if (*(int *)(this + 8) - 1U < uVar6) {\n    uVar11 = uVar6 + 4;\n    pvVar3 = *(void **)(this + 4);\n    uVar14 = uVar11 * 4;\n    if (0x1fffffff < uVar11) {\n      uVar14 = 0xffffffff;\n    }\n    pvVar7 = operator_new__(uVar14);\n    uVar15 = *(uint *)(this + 8);\n    if (uVar15 != 0) {\n      iVar13 = *(int *)(this + 4);\n      uVar8 = 0;\n      do {\n        *(undefined4 *)((int)pvVar7 + uVar8 * 4) = *(undefined4 *)(iVar13 + uVar8 * 4);\n        uVar8 = uVar8 + 1;\n      } while (uVar8 != uVar15);\n    }\n    if (uVar15 < uVar11) {\n      puVar9 = (undefined4 *)((int)pvVar7 + uVar15 * 4);\n      do {\n        *puVar9 = 0;\n        puVar9 = puVar9 + 1;\n      } while ((undefined4 *)((int)pvVar7 + uVar6 * 4 + 0x10) != puVar9);\n    }\n    pvVar4 = *(void **)(this + 0xc);\n                    /* try { // try from 001aef1d to 001aef21 has its CatchHandler @ 001af256 */\n    pvVar10 = operator_new__(uVar14);\n    uVar14 = *(uint *)(this + 8);\n    if (uVar14 != 0) {\n      iVar13 = *(int *)(this + 0xc);\n      uVar15 = 0;\n      do {\n        *(undefined4 *)((int)pvVar10 + uVar15 * 4) = *(undefined4 *)(iVar13 + uVar15 * 4);\n        uVar15 = uVar15 + 1;\n      } while (uVar15 != uVar14);\n    }\n    if (uVar14 < uVar11) {\n      puVar9 = (undefined4 *)((int)pvVar10 + uVar14 * 4);\n      do {\n        *puVar9 = 0;\n        puVar9 = puVar9 + 1;\n      } while (puVar9 != (undefined4 *)((int)pvVar10 + uVar6 * 4 + 0x10));\n    }\n    *(void **)(this + 4) = pvVar7;\n    *(void **)(this + 0xc) = pvVar10;\n    *(uint *)(this + 8) = uVar11;\n    if (pvVar3 != (void *)0x0) {\n      operator_delete__(pvVar3);\n    }\n    if (pvVar4 != (void *)0x0) {\n      operator_delete__(pvVar4);\n    }\n  }\n  puVar5 = PTR___pthread_key_create_0033ef3c;\n  if (PTR___pthread_key_create_0033ef3c == (undefined *)0x0) {\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n  }\n  else {\n    LOCK();\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n    UNLOCK();\n  }\n  piVar2 = (int *)(*(int *)(this + 4) + uVar6 * 4);\n  piVar16 = (int *)*piVar2;\n  if (piVar16 == (int *)0x0) goto LAB_001af0c6;\n  ppuVar17 = &_S_twinned_facets;\n  this_00 = (id *)_S_twinned_facets;\n  if (_S_twinned_facets == (undefined *)0x0) {\nLAB_001af0a8:\n    if (puVar5 == (undefined *)0x0) goto LAB_001af170;\nLAB_001af0b3:\n    LOCK();\n    piVar1 = piVar16 + 1;\n    iVar13 = *piVar1;\n    *piVar1 = *piVar1 + -1;\n    UNLOCK();\n  }\n  else {\n    do {\n      uVar11 = locale::id::_M_id(this_00);\n      if (uVar11 == uVar6) {\n        iVar13 = *(int *)(this + 4);\n        iVar12 = locale::id::_M_id((id *)ppuVar17[1]);\n        local_24 = (int *)(iVar13 + iVar12 * 4);\n        if (*local_24 != 0) {\n          iVar13 = facet::_M_sso_shim(param_2,(id *)ppuVar17[1]);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\nLAB_001af09e:\n          *local_24 = iVar13;\n          piVar16 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar11 = locale::id::_M_id((id *)ppuVar17[1]);\n      if (uVar11 == uVar6) {\n        iVar13 = *(int *)(this + 4);\n        iVar12 = locale::id::_M_id((id *)*ppuVar17);\n        local_24 = (int *)(iVar13 + iVar12 * 4);\n        if (*local_24 != 0) {\n          iVar13 = facet::_M_cow_shim(param_2,(id *)*ppuVar17);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar17 = ppuVar17 + 2;\n      this_00 = (id *)*ppuVar17;\n    } while (this_00 != (id *)0x0);\n    piVar16 = (int *)*piVar2;\n    if (puVar5 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar13 = piVar16[1];\n    piVar16[1] = iVar13 + -1;\n  }\n  if (iVar13 == 1) {\n                    /* try { // try from 001af188 to 001af18a has its CatchHandler @ 001af24c */\n    (**(code **)(*piVar16 + 4))(piVar16);\n  }\nLAB_001af0c6:\n  *piVar2 = (int)param_2;\n  if (*(int *)(this + 8) != 0) {\n    uVar6 = 0;\n    iVar13 = *(int *)(this + 0xc);\n    do {\n      piVar2 = *(int **)(iVar13 + uVar6 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar5 == (undefined *)0x0) {\n          iVar13 = piVar2[1];\n          piVar2[1] = iVar13 + -1;\n        }\n        else {\n          LOCK();\n          piVar16 = piVar2 + 1;\n          iVar13 = *piVar16;\n          *piVar16 = *piVar16 + -1;\n          UNLOCK();\n        }\n        if (iVar13 == 1) {\n                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */\n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar13 = *(int *)(this + 0xc);\n        *(undefined4 *)(iVar13 + uVar6 * 4) = 0;\n      }\n      uVar6 = uVar6 + 1;\n    } while (uVar6 < *(uint *)(this + 8));\n  }\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::locale::_Impl::_M_install_facet(_Impl *this,id *param_1,facet *param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  void *pvVar3;\n  void *pvVar4;\n  undefined *puVar5;\n  uint uVar6;\n  void *pvVar7;\n  uint uVar8;\n  undefined4 *puVar9;\n  void *pvVar10;\n  id *this_00;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  uint uVar14;\n  uint uVar15;\n  int *piVar16;\n  undefined **ppuVar17;\n  int *local_24;\n  \n  if (param_2 == (facet *)0x0) {\n    return;\n  }\n  uVar6 = locale::id::_M_id(param_1);\n  if (*(int *)(this + 8) - 1U < uVar6) {\n    uVar11 = uVar6 + 4;\n    pvVar3 = *(void **)(this + 4);\n    uVar14 = uVar11 * 4;\n    if (0x1fffffff < uVar11) {\n      uVar14 = 0xffffffff;\n    }\n    pvVar7 = operator_new__(uVar14);\n    uVar15 = *(uint *)(this + 8);\n    if (uVar15 != 0) {\n      iVar13 = *(int *)(this + 4);\n      uVar8 = 0;\n      do {\n        *(undefined4 *)((int)pvVar7 + uVar8 * 4) = *(undefined4 *)(iVar13 + uVar8 * 4);\n        uVar8 = uVar8 + 1;\n      } while (uVar8 != uVar15);\n    }\n    if (uVar15 < uVar11) {\n      puVar9 = (undefined4 *)((int)pvVar7 + uVar15 * 4);\n      do {\n        *puVar9 = 0;\n        puVar9 = puVar9 + 1;\n      } while ((undefined4 *)((int)pvVar7 + uVar6 * 4 + 0x10) != puVar9);\n    }\n    pvVar4 = *(void **)(this + 0xc);\n                    /* try { // try from 001aef1d to 001aef21 has its CatchHandler @ 001af256 */\n    pvVar10 = operator_new__(uVar14);\n    uVar14 = *(uint *)(this + 8);\n    if (uVar14 != 0) {\n      iVar13 = *(int *)(this + 0xc);\n      uVar15 = 0;\n      do {\n        *(undefined4 *)((int)pvVar10 + uVar15 * 4) = *(undefined4 *)(iVar13 + uVar15 * 4);\n        uVar15 = uVar15 + 1;\n      } while (uVar15 != uVar14);\n    }\n    if (uVar14 < uVar11) {\n      puVar9 = (undefined4 *)((int)pvVar10 + uVar14 * 4);\n      do {\n        *puVar9 = 0;\n        puVar9 = puVar9 + 1;\n      } while (puVar9 != (undefined4 *)((int)pvVar10 + uVar6 * 4 + 0x10));\n    }\n    *(void **)(this + 4) = pvVar7;\n    *(void **)(this + 0xc) = pvVar10;\n    *(uint *)(this + 8) = uVar11;\n    if (pvVar3 != (void *)0x0) {\n      operator_delete__(pvVar3);\n    }\n    if (pvVar4 != (void *)0x0) {\n      operator_delete__(pvVar4);\n    }\n  }\n  puVar5 = PTR___pthread_key_create_0033ef3c;\n  if (PTR___pthread_key_create_0033ef3c == (undefined *)0x0) {\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n  }\n  else {\n    LOCK();\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n    UNLOCK();\n  }\n  piVar2 = (int *)(*(int *)(this + 4) + uVar6 * 4);\n  piVar16 = (int *)*piVar2;\n  if (piVar16 == (int *)0x0) goto LAB_001af0c6;\n  ppuVar17 = &_S_twinned_facets;\n  this_00 = (id *)_S_twinned_facets;\n  if (_S_twinned_facets == (undefined *)0x0) {\nLAB_001af0a8:\n    if (puVar5 == (undefined *)0x0) goto LAB_001af170;\nLAB_001af0b3:\n    LOCK();\n    piVar1 = piVar16 + 1;\n    iVar13 = *piVar1;\n    *piVar1 = *piVar1 + -1;\n    UNLOCK();\n  }\n  else {\n    do {\n      uVar11 = locale::id::_M_id(this_00);\n      if (uVar11 == uVar6) {\n        iVar13 = *(int *)(this + 4);\n        iVar12 = locale::id::_M_id((id *)ppuVar17[1]);\n        local_24 = (int *)(iVar13 + iVar12 * 4);\n        if (*local_24 != 0) {\n          iVar13 = facet::_M_sso_shim(param_2,(id *)ppuVar17[1]);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\nLAB_001af09e:\n          *local_24 = iVar13;\n          piVar16 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar11 = locale::id::_M_id((id *)ppuVar17[1]);\n      if (uVar11 == uVar6) {\n        iVar13 = *(int *)(this + 4);\n        iVar12 = locale::id::_M_id((id *)*ppuVar17);\n        local_24 = (int *)(iVar13 + iVar12 * 4);\n        if (*local_24 != 0) {\n          iVar13 = facet::_M_cow_shim(param_2,(id *)*ppuVar17);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar17 = ppuVar17 + 2;\n      this_00 = (id *)*ppuVar17;\n    } while (this_00 != (id *)0x0);\n    piVar16 = (int *)*piVar2;\n    if (puVar5 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar13 = piVar16[1];\n    piVar16[1] = iVar13 + -1;\n  }\n  if (iVar13 == 1) {\n                    /* try { // try from 001af188 to 001af18a has its CatchHandler @ 001af24c */\n    (**(code **)(*piVar16 + 4))(piVar16);\n  }\nLAB_001af0c6:\n  *piVar2 = (int)param_2;\n  if (*(int *)(this + 8) != 0) {\n    uVar6 = 0;\n    iVar13 = *(int *)(this + 0xc);\n    do {\n      piVar2 = *(int **)(iVar13 + uVar6 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar5 == (undefined *)0x0) {\n          iVar13 = piVar2[1];\n          piVar2[1] = iVar13 + -1;\n        }\n        else {\n          LOCK();\n          piVar16 = piVar2 + 1;\n          iVar13 = *piVar16;\n          *piVar16 = *piVar16 + -1;\n          UNLOCK();\n        }\n        if (iVar13 == 1) {\n                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */\n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar13 = *(int *)(this + 0xc);\n        *(undefined4 *)(iVar13 + uVar6 * 4) = 0;\n      }\n      uVar6 = uVar6 + 1;\n    } while (uVar6 < *(uint *)(this + 8));\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::locale::_Impl::" identifier : : identifier : : identifier : :) (function_declarator "_M_install_facet(_Impl *this,id *param_1,facet *param_2)" identifier (parameter_list "(_Impl *this,id *param_1,facet *param_2)" ( (parameter_declaration "_Impl *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "id *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "facet *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  void *pvVar3;\n  void *pvVar4;\n  undefined *puVar5;\n  uint uVar6;\n  void *pvVar7;\n  uint uVar8;\n  undefined4 *puVar9;\n  void *pvVar10;\n  id *this_00;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  uint uVar14;\n  uint uVar15;\n  int *piVar16;\n  undefined **ppuVar17;\n  int *local_24;\n  \n  if (param_2 == (facet *)0x0) {\n    return;\n  }\n  uVar6 = locale::id::_M_id(param_1);\n  if (*(int *)(this + 8) - 1U < uVar6) {\n    uVar11 = uVar6 + 4;\n    pvVar3 = *(void **)(this + 4);\n    uVar14 = uVar11 * 4;\n    if (0x1fffffff < uVar11) {\n      uVar14 = 0xffffffff;\n    }\n    pvVar7 = operator_new__(uVar14);\n    uVar15 = *(uint *)(this + 8);\n    if (uVar15 != 0) {\n      iVar13 = *(int *)(this + 4);\n      uVar8 = 0;\n      do {\n        *(undefined4 *)((int)pvVar7 + uVar8 * 4) = *(undefined4 *)(iVar13 + uVar8 * 4);\n        uVar8 = uVar8 + 1;\n      } while (uVar8 != uVar15);\n    }\n    if (uVar15 < uVar11) {\n      puVar9 = (undefined4 *)((int)pvVar7 + uVar15 * 4);\n      do {\n        *puVar9 = 0;\n        puVar9 = puVar9 + 1;\n      } while ((undefined4 *)((int)pvVar7 + uVar6 * 4 + 0x10) != puVar9);\n    }\n    pvVar4 = *(void **)(this + 0xc);\n                    /* try { // try from 001aef1d to 001aef21 has its CatchHandler @ 001af256 */\n    pvVar10 = operator_new__(uVar14);\n    uVar14 = *(uint *)(this + 8);\n    if (uVar14 != 0) {\n      iVar13 = *(int *)(this + 0xc);\n      uVar15 = 0;\n      do {\n        *(undefined4 *)((int)pvVar10 + uVar15 * 4) = *(undefined4 *)(iVar13 + uVar15 * 4);\n        uVar15 = uVar15 + 1;\n      } while (uVar15 != uVar14);\n    }\n    if (uVar14 < uVar11) {\n      puVar9 = (undefined4 *)((int)pvVar10 + uVar14 * 4);\n      do {\n        *puVar9 = 0;\n        puVar9 = puVar9 + 1;\n      } while (puVar9 != (undefined4 *)((int)pvVar10 + uVar6 * 4 + 0x10));\n    }\n    *(void **)(this + 4) = pvVar7;\n    *(void **)(this + 0xc) = pvVar10;\n    *(uint *)(this + 8) = uVar11;\n    if (pvVar3 != (void *)0x0) {\n      operator_delete__(pvVar3);\n    }\n    if (pvVar4 != (void *)0x0) {\n      operator_delete__(pvVar4);\n    }\n  }\n  puVar5 = PTR___pthread_key_create_0033ef3c;\n  if (PTR___pthread_key_create_0033ef3c == (undefined *)0x0) {\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n  }\n  else {\n    LOCK();\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n    UNLOCK();\n  }\n  piVar2 = (int *)(*(int *)(this + 4) + uVar6 * 4);\n  piVar16 = (int *)*piVar2;\n  if (piVar16 == (int *)0x0) goto LAB_001af0c6;\n  ppuVar17 = &_S_twinned_facets;\n  this_00 = (id *)_S_twinned_facets;\n  if (_S_twinned_facets == (undefined *)0x0) {\nLAB_001af0a8:\n    if (puVar5 == (undefined *)0x0) goto LAB_001af170;\nLAB_001af0b3:\n    LOCK();\n    piVar1 = piVar16 + 1;\n    iVar13 = *piVar1;\n    *piVar1 = *piVar1 + -1;\n    UNLOCK();\n  }\n  else {\n    do {\n      uVar11 = locale::id::_M_id(this_00);\n      if (uVar11 == uVar6) {\n        iVar13 = *(int *)(this + 4);\n        iVar12 = locale::id::_M_id((id *)ppuVar17[1]);\n        local_24 = (int *)(iVar13 + iVar12 * 4);\n        if (*local_24 != 0) {\n          iVar13 = facet::_M_sso_shim(param_2,(id *)ppuVar17[1]);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\nLAB_001af09e:\n          *local_24 = iVar13;\n          piVar16 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar11 = locale::id::_M_id((id *)ppuVar17[1]);\n      if (uVar11 == uVar6) {\n        iVar13 = *(int *)(this + 4);\n        iVar12 = locale::id::_M_id((id *)*ppuVar17);\n        local_24 = (int *)(iVar13 + iVar12 * 4);\n        if (*local_24 != 0) {\n          iVar13 = facet::_M_cow_shim(param_2,(id *)*ppuVar17);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar17 = ppuVar17 + 2;\n      this_00 = (id *)*ppuVar17;\n    } while (this_00 != (id *)0x0);\n    piVar16 = (int *)*piVar2;\n    if (puVar5 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar13 = piVar16[1];\n    piVar16[1] = iVar13 + -1;\n  }\n  if (iVar13 == 1) {\n                    /* try { // try from 001af188 to 001af18a has its CatchHandler @ 001af24c */\n    (**(code **)(*piVar16 + 4))(piVar16);\n  }\nLAB_001af0c6:\n  *piVar2 = (int)param_2;\n  if (*(int *)(this + 8) != 0) {\n    uVar6 = 0;\n    iVar13 = *(int *)(this + 0xc);\n    do {\n      piVar2 = *(int **)(iVar13 + uVar6 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar5 == (undefined *)0x0) {\n          iVar13 = piVar2[1];\n          piVar2[1] = iVar13 + -1;\n        }\n        else {\n          LOCK();\n          piVar16 = piVar2 + 1;\n          iVar13 = *piVar16;\n          *piVar16 = *piVar16 + -1;\n          UNLOCK();\n        }\n        if (iVar13 == 1) {\n                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */\n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar13 = *(int *)(this + 0xc);\n        *(undefined4 *)(iVar13 + uVar6 * 4) = 0;\n      }\n      uVar6 = uVar6 + 1;\n    } while (uVar6 < *(uint *)(this + 8));\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "void *pvVar7;" primitive_type (pointer_declarator "*pvVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "void *pvVar10;" primitive_type (pointer_declarator "*pvVar10" * identifier) ;) (declaration "id *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "uint uVar14;" type_identifier identifier ;) (declaration "uint uVar15;" type_identifier identifier ;) (declaration "int *piVar16;" primitive_type (pointer_declarator "*piVar16" * identifier) ;) (declaration "undefined **ppuVar17;" type_identifier (pointer_declarator "**ppuVar17" * (pointer_declarator "*ppuVar17" * identifier)) ;) (declaration "int *local_24;" primitive_type (pointer_declarator "*local_24" * identifier) ;) (if_statement "if (param_2 == (facet *)0x0) {\n    return;\n  }" if (parenthesized_expression "(param_2 == (facet *)0x0)" ( (binary_expression "param_2 == (facet *)0x0" identifier == (cast_expression "(facet *)0x0" ( (type_descriptor "facet *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (ERROR "uVar6 = locale::" (assignment_expression "uVar6 = locale" identifier = identifier) : :) (labeled_statement "id::_M_id(param_1);" statement_identifier : (ERROR ":" :) (expression_statement "_M_id(param_1);" (call_expression "_M_id(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;)) (if_statement "if (*(int *)(this + 8) - 1U < uVar6) {\n    uVar11 = uVar6 + 4;\n    pvVar3 = *(void **)(this + 4);\n    uVar14 = uVar11 * 4;\n    if (0x1fffffff < uVar11) {\n      uVar14 = 0xffffffff;\n    }\n    pvVar7 = operator_new__(uVar14);\n    uVar15 = *(uint *)(this + 8);\n    if (uVar15 != 0) {\n      iVar13 = *(int *)(this + 4);\n      uVar8 = 0;\n      do {\n        *(undefined4 *)((int)pvVar7 + uVar8 * 4) = *(undefined4 *)(iVar13 + uVar8 * 4);\n        uVar8 = uVar8 + 1;\n      } while (uVar8 != uVar15);\n    }\n    if (uVar15 < uVar11) {\n      puVar9 = (undefined4 *)((int)pvVar7 + uVar15 * 4);\n      do {\n        *puVar9 = 0;\n        puVar9 = puVar9 + 1;\n      } while ((undefined4 *)((int)pvVar7 + uVar6 * 4 + 0x10) != puVar9);\n    }\n    pvVar4 = *(void **)(this + 0xc);\n                    /* try { // try from 001aef1d to 001aef21 has its CatchHandler @ 001af256 */\n    pvVar10 = operator_new__(uVar14);\n    uVar14 = *(uint *)(this + 8);\n    if (uVar14 != 0) {\n      iVar13 = *(int *)(this + 0xc);\n      uVar15 = 0;\n      do {\n        *(undefined4 *)((int)pvVar10 + uVar15 * 4) = *(undefined4 *)(iVar13 + uVar15 * 4);\n        uVar15 = uVar15 + 1;\n      } while (uVar15 != uVar14);\n    }\n    if (uVar14 < uVar11) {\n      puVar9 = (undefined4 *)((int)pvVar10 + uVar14 * 4);\n      do {\n        *puVar9 = 0;\n        puVar9 = puVar9 + 1;\n      } while (puVar9 != (undefined4 *)((int)pvVar10 + uVar6 * 4 + 0x10));\n    }\n    *(void **)(this + 4) = pvVar7;\n    *(void **)(this + 0xc) = pvVar10;\n    *(uint *)(this + 8) = uVar11;\n    if (pvVar3 != (void *)0x0) {\n      operator_delete__(pvVar3);\n    }\n    if (pvVar4 != (void *)0x0) {\n      operator_delete__(pvVar4);\n    }\n  }" if (parenthesized_expression "(*(int *)(this + 8) - 1U < uVar6)" ( (binary_expression "*(int *)(this + 8) - 1U < uVar6" (binary_expression "*(int *)(this + 8) - 1U" (pointer_expression "*(int *)(this + 8)" * (cast_expression "(int *)(this + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) - number_literal) < identifier) )) (compound_statement "{\n    uVar11 = uVar6 + 4;\n    pvVar3 = *(void **)(this + 4);\n    uVar14 = uVar11 * 4;\n    if (0x1fffffff < uVar11) {\n      uVar14 = 0xffffffff;\n    }\n    pvVar7 = operator_new__(uVar14);\n    uVar15 = *(uint *)(this + 8);\n    if (uVar15 != 0) {\n      iVar13 = *(int *)(this + 4);\n      uVar8 = 0;\n      do {\n        *(undefined4 *)((int)pvVar7 + uVar8 * 4) = *(undefined4 *)(iVar13 + uVar8 * 4);\n        uVar8 = uVar8 + 1;\n      } while (uVar8 != uVar15);\n    }\n    if (uVar15 < uVar11) {\n      puVar9 = (undefined4 *)((int)pvVar7 + uVar15 * 4);\n      do {\n        *puVar9 = 0;\n        puVar9 = puVar9 + 1;\n      } while ((undefined4 *)((int)pvVar7 + uVar6 * 4 + 0x10) != puVar9);\n    }\n    pvVar4 = *(void **)(this + 0xc);\n                    /* try { // try from 001aef1d to 001aef21 has its CatchHandler @ 001af256 */\n    pvVar10 = operator_new__(uVar14);\n    uVar14 = *(uint *)(this + 8);\n    if (uVar14 != 0) {\n      iVar13 = *(int *)(this + 0xc);\n      uVar15 = 0;\n      do {\n        *(undefined4 *)((int)pvVar10 + uVar15 * 4) = *(undefined4 *)(iVar13 + uVar15 * 4);\n        uVar15 = uVar15 + 1;\n      } while (uVar15 != uVar14);\n    }\n    if (uVar14 < uVar11) {\n      puVar9 = (undefined4 *)((int)pvVar10 + uVar14 * 4);\n      do {\n        *puVar9 = 0;\n        puVar9 = puVar9 + 1;\n      } while (puVar9 != (undefined4 *)((int)pvVar10 + uVar6 * 4 + 0x10));\n    }\n    *(void **)(this + 4) = pvVar7;\n    *(void **)(this + 0xc) = pvVar10;\n    *(uint *)(this + 8) = uVar11;\n    if (pvVar3 != (void *)0x0) {\n      operator_delete__(pvVar3);\n    }\n    if (pvVar4 != (void *)0x0) {\n      operator_delete__(pvVar4);\n    }\n  }" { (expression_statement "uVar11 = uVar6 + 4;" (assignment_expression "uVar11 = uVar6 + 4" identifier = (binary_expression "uVar6 + 4" identifier + number_literal)) ;) (expression_statement "pvVar3 = *(void **)(this + 4);" (assignment_expression "pvVar3 = *(void **)(this + 4)" identifier = (pointer_expression "*(void **)(this + 4)" * (cast_expression "(void **)(this + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar14 = uVar11 * 4;" (assignment_expression "uVar14 = uVar11 * 4" identifier = (binary_expression "uVar11 * 4" identifier * number_literal)) ;) (if_statement "if (0x1fffffff < uVar11) {\n      uVar14 = 0xffffffff;\n    }" if (parenthesized_expression "(0x1fffffff < uVar11)" ( (binary_expression "0x1fffffff < uVar11" number_literal < identifier) )) (compound_statement "{\n      uVar14 = 0xffffffff;\n    }" { (expression_statement "uVar14 = 0xffffffff;" (assignment_expression "uVar14 = 0xffffffff" identifier = number_literal) ;) })) (expression_statement "pvVar7 = operator_new__(uVar14);" (assignment_expression "pvVar7 = operator_new__(uVar14)" identifier = (call_expression "operator_new__(uVar14)" identifier (argument_list "(uVar14)" ( identifier )))) ;) (expression_statement "uVar15 = *(uint *)(this + 8);" (assignment_expression "uVar15 = *(uint *)(this + 8)" identifier = (pointer_expression "*(uint *)(this + 8)" * (cast_expression "(uint *)(this + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) (if_statement "if (uVar15 != 0) {\n      iVar13 = *(int *)(this + 4);\n      uVar8 = 0;\n      do {\n        *(undefined4 *)((int)pvVar7 + uVar8 * 4) = *(undefined4 *)(iVar13 + uVar8 * 4);\n        uVar8 = uVar8 + 1;\n      } while (uVar8 != uVar15);\n    }" if (parenthesized_expression "(uVar15 != 0)" ( (binary_expression "uVar15 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar13 = *(int *)(this + 4);\n      uVar8 = 0;\n      do {\n        *(undefined4 *)((int)pvVar7 + uVar8 * 4) = *(undefined4 *)(iVar13 + uVar8 * 4);\n        uVar8 = uVar8 + 1;\n      } while (uVar8 != uVar15);\n    }" { (expression_statement "iVar13 = *(int *)(this + 4);" (assignment_expression "iVar13 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)((int)pvVar7 + uVar8 * 4) = *(undefined4 *)(iVar13 + uVar8 * 4);\n        uVar8 = uVar8 + 1;\n      } while (uVar8 != uVar15);" do (compound_statement "{\n        *(undefined4 *)((int)pvVar7 + uVar8 * 4) = *(undefined4 *)(iVar13 + uVar8 * 4);\n        uVar8 = uVar8 + 1;\n      }" { (expression_statement "*(undefined4 *)((int)pvVar7 + uVar8 * 4) = *(undefined4 *)(iVar13 + uVar8 * 4);" (assignment_expression "*(undefined4 *)((int)pvVar7 + uVar8 * 4) = *(undefined4 *)(iVar13 + uVar8 * 4)" (pointer_expression "*(undefined4 *)((int)pvVar7 + uVar8 * 4)" * (cast_expression "(undefined4 *)((int)pvVar7 + uVar8 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar7 + uVar8 * 4)" ( (binary_expression "(int)pvVar7 + uVar8 * 4" (cast_expression "(int)pvVar7" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar8 * 4" identifier * number_literal)) )))) = (pointer_expression "*(undefined4 *)(iVar13 + uVar8 * 4)" * (cast_expression "(undefined4 *)(iVar13 + uVar8 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + uVar8 * 4)" ( (binary_expression "iVar13 + uVar8 * 4" identifier + (binary_expression "uVar8 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar8 != uVar15)" ( (binary_expression "uVar8 != uVar15" identifier != identifier) )) ;) })) (if_statement "if (uVar15 < uVar11) {\n      puVar9 = (undefined4 *)((int)pvVar7 + uVar15 * 4);\n      do {\n        *puVar9 = 0;\n        puVar9 = puVar9 + 1;\n      } while ((undefined4 *)((int)pvVar7 + uVar6 * 4 + 0x10) != puVar9);\n    }" if (parenthesized_expression "(uVar15 < uVar11)" ( (binary_expression "uVar15 < uVar11" identifier < identifier) )) (compound_statement "{\n      puVar9 = (undefined4 *)((int)pvVar7 + uVar15 * 4);\n      do {\n        *puVar9 = 0;\n        puVar9 = puVar9 + 1;\n      } while ((undefined4 *)((int)pvVar7 + uVar6 * 4 + 0x10) != puVar9);\n    }" { (expression_statement "puVar9 = (undefined4 *)((int)pvVar7 + uVar15 * 4);" (assignment_expression "puVar9 = (undefined4 *)((int)pvVar7 + uVar15 * 4)" identifier = (cast_expression "(undefined4 *)((int)pvVar7 + uVar15 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar7 + uVar15 * 4)" ( (binary_expression "(int)pvVar7 + uVar15 * 4" (cast_expression "(int)pvVar7" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar15 * 4" identifier * number_literal)) )))) ;) (do_statement "do {\n        *puVar9 = 0;\n        puVar9 = puVar9 + 1;\n      } while ((undefined4 *)((int)pvVar7 + uVar6 * 4 + 0x10) != puVar9);" do (compound_statement "{\n        *puVar9 = 0;\n        puVar9 = puVar9 + 1;\n      }" { (expression_statement "*puVar9 = 0;" (assignment_expression "*puVar9 = 0" (pointer_expression "*puVar9" * identifier) = number_literal) ;) (expression_statement "puVar9 = puVar9 + 1;" (assignment_expression "puVar9 = puVar9 + 1" identifier = (binary_expression "puVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((undefined4 *)((int)pvVar7 + uVar6 * 4 + 0x10) != puVar9)" ( (binary_expression "(undefined4 *)((int)pvVar7 + uVar6 * 4 + 0x10) != puVar9" (cast_expression "(undefined4 *)((int)pvVar7 + uVar6 * 4 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar7 + uVar6 * 4 + 0x10)" ( (binary_expression "(int)pvVar7 + uVar6 * 4 + 0x10" (binary_expression "(int)pvVar7 + uVar6 * 4" (cast_expression "(int)pvVar7" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar6 * 4" identifier * number_literal)) + number_literal) ))) != identifier) )) ;) })) (expression_statement "pvVar4 = *(void **)(this + 0xc);" (assignment_expression "pvVar4 = *(void **)(this + 0xc)" identifier = (pointer_expression "*(void **)(this + 0xc)" * (cast_expression "(void **)(this + 0xc)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))))) ;) comment (expression_statement "pvVar10 = operator_new__(uVar14);" (assignment_expression "pvVar10 = operator_new__(uVar14)" identifier = (call_expression "operator_new__(uVar14)" identifier (argument_list "(uVar14)" ( identifier )))) ;) (expression_statement "uVar14 = *(uint *)(this + 8);" (assignment_expression "uVar14 = *(uint *)(this + 8)" identifier = (pointer_expression "*(uint *)(this + 8)" * (cast_expression "(uint *)(this + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) (if_statement "if (uVar14 != 0) {\n      iVar13 = *(int *)(this + 0xc);\n      uVar15 = 0;\n      do {\n        *(undefined4 *)((int)pvVar10 + uVar15 * 4) = *(undefined4 *)(iVar13 + uVar15 * 4);\n        uVar15 = uVar15 + 1;\n      } while (uVar15 != uVar14);\n    }" if (parenthesized_expression "(uVar14 != 0)" ( (binary_expression "uVar14 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar13 = *(int *)(this + 0xc);\n      uVar15 = 0;\n      do {\n        *(undefined4 *)((int)pvVar10 + uVar15 * 4) = *(undefined4 *)(iVar13 + uVar15 * 4);\n        uVar15 = uVar15 + 1;\n      } while (uVar15 != uVar14);\n    }" { (expression_statement "iVar13 = *(int *)(this + 0xc);" (assignment_expression "iVar13 = *(int *)(this + 0xc)" identifier = (pointer_expression "*(int *)(this + 0xc)" * (cast_expression "(int *)(this + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)((int)pvVar10 + uVar15 * 4) = *(undefined4 *)(iVar13 + uVar15 * 4);\n        uVar15 = uVar15 + 1;\n      } while (uVar15 != uVar14);" do (compound_statement "{\n        *(undefined4 *)((int)pvVar10 + uVar15 * 4) = *(undefined4 *)(iVar13 + uVar15 * 4);\n        uVar15 = uVar15 + 1;\n      }" { (expression_statement "*(undefined4 *)((int)pvVar10 + uVar15 * 4) = *(undefined4 *)(iVar13 + uVar15 * 4);" (assignment_expression "*(undefined4 *)((int)pvVar10 + uVar15 * 4) = *(undefined4 *)(iVar13 + uVar15 * 4)" (pointer_expression "*(undefined4 *)((int)pvVar10 + uVar15 * 4)" * (cast_expression "(undefined4 *)((int)pvVar10 + uVar15 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar10 + uVar15 * 4)" ( (binary_expression "(int)pvVar10 + uVar15 * 4" (cast_expression "(int)pvVar10" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar15 * 4" identifier * number_literal)) )))) = (pointer_expression "*(undefined4 *)(iVar13 + uVar15 * 4)" * (cast_expression "(undefined4 *)(iVar13 + uVar15 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + uVar15 * 4)" ( (binary_expression "iVar13 + uVar15 * 4" identifier + (binary_expression "uVar15 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar15 = uVar15 + 1;" (assignment_expression "uVar15 = uVar15 + 1" identifier = (binary_expression "uVar15 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar15 != uVar14)" ( (binary_expression "uVar15 != uVar14" identifier != identifier) )) ;) })) (if_statement "if (uVar14 < uVar11) {\n      puVar9 = (undefined4 *)((int)pvVar10 + uVar14 * 4);\n      do {\n        *puVar9 = 0;\n        puVar9 = puVar9 + 1;\n      } while (puVar9 != (undefined4 *)((int)pvVar10 + uVar6 * 4 + 0x10));\n    }" if (parenthesized_expression "(uVar14 < uVar11)" ( (binary_expression "uVar14 < uVar11" identifier < identifier) )) (compound_statement "{\n      puVar9 = (undefined4 *)((int)pvVar10 + uVar14 * 4);\n      do {\n        *puVar9 = 0;\n        puVar9 = puVar9 + 1;\n      } while (puVar9 != (undefined4 *)((int)pvVar10 + uVar6 * 4 + 0x10));\n    }" { (expression_statement "puVar9 = (undefined4 *)((int)pvVar10 + uVar14 * 4);" (assignment_expression "puVar9 = (undefined4 *)((int)pvVar10 + uVar14 * 4)" identifier = (cast_expression "(undefined4 *)((int)pvVar10 + uVar14 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar10 + uVar14 * 4)" ( (binary_expression "(int)pvVar10 + uVar14 * 4" (cast_expression "(int)pvVar10" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar14 * 4" identifier * number_literal)) )))) ;) (do_statement "do {\n        *puVar9 = 0;\n        puVar9 = puVar9 + 1;\n      } while (puVar9 != (undefined4 *)((int)pvVar10 + uVar6 * 4 + 0x10));" do (compound_statement "{\n        *puVar9 = 0;\n        puVar9 = puVar9 + 1;\n      }" { (expression_statement "*puVar9 = 0;" (assignment_expression "*puVar9 = 0" (pointer_expression "*puVar9" * identifier) = number_literal) ;) (expression_statement "puVar9 = puVar9 + 1;" (assignment_expression "puVar9 = puVar9 + 1" identifier = (binary_expression "puVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar9 != (undefined4 *)((int)pvVar10 + uVar6 * 4 + 0x10))" ( (binary_expression "puVar9 != (undefined4 *)((int)pvVar10 + uVar6 * 4 + 0x10)" identifier != (cast_expression "(undefined4 *)((int)pvVar10 + uVar6 * 4 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar10 + uVar6 * 4 + 0x10)" ( (binary_expression "(int)pvVar10 + uVar6 * 4 + 0x10" (binary_expression "(int)pvVar10 + uVar6 * 4" (cast_expression "(int)pvVar10" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar6 * 4" identifier * number_literal)) + number_literal) )))) )) ;) })) (expression_statement "*(void **)(this + 4) = pvVar7;" (assignment_expression "*(void **)(this + 4) = pvVar7" (pointer_expression "*(void **)(this + 4)" * (cast_expression "(void **)(this + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(void **)(this + 0xc) = pvVar10;" (assignment_expression "*(void **)(this + 0xc) = pvVar10" (pointer_expression "*(void **)(this + 0xc)" * (cast_expression "(void **)(this + 0xc)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(this + 8) = uVar11;" (assignment_expression "*(uint *)(this + 8) = uVar11" (pointer_expression "*(uint *)(this + 8)" * (cast_expression "(uint *)(this + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) (if_statement "if (pvVar3 != (void *)0x0) {\n      operator_delete__(pvVar3);\n    }" if (parenthesized_expression "(pvVar3 != (void *)0x0)" ( (binary_expression "pvVar3 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      operator_delete__(pvVar3);\n    }" { (expression_statement "operator_delete__(pvVar3);" (call_expression "operator_delete__(pvVar3)" identifier (argument_list "(pvVar3)" ( identifier ))) ;) })) (if_statement "if (pvVar4 != (void *)0x0) {\n      operator_delete__(pvVar4);\n    }" if (parenthesized_expression "(pvVar4 != (void *)0x0)" ( (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      operator_delete__(pvVar4);\n    }" { (expression_statement "operator_delete__(pvVar4);" (call_expression "operator_delete__(pvVar4)" identifier (argument_list "(pvVar4)" ( identifier ))) ;) })) })) (expression_statement "puVar5 = PTR___pthread_key_create_0033ef3c;" (assignment_expression "puVar5 = PTR___pthread_key_create_0033ef3c" identifier = identifier) ;) (if_statement "if (PTR___pthread_key_create_0033ef3c == (undefined *)0x0) {\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n  }\n  else {\n    LOCK();\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n    UNLOCK();\n  }" if (parenthesized_expression "(PTR___pthread_key_create_0033ef3c == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0033ef3c == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n  }" { (expression_statement "*(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;" (assignment_expression "*(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(param_2 + 4) + 1" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n    LOCK();\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n    UNLOCK();\n  }" else (compound_statement "{\n    LOCK();\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n    UNLOCK();\n  }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;" (assignment_expression "*(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(param_2 + 4) + 1" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "piVar2 = (int *)(*(int *)(this + 4) + uVar6 * 4);" (assignment_expression "piVar2 = (int *)(*(int *)(this + 4) + uVar6 * 4)" identifier = (cast_expression "(int *)(*(int *)(this + 4) + uVar6 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(this + 4) + uVar6 * 4)" ( (binary_expression "*(int *)(this + 4) + uVar6 * 4" (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) + (binary_expression "uVar6 * 4" identifier * number_literal)) )))) ;) (expression_statement "piVar16 = (int *)*piVar2;" (assignment_expression "piVar16 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (if_statement "if (piVar16 == (int *)0x0) goto LAB_001af0c6;" if (parenthesized_expression "(piVar16 == (int *)0x0)" ( (binary_expression "piVar16 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001af0c6;" goto statement_identifier ;)) (expression_statement "ppuVar17 = &_S_twinned_facets;" (assignment_expression "ppuVar17 = &_S_twinned_facets" identifier = (pointer_expression "&_S_twinned_facets" & identifier)) ;) (expression_statement "this_00 = (id *)_S_twinned_facets;" (assignment_expression "this_00 = (id *)_S_twinned_facets" identifier = (cast_expression "(id *)_S_twinned_facets" ( (type_descriptor "id *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (_S_twinned_facets == (undefined *)0x0) {\nLAB_001af0a8:\n    if (puVar5 == (undefined *)0x0) goto LAB_001af170;\nLAB_001af0b3:\n    LOCK();\n    piVar1 = piVar16 + 1;\n    iVar13 = *piVar1;\n    *piVar1 = *piVar1 + -1;\n    UNLOCK();\n  }\n  else {\n    do {\n      uVar11 = locale::id::_M_id(this_00);\n      if (uVar11 == uVar6) {\n        iVar13 = *(int *)(this + 4);\n        iVar12 = locale::id::_M_id((id *)ppuVar17[1]);\n        local_24 = (int *)(iVar13 + iVar12 * 4);\n        if (*local_24 != 0) {\n          iVar13 = facet::_M_sso_shim(param_2,(id *)ppuVar17[1]);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\nLAB_001af09e:\n          *local_24 = iVar13;\n          piVar16 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar11 = locale::id::_M_id((id *)ppuVar17[1]);\n      if (uVar11 == uVar6) {\n        iVar13 = *(int *)(this + 4);\n        iVar12 = locale::id::_M_id((id *)*ppuVar17);\n        local_24 = (int *)(iVar13 + iVar12 * 4);\n        if (*local_24 != 0) {\n          iVar13 = facet::_M_cow_shim(param_2,(id *)*ppuVar17);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar17 = ppuVar17 + 2;\n      this_00 = (id *)*ppuVar17;\n    } while (this_00 != (id *)0x0);\n    piVar16 = (int *)*piVar2;\n    if (puVar5 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar13 = piVar16[1];\n    piVar16[1] = iVar13 + -1;\n  }" if (parenthesized_expression "(_S_twinned_facets == (undefined *)0x0)" ( (binary_expression "_S_twinned_facets == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_001af0a8:\n    if (puVar5 == (undefined *)0x0) goto LAB_001af170;\nLAB_001af0b3:\n    LOCK();\n    piVar1 = piVar16 + 1;\n    iVar13 = *piVar1;\n    *piVar1 = *piVar1 + -1;\n    UNLOCK();\n  }" { (labeled_statement "LAB_001af0a8:\n    if (puVar5 == (undefined *)0x0) goto LAB_001af170;" statement_identifier : (if_statement "if (puVar5 == (undefined *)0x0) goto LAB_001af170;" if (parenthesized_expression "(puVar5 == (undefined *)0x0)" ( (binary_expression "puVar5 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001af170;" goto statement_identifier ;))) (labeled_statement "LAB_001af0b3:\n    LOCK();" statement_identifier : (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;)) (expression_statement "piVar1 = piVar16 + 1;" (assignment_expression "piVar1 = piVar16 + 1" identifier = (binary_expression "piVar16 + 1" identifier + number_literal)) ;) (expression_statement "iVar13 = *piVar1;" (assignment_expression "iVar13 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n    do {\n      uVar11 = locale::id::_M_id(this_00);\n      if (uVar11 == uVar6) {\n        iVar13 = *(int *)(this + 4);\n        iVar12 = locale::id::_M_id((id *)ppuVar17[1]);\n        local_24 = (int *)(iVar13 + iVar12 * 4);\n        if (*local_24 != 0) {\n          iVar13 = facet::_M_sso_shim(param_2,(id *)ppuVar17[1]);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\nLAB_001af09e:\n          *local_24 = iVar13;\n          piVar16 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar11 = locale::id::_M_id((id *)ppuVar17[1]);\n      if (uVar11 == uVar6) {\n        iVar13 = *(int *)(this + 4);\n        iVar12 = locale::id::_M_id((id *)*ppuVar17);\n        local_24 = (int *)(iVar13 + iVar12 * 4);\n        if (*local_24 != 0) {\n          iVar13 = facet::_M_cow_shim(param_2,(id *)*ppuVar17);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar17 = ppuVar17 + 2;\n      this_00 = (id *)*ppuVar17;\n    } while (this_00 != (id *)0x0);\n    piVar16 = (int *)*piVar2;\n    if (puVar5 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar13 = piVar16[1];\n    piVar16[1] = iVar13 + -1;\n  }" else (compound_statement "{\n    do {\n      uVar11 = locale::id::_M_id(this_00);\n      if (uVar11 == uVar6) {\n        iVar13 = *(int *)(this + 4);\n        iVar12 = locale::id::_M_id((id *)ppuVar17[1]);\n        local_24 = (int *)(iVar13 + iVar12 * 4);\n        if (*local_24 != 0) {\n          iVar13 = facet::_M_sso_shim(param_2,(id *)ppuVar17[1]);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\nLAB_001af09e:\n          *local_24 = iVar13;\n          piVar16 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar11 = locale::id::_M_id((id *)ppuVar17[1]);\n      if (uVar11 == uVar6) {\n        iVar13 = *(int *)(this + 4);\n        iVar12 = locale::id::_M_id((id *)*ppuVar17);\n        local_24 = (int *)(iVar13 + iVar12 * 4);\n        if (*local_24 != 0) {\n          iVar13 = facet::_M_cow_shim(param_2,(id *)*ppuVar17);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar17 = ppuVar17 + 2;\n      this_00 = (id *)*ppuVar17;\n    } while (this_00 != (id *)0x0);\n    piVar16 = (int *)*piVar2;\n    if (puVar5 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar13 = piVar16[1];\n    piVar16[1] = iVar13 + -1;\n  }" { (do_statement "do {\n      uVar11 = locale::id::_M_id(this_00);\n      if (uVar11 == uVar6) {\n        iVar13 = *(int *)(this + 4);\n        iVar12 = locale::id::_M_id((id *)ppuVar17[1]);\n        local_24 = (int *)(iVar13 + iVar12 * 4);\n        if (*local_24 != 0) {\n          iVar13 = facet::_M_sso_shim(param_2,(id *)ppuVar17[1]);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\nLAB_001af09e:\n          *local_24 = iVar13;\n          piVar16 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar11 = locale::id::_M_id((id *)ppuVar17[1]);\n      if (uVar11 == uVar6) {\n        iVar13 = *(int *)(this + 4);\n        iVar12 = locale::id::_M_id((id *)*ppuVar17);\n        local_24 = (int *)(iVar13 + iVar12 * 4);\n        if (*local_24 != 0) {\n          iVar13 = facet::_M_cow_shim(param_2,(id *)*ppuVar17);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar17 = ppuVar17 + 2;\n      this_00 = (id *)*ppuVar17;\n    } while (this_00 != (id *)0x0);" do (compound_statement "{\n      uVar11 = locale::id::_M_id(this_00);\n      if (uVar11 == uVar6) {\n        iVar13 = *(int *)(this + 4);\n        iVar12 = locale::id::_M_id((id *)ppuVar17[1]);\n        local_24 = (int *)(iVar13 + iVar12 * 4);\n        if (*local_24 != 0) {\n          iVar13 = facet::_M_sso_shim(param_2,(id *)ppuVar17[1]);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\nLAB_001af09e:\n          *local_24 = iVar13;\n          piVar16 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar11 = locale::id::_M_id((id *)ppuVar17[1]);\n      if (uVar11 == uVar6) {\n        iVar13 = *(int *)(this + 4);\n        iVar12 = locale::id::_M_id((id *)*ppuVar17);\n        local_24 = (int *)(iVar13 + iVar12 * 4);\n        if (*local_24 != 0) {\n          iVar13 = facet::_M_cow_shim(param_2,(id *)*ppuVar17);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar17 = ppuVar17 + 2;\n      this_00 = (id *)*ppuVar17;\n    }" { (ERROR "uVar11 = locale::" (assignment_expression "uVar11 = locale" identifier = identifier) : :) (labeled_statement "id::_M_id(this_00);" statement_identifier : (ERROR ":" :) (expression_statement "_M_id(this_00);" (call_expression "_M_id(this_00)" identifier (argument_list "(this_00)" ( identifier ))) ;)) (if_statement "if (uVar11 == uVar6) {\n        iVar13 = *(int *)(this + 4);\n        iVar12 = locale::id::_M_id((id *)ppuVar17[1]);\n        local_24 = (int *)(iVar13 + iVar12 * 4);\n        if (*local_24 != 0) {\n          iVar13 = facet::_M_sso_shim(param_2,(id *)ppuVar17[1]);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\nLAB_001af09e:\n          *local_24 = iVar13;\n          piVar16 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }" if (parenthesized_expression "(uVar11 == uVar6)" ( (binary_expression "uVar11 == uVar6" identifier == identifier) )) (compound_statement "{\n        iVar13 = *(int *)(this + 4);\n        iVar12 = locale::id::_M_id((id *)ppuVar17[1]);\n        local_24 = (int *)(iVar13 + iVar12 * 4);\n        if (*local_24 != 0) {\n          iVar13 = facet::_M_sso_shim(param_2,(id *)ppuVar17[1]);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\nLAB_001af09e:\n          *local_24 = iVar13;\n          piVar16 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }" { (expression_statement "iVar13 = *(int *)(this + 4);" (assignment_expression "iVar13 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) (ERROR "iVar12 = locale::" (assignment_expression "iVar12 = locale" identifier = identifier) : :) (labeled_statement "id::_M_id((id *)ppuVar17[1]);" statement_identifier : (ERROR ":" :) (expression_statement "_M_id((id *)ppuVar17[1]);" (call_expression "_M_id((id *)ppuVar17[1])" identifier (argument_list "((id *)ppuVar17[1])" ( (cast_expression "(id *)ppuVar17[1]" ( (type_descriptor "id *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "ppuVar17[1]" identifier [ number_literal ])) ))) ;)) (expression_statement "local_24 = (int *)(iVar13 + iVar12 * 4);" (assignment_expression "local_24 = (int *)(iVar13 + iVar12 * 4)" identifier = (cast_expression "(int *)(iVar13 + iVar12 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + iVar12 * 4)" ( (binary_expression "iVar13 + iVar12 * 4" identifier + (binary_expression "iVar12 * 4" identifier * number_literal)) )))) ;) (if_statement "if (*local_24 != 0) {\n          iVar13 = facet::_M_sso_shim(param_2,(id *)ppuVar17[1]);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\nLAB_001af09e:\n          *local_24 = iVar13;\n          piVar16 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }" if (parenthesized_expression "(*local_24 != 0)" ( (binary_expression "*local_24 != 0" (pointer_expression "*local_24" * identifier) != number_literal) )) (compound_statement "{\n          iVar13 = facet::_M_sso_shim(param_2,(id *)ppuVar17[1]);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\nLAB_001af09e:\n          *local_24 = iVar13;\n          piVar16 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }" { (ERROR "iVar13 = facet::" (assignment_expression "iVar13 = facet" identifier = identifier) : :) (expression_statement "_M_sso_shim(param_2,(id *)ppuVar17[1]);" (call_expression "_M_sso_shim(param_2,(id *)ppuVar17[1])" identifier (argument_list "(param_2,(id *)ppuVar17[1])" ( identifier , (cast_expression "(id *)ppuVar17[1]" ( (type_descriptor "id *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "ppuVar17[1]" identifier [ number_literal ])) ))) ;) (if_statement "if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }" if (parenthesized_expression "(puVar5 == (undefined *)0x0)" ( (binary_expression "puVar5 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }" { (expression_statement "*(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;" (assignment_expression "*(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1" (pointer_expression "*(int *)(iVar13 + 4)" * (cast_expression "(int *)(iVar13 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + 4)" ( (binary_expression "iVar13 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar13 + 4) + 1" (pointer_expression "*(int *)(iVar13 + 4)" * (cast_expression "(int *)(iVar13 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + 4)" ( (binary_expression "iVar13 + 4" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;" (assignment_expression "*(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1" (pointer_expression "*(int *)(iVar13 + 4)" * (cast_expression "(int *)(iVar13 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + 4)" ( (binary_expression "iVar13 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar13 + 4) + 1" (pointer_expression "*(int *)(iVar13 + 4)" * (cast_expression "(int *)(iVar13 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + 4)" ( (binary_expression "iVar13 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "piVar16 = (int *)*local_24;" (assignment_expression "piVar16 = (int *)*local_24" identifier = (cast_expression "(int *)*local_24" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_24" * identifier))) ;) (if_statement "if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" if (parenthesized_expression "(puVar5 == (undefined *)0x0)" ( (binary_expression "puVar5 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }" { (expression_statement "iVar12 = piVar16[1];" (assignment_expression "iVar12 = piVar16[1]" identifier = (subscript_expression "piVar16[1]" identifier [ number_literal ])) ;) (expression_statement "piVar16[1] = iVar12 + -1;" (assignment_expression "piVar16[1] = iVar12 + -1" (subscript_expression "piVar16[1]" identifier [ number_literal ]) = (binary_expression "iVar12 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = piVar16 + 1;" (assignment_expression "piVar1 = piVar16 + 1" identifier = (binary_expression "piVar16 + 1" identifier + number_literal)) ;) (expression_statement "iVar12 = *piVar1;" (assignment_expression "iVar12 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar12 == 1) {\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }" if (parenthesized_expression "(iVar12 == 1)" ( (binary_expression "iVar12 == 1" identifier == number_literal) )) (compound_statement "{\n                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }" { comment (expression_statement "(**(code **)(*piVar16 + 4))(piVar16);" (call_expression "(**(code **)(*piVar16 + 4))(piVar16)" (parenthesized_expression "(**(code **)(*piVar16 + 4))" ( (pointer_expression "**(code **)(*piVar16 + 4)" * (pointer_expression "*(code **)(*piVar16 + 4)" * (cast_expression "(code **)(*piVar16 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar16 + 4)" ( (binary_expression "*piVar16 + 4" (pointer_expression "*piVar16" * identifier) + number_literal) ))))) )) (argument_list "(piVar16)" ( identifier ))) ;) })) (labeled_statement "LAB_001af09e:\n          *local_24 = iVar13;" statement_identifier : (expression_statement "*local_24 = iVar13;" (assignment_expression "*local_24 = iVar13" (pointer_expression "*local_24" * identifier) = identifier) ;)) (expression_statement "piVar16 = (int *)*piVar2;" (assignment_expression "piVar16 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (goto_statement "goto LAB_001af0a8;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) (ERROR "uVar11 = locale::" (assignment_expression "uVar11 = locale" identifier = identifier) : :) (labeled_statement "id::_M_id((id *)ppuVar17[1]);" statement_identifier : (ERROR ":" :) (expression_statement "_M_id((id *)ppuVar17[1]);" (call_expression "_M_id((id *)ppuVar17[1])" identifier (argument_list "((id *)ppuVar17[1])" ( (cast_expression "(id *)ppuVar17[1]" ( (type_descriptor "id *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "ppuVar17[1]" identifier [ number_literal ])) ))) ;)) (if_statement "if (uVar11 == uVar6) {\n        iVar13 = *(int *)(this + 4);\n        iVar12 = locale::id::_M_id((id *)*ppuVar17);\n        local_24 = (int *)(iVar13 + iVar12 * 4);\n        if (*local_24 != 0) {\n          iVar13 = facet::_M_cow_shim(param_2,(id *)*ppuVar17);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }" if (parenthesized_expression "(uVar11 == uVar6)" ( (binary_expression "uVar11 == uVar6" identifier == identifier) )) (compound_statement "{\n        iVar13 = *(int *)(this + 4);\n        iVar12 = locale::id::_M_id((id *)*ppuVar17);\n        local_24 = (int *)(iVar13 + iVar12 * 4);\n        if (*local_24 != 0) {\n          iVar13 = facet::_M_cow_shim(param_2,(id *)*ppuVar17);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }" { (expression_statement "iVar13 = *(int *)(this + 4);" (assignment_expression "iVar13 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) (ERROR "iVar12 = locale::" (assignment_expression "iVar12 = locale" identifier = identifier) : :) (labeled_statement "id::_M_id((id *)*ppuVar17);" statement_identifier : (ERROR ":" :) (expression_statement "_M_id((id *)*ppuVar17);" (call_expression "_M_id((id *)*ppuVar17)" identifier (argument_list "((id *)*ppuVar17)" ( (cast_expression "(id *)*ppuVar17" ( (type_descriptor "id *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*ppuVar17" * identifier)) ))) ;)) (expression_statement "local_24 = (int *)(iVar13 + iVar12 * 4);" (assignment_expression "local_24 = (int *)(iVar13 + iVar12 * 4)" identifier = (cast_expression "(int *)(iVar13 + iVar12 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + iVar12 * 4)" ( (binary_expression "iVar13 + iVar12 * 4" identifier + (binary_expression "iVar12 * 4" identifier * number_literal)) )))) ;) (if_statement "if (*local_24 != 0) {\n          iVar13 = facet::_M_cow_shim(param_2,(id *)*ppuVar17);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\n          goto LAB_001af09e;\n        }" if (parenthesized_expression "(*local_24 != 0)" ( (binary_expression "*local_24 != 0" (pointer_expression "*local_24" * identifier) != number_literal) )) (compound_statement "{\n          iVar13 = facet::_M_cow_shim(param_2,(id *)*ppuVar17);\n          if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }\n          piVar16 = (int *)*local_24;\n          if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar12 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }\n          goto LAB_001af09e;\n        }" { (ERROR "iVar13 = facet::" (assignment_expression "iVar13 = facet" identifier = identifier) : :) (expression_statement "_M_cow_shim(param_2,(id *)*ppuVar17);" (call_expression "_M_cow_shim(param_2,(id *)*ppuVar17)" identifier (argument_list "(param_2,(id *)*ppuVar17)" ( identifier , (cast_expression "(id *)*ppuVar17" ( (type_descriptor "id *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*ppuVar17" * identifier)) ))) ;) (if_statement "if (puVar5 == (undefined *)0x0) {\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }" if (parenthesized_expression "(puVar5 == (undefined *)0x0)" ( (binary_expression "puVar5 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n          }" { (expression_statement "*(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;" (assignment_expression "*(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1" (pointer_expression "*(int *)(iVar13 + 4)" * (cast_expression "(int *)(iVar13 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + 4)" ( (binary_expression "iVar13 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar13 + 4) + 1" (pointer_expression "*(int *)(iVar13 + 4)" * (cast_expression "(int *)(iVar13 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + 4)" ( (binary_expression "iVar13 + 4" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            *(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1;" (assignment_expression "*(int *)(iVar13 + 4) = *(int *)(iVar13 + 4) + 1" (pointer_expression "*(int *)(iVar13 + 4)" * (cast_expression "(int *)(iVar13 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + 4)" ( (binary_expression "iVar13 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar13 + 4) + 1" (pointer_expression "*(int *)(iVar13 + 4)" * (cast_expression "(int *)(iVar13 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + 4)" ( (binary_expression "iVar13 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "piVar16 = (int *)*local_24;" (assignment_expression "piVar16 = (int *)*local_24" identifier = (cast_expression "(int *)*local_24" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_24" * identifier))) ;) (if_statement "if (puVar5 == (undefined *)0x0) {\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" if (parenthesized_expression "(puVar5 == (undefined *)0x0)" ( (binary_expression "puVar5 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar12 = piVar16[1];\n            piVar16[1] = iVar12 + -1;\n          }" { (expression_statement "iVar12 = piVar16[1];" (assignment_expression "iVar12 = piVar16[1]" identifier = (subscript_expression "piVar16[1]" identifier [ number_literal ])) ;) (expression_statement "piVar16[1] = iVar12 + -1;" (assignment_expression "piVar16[1] = iVar12 + -1" (subscript_expression "piVar16[1]" identifier [ number_literal ]) = (binary_expression "iVar12 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            piVar1 = piVar16 + 1;\n            iVar12 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = piVar16 + 1;" (assignment_expression "piVar1 = piVar16 + 1" identifier = (binary_expression "piVar16 + 1" identifier + number_literal)) ;) (expression_statement "iVar12 = *piVar1;" (assignment_expression "iVar12 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar12 == 1) {\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }" if (parenthesized_expression "(iVar12 == 1)" ( (binary_expression "iVar12 == 1" identifier == number_literal) )) (compound_statement "{\n                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */\n            (**(code **)(*piVar16 + 4))(piVar16);\n          }" { comment (expression_statement "(**(code **)(*piVar16 + 4))(piVar16);" (call_expression "(**(code **)(*piVar16 + 4))(piVar16)" (parenthesized_expression "(**(code **)(*piVar16 + 4))" ( (pointer_expression "**(code **)(*piVar16 + 4)" * (pointer_expression "*(code **)(*piVar16 + 4)" * (cast_expression "(code **)(*piVar16 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar16 + 4)" ( (binary_expression "*piVar16 + 4" (pointer_expression "*piVar16" * identifier) + number_literal) ))))) )) (argument_list "(piVar16)" ( identifier ))) ;) })) (goto_statement "goto LAB_001af09e;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) (expression_statement "ppuVar17 = ppuVar17 + 2;" (assignment_expression "ppuVar17 = ppuVar17 + 2" identifier = (binary_expression "ppuVar17 + 2" identifier + number_literal)) ;) (expression_statement "this_00 = (id *)*ppuVar17;" (assignment_expression "this_00 = (id *)*ppuVar17" identifier = (cast_expression "(id *)*ppuVar17" ( (type_descriptor "id *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*ppuVar17" * identifier))) ;) }) while (parenthesized_expression "(this_00 != (id *)0x0)" ( (binary_expression "this_00 != (id *)0x0" identifier != (cast_expression "(id *)0x0" ( (type_descriptor "id *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "piVar16 = (int *)*piVar2;" (assignment_expression "piVar16 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (if_statement "if (puVar5 != (undefined *)0x0) goto LAB_001af0b3;" if (parenthesized_expression "(puVar5 != (undefined *)0x0)" ( (binary_expression "puVar5 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001af0b3;" goto statement_identifier ;)) (labeled_statement "LAB_001af170:\n    iVar13 = piVar16[1];" statement_identifier : (expression_statement "iVar13 = piVar16[1];" (assignment_expression "iVar13 = piVar16[1]" identifier = (subscript_expression "piVar16[1]" identifier [ number_literal ])) ;)) (expression_statement "piVar16[1] = iVar13 + -1;" (assignment_expression "piVar16[1] = iVar13 + -1" (subscript_expression "piVar16[1]" identifier [ number_literal ]) = (binary_expression "iVar13 + -1" identifier + number_literal)) ;) }))) (if_statement "if (iVar13 == 1) {\n                    /* try { // try from 001af188 to 001af18a has its CatchHandler @ 001af24c */\n    (**(code **)(*piVar16 + 4))(piVar16);\n  }" if (parenthesized_expression "(iVar13 == 1)" ( (binary_expression "iVar13 == 1" identifier == number_literal) )) (compound_statement "{\n                    /* try { // try from 001af188 to 001af18a has its CatchHandler @ 001af24c */\n    (**(code **)(*piVar16 + 4))(piVar16);\n  }" { comment (expression_statement "(**(code **)(*piVar16 + 4))(piVar16);" (call_expression "(**(code **)(*piVar16 + 4))(piVar16)" (parenthesized_expression "(**(code **)(*piVar16 + 4))" ( (pointer_expression "**(code **)(*piVar16 + 4)" * (pointer_expression "*(code **)(*piVar16 + 4)" * (cast_expression "(code **)(*piVar16 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar16 + 4)" ( (binary_expression "*piVar16 + 4" (pointer_expression "*piVar16" * identifier) + number_literal) ))))) )) (argument_list "(piVar16)" ( identifier ))) ;) })) (labeled_statement "LAB_001af0c6:\n  *piVar2 = (int)param_2;" statement_identifier : (expression_statement "*piVar2 = (int)param_2;" (assignment_expression "*piVar2 = (int)param_2" (pointer_expression "*piVar2" * identifier) = (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ;)) (if_statement "if (*(int *)(this + 8) != 0) {\n    uVar6 = 0;\n    iVar13 = *(int *)(this + 0xc);\n    do {\n      piVar2 = *(int **)(iVar13 + uVar6 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar5 == (undefined *)0x0) {\n          iVar13 = piVar2[1];\n          piVar2[1] = iVar13 + -1;\n        }\n        else {\n          LOCK();\n          piVar16 = piVar2 + 1;\n          iVar13 = *piVar16;\n          *piVar16 = *piVar16 + -1;\n          UNLOCK();\n        }\n        if (iVar13 == 1) {\n                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */\n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar13 = *(int *)(this + 0xc);\n        *(undefined4 *)(iVar13 + uVar6 * 4) = 0;\n      }\n      uVar6 = uVar6 + 1;\n    } while (uVar6 < *(uint *)(this + 8));\n  }" if (parenthesized_expression "(*(int *)(this + 8) != 0)" ( (binary_expression "*(int *)(this + 8) != 0" (pointer_expression "*(int *)(this + 8)" * (cast_expression "(int *)(this + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar6 = 0;\n    iVar13 = *(int *)(this + 0xc);\n    do {\n      piVar2 = *(int **)(iVar13 + uVar6 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar5 == (undefined *)0x0) {\n          iVar13 = piVar2[1];\n          piVar2[1] = iVar13 + -1;\n        }\n        else {\n          LOCK();\n          piVar16 = piVar2 + 1;\n          iVar13 = *piVar16;\n          *piVar16 = *piVar16 + -1;\n          UNLOCK();\n        }\n        if (iVar13 == 1) {\n                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */\n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar13 = *(int *)(this + 0xc);\n        *(undefined4 *)(iVar13 + uVar6 * 4) = 0;\n      }\n      uVar6 = uVar6 + 1;\n    } while (uVar6 < *(uint *)(this + 8));\n  }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar13 = *(int *)(this + 0xc);" (assignment_expression "iVar13 = *(int *)(this + 0xc)" identifier = (pointer_expression "*(int *)(this + 0xc)" * (cast_expression "(int *)(this + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))))) ;) (do_statement "do {\n      piVar2 = *(int **)(iVar13 + uVar6 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar5 == (undefined *)0x0) {\n          iVar13 = piVar2[1];\n          piVar2[1] = iVar13 + -1;\n        }\n        else {\n          LOCK();\n          piVar16 = piVar2 + 1;\n          iVar13 = *piVar16;\n          *piVar16 = *piVar16 + -1;\n          UNLOCK();\n        }\n        if (iVar13 == 1) {\n                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */\n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar13 = *(int *)(this + 0xc);\n        *(undefined4 *)(iVar13 + uVar6 * 4) = 0;\n      }\n      uVar6 = uVar6 + 1;\n    } while (uVar6 < *(uint *)(this + 8));" do (compound_statement "{\n      piVar2 = *(int **)(iVar13 + uVar6 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar5 == (undefined *)0x0) {\n          iVar13 = piVar2[1];\n          piVar2[1] = iVar13 + -1;\n        }\n        else {\n          LOCK();\n          piVar16 = piVar2 + 1;\n          iVar13 = *piVar16;\n          *piVar16 = *piVar16 + -1;\n          UNLOCK();\n        }\n        if (iVar13 == 1) {\n                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */\n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar13 = *(int *)(this + 0xc);\n        *(undefined4 *)(iVar13 + uVar6 * 4) = 0;\n      }\n      uVar6 = uVar6 + 1;\n    }" { (expression_statement "piVar2 = *(int **)(iVar13 + uVar6 * 4);" (assignment_expression "piVar2 = *(int **)(iVar13 + uVar6 * 4)" identifier = (pointer_expression "*(int **)(iVar13 + uVar6 * 4)" * (cast_expression "(int **)(iVar13 + uVar6 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar13 + uVar6 * 4)" ( (binary_expression "iVar13 + uVar6 * 4" identifier + (binary_expression "uVar6 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n        if (puVar5 == (undefined *)0x0) {\n          iVar13 = piVar2[1];\n          piVar2[1] = iVar13 + -1;\n        }\n        else {\n          LOCK();\n          piVar16 = piVar2 + 1;\n          iVar13 = *piVar16;\n          *piVar16 = *piVar16 + -1;\n          UNLOCK();\n        }\n        if (iVar13 == 1) {\n                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */\n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar13 = *(int *)(this + 0xc);\n        *(undefined4 *)(iVar13 + uVar6 * 4) = 0;\n      }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (puVar5 == (undefined *)0x0) {\n          iVar13 = piVar2[1];\n          piVar2[1] = iVar13 + -1;\n        }\n        else {\n          LOCK();\n          piVar16 = piVar2 + 1;\n          iVar13 = *piVar16;\n          *piVar16 = *piVar16 + -1;\n          UNLOCK();\n        }\n        if (iVar13 == 1) {\n                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */\n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar13 = *(int *)(this + 0xc);\n        *(undefined4 *)(iVar13 + uVar6 * 4) = 0;\n      }" { (if_statement "if (puVar5 == (undefined *)0x0) {\n          iVar13 = piVar2[1];\n          piVar2[1] = iVar13 + -1;\n        }\n        else {\n          LOCK();\n          piVar16 = piVar2 + 1;\n          iVar13 = *piVar16;\n          *piVar16 = *piVar16 + -1;\n          UNLOCK();\n        }" if (parenthesized_expression "(puVar5 == (undefined *)0x0)" ( (binary_expression "puVar5 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar13 = piVar2[1];\n          piVar2[1] = iVar13 + -1;\n        }" { (expression_statement "iVar13 = piVar2[1];" (assignment_expression "iVar13 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2[1] = iVar13 + -1;" (assignment_expression "piVar2[1] = iVar13 + -1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (binary_expression "iVar13 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n          LOCK();\n          piVar16 = piVar2 + 1;\n          iVar13 = *piVar16;\n          *piVar16 = *piVar16 + -1;\n          UNLOCK();\n        }" else (compound_statement "{\n          LOCK();\n          piVar16 = piVar2 + 1;\n          iVar13 = *piVar16;\n          *piVar16 = *piVar16 + -1;\n          UNLOCK();\n        }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar16 = piVar2 + 1;" (assignment_expression "piVar16 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar13 = *piVar16;" (assignment_expression "iVar13 = *piVar16" identifier = (pointer_expression "*piVar16" * identifier)) ;) (expression_statement "*piVar16 = *piVar16 + -1;" (assignment_expression "*piVar16 = *piVar16 + -1" (pointer_expression "*piVar16" * identifier) = (binary_expression "*piVar16 + -1" (pointer_expression "*piVar16" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar13 == 1) {\n                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */\n          (**(code **)(*piVar2 + 4))(piVar2);\n        }" if (parenthesized_expression "(iVar13 == 1)" ( (binary_expression "iVar13 == 1" identifier == number_literal) )) (compound_statement "{\n                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */\n          (**(code **)(*piVar2 + 4))(piVar2);\n        }" { comment (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" ( (pointer_expression "**(code **)(*piVar2 + 4)" * (pointer_expression "*(code **)(*piVar2 + 4)" * (cast_expression "(code **)(*piVar2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 4)" ( (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) })) (expression_statement "iVar13 = *(int *)(this + 0xc);" (assignment_expression "iVar13 = *(int *)(this + 0xc)" identifier = (pointer_expression "*(int *)(this + 0xc)" * (cast_expression "(int *)(this + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar13 + uVar6 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar13 + uVar6 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar13 + uVar6 * 4)" * (cast_expression "(undefined4 *)(iVar13 + uVar6 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + uVar6 * 4)" ( (binary_expression "iVar13 + uVar6 * 4" identifier + (binary_expression "uVar6 * 4" identifier * number_literal)) )))) = number_literal) ;) })) (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 < *(uint *)(this + 8))" ( (binary_expression "uVar6 < *(uint *)(this + 8)" identifier < (pointer_expression "*(uint *)(this + 8)" * (cast_expression "(uint *)(this + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001aee50(int param_1,undefined4 param_2,int param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  undefined *puVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  undefined4 *puVar10;\n  undefined *puVar11;\n  uint uVar12;\n  int iVar13;\n  int iVar14;\n  int *piVar15;\n  undefined **ppuVar16;\n  int *local_24;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  uVar7 = FUN_001aee00(param_2);\n  if (*(int *)(param_1 + 8) - 1U < uVar7) {\n    uVar12 = uVar7 + 4;\n    iVar13 = *(int *)(param_1 + 4);\n    iVar14 = uVar12 * 4;\n    if (0x1fffffff < uVar12) {\n      iVar14 = -1;\n    }\n    iVar8 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar4 = *(int *)(param_1 + 4);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n                    \n    iVar14 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar5 = *(int *)(param_1 + 0xc);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));\n    }\n    *(int *)(param_1 + 4) = iVar8;\n    *(int *)(param_1 + 0xc) = iVar14;\n    *(uint *)(param_1 + 8) = uVar12;\n    if (iVar13 != 0) {\n      FUN_001ac410(iVar13);\n    }\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }\n  puVar6 = PTR___pthread_key_create_0033ef3c;\n  if (PTR___pthread_key_create_0033ef3c == (undefined *)0x0) {\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n  }\n  else {\n    LOCK();\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n    UNLOCK();\n  }\n  piVar2 = (int *)(*(int *)(param_1 + 4) + uVar7 * 4);\n  piVar15 = (int *)*piVar2;\n  if (piVar15 == (int *)0x0) goto LAB_001af0c6;\n  ppuVar16 = &PTR_DAT_0033d900;\n  puVar11 = PTR_DAT_0033d900;\n  if (PTR_DAT_0033d900 == (undefined *)0x0) {\nLAB_001af0a8:\n    if (puVar6 == (undefined *)0x0) goto LAB_001af170;\nLAB_001af0b3:\n    LOCK();\n    piVar1 = piVar15 + 1;\n    iVar14 = *piVar1;\n    *piVar1 = *piVar1 + -1;\n    UNLOCK();\n  }\n  else {\n    do {\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    } while (puVar11 != (undefined *)0x0);\n    piVar15 = (int *)*piVar2;\n    if (puVar6 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar14 = piVar15[1];\n    piVar15[1] = iVar14 + -1;\n  }\n  if (iVar14 == 1) {\n                    \n    (**(code **)(*piVar15 + 4))(piVar15);\n  }\nLAB_001af0c6:\n  *piVar2 = param_3;\n  if (*(int *)(param_1 + 8) != 0) {\n    uVar7 = 0;\n    iVar14 = *(int *)(param_1 + 0xc);\n    do {\n      piVar2 = *(int **)(iVar14 + uVar7 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    \n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < *(uint *)(param_1 + 8));\n  }\n  return;\n}\n\n" (function_definition "void FUN_001aee50(int param_1,undefined4 param_2,int param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  undefined *puVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  undefined4 *puVar10;\n  undefined *puVar11;\n  uint uVar12;\n  int iVar13;\n  int iVar14;\n  int *piVar15;\n  undefined **ppuVar16;\n  int *local_24;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  uVar7 = FUN_001aee00(param_2);\n  if (*(int *)(param_1 + 8) - 1U < uVar7) {\n    uVar12 = uVar7 + 4;\n    iVar13 = *(int *)(param_1 + 4);\n    iVar14 = uVar12 * 4;\n    if (0x1fffffff < uVar12) {\n      iVar14 = -1;\n    }\n    iVar8 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar4 = *(int *)(param_1 + 4);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n                    \n    iVar14 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar5 = *(int *)(param_1 + 0xc);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));\n    }\n    *(int *)(param_1 + 4) = iVar8;\n    *(int *)(param_1 + 0xc) = iVar14;\n    *(uint *)(param_1 + 8) = uVar12;\n    if (iVar13 != 0) {\n      FUN_001ac410(iVar13);\n    }\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }\n  puVar6 = PTR___pthread_key_create_0033ef3c;\n  if (PTR___pthread_key_create_0033ef3c == (undefined *)0x0) {\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n  }\n  else {\n    LOCK();\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n    UNLOCK();\n  }\n  piVar2 = (int *)(*(int *)(param_1 + 4) + uVar7 * 4);\n  piVar15 = (int *)*piVar2;\n  if (piVar15 == (int *)0x0) goto LAB_001af0c6;\n  ppuVar16 = &PTR_DAT_0033d900;\n  puVar11 = PTR_DAT_0033d900;\n  if (PTR_DAT_0033d900 == (undefined *)0x0) {\nLAB_001af0a8:\n    if (puVar6 == (undefined *)0x0) goto LAB_001af170;\nLAB_001af0b3:\n    LOCK();\n    piVar1 = piVar15 + 1;\n    iVar14 = *piVar1;\n    *piVar1 = *piVar1 + -1;\n    UNLOCK();\n  }\n  else {\n    do {\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    } while (puVar11 != (undefined *)0x0);\n    piVar15 = (int *)*piVar2;\n    if (puVar6 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar14 = piVar15[1];\n    piVar15[1] = iVar14 + -1;\n  }\n  if (iVar14 == 1) {\n                    \n    (**(code **)(*piVar15 + 4))(piVar15);\n  }\nLAB_001af0c6:\n  *piVar2 = param_3;\n  if (*(int *)(param_1 + 8) != 0) {\n    uVar7 = 0;\n    iVar14 = *(int *)(param_1 + 0xc);\n    do {\n      piVar2 = *(int **)(iVar14 + uVar7 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    \n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < *(uint *)(param_1 + 8));\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001aee50(int param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  undefined *puVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  undefined4 *puVar10;\n  undefined *puVar11;\n  uint uVar12;\n  int iVar13;\n  int iVar14;\n  int *piVar15;\n  undefined **ppuVar16;\n  int *local_24;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  uVar7 = FUN_001aee00(param_2);\n  if (*(int *)(param_1 + 8) - 1U < uVar7) {\n    uVar12 = uVar7 + 4;\n    iVar13 = *(int *)(param_1 + 4);\n    iVar14 = uVar12 * 4;\n    if (0x1fffffff < uVar12) {\n      iVar14 = -1;\n    }\n    iVar8 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar4 = *(int *)(param_1 + 4);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n                    \n    iVar14 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar5 = *(int *)(param_1 + 0xc);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));\n    }\n    *(int *)(param_1 + 4) = iVar8;\n    *(int *)(param_1 + 0xc) = iVar14;\n    *(uint *)(param_1 + 8) = uVar12;\n    if (iVar13 != 0) {\n      FUN_001ac410(iVar13);\n    }\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }\n  puVar6 = PTR___pthread_key_create_0033ef3c;\n  if (PTR___pthread_key_create_0033ef3c == (undefined *)0x0) {\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n  }\n  else {\n    LOCK();\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n    UNLOCK();\n  }\n  piVar2 = (int *)(*(int *)(param_1 + 4) + uVar7 * 4);\n  piVar15 = (int *)*piVar2;\n  if (piVar15 == (int *)0x0) goto LAB_001af0c6;\n  ppuVar16 = &PTR_DAT_0033d900;\n  puVar11 = PTR_DAT_0033d900;\n  if (PTR_DAT_0033d900 == (undefined *)0x0) {\nLAB_001af0a8:\n    if (puVar6 == (undefined *)0x0) goto LAB_001af170;\nLAB_001af0b3:\n    LOCK();\n    piVar1 = piVar15 + 1;\n    iVar14 = *piVar1;\n    *piVar1 = *piVar1 + -1;\n    UNLOCK();\n  }\n  else {\n    do {\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    } while (puVar11 != (undefined *)0x0);\n    piVar15 = (int *)*piVar2;\n    if (puVar6 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar14 = piVar15[1];\n    piVar15[1] = iVar14 + -1;\n  }\n  if (iVar14 == 1) {\n                    \n    (**(code **)(*piVar15 + 4))(piVar15);\n  }\nLAB_001af0c6:\n  *piVar2 = param_3;\n  if (*(int *)(param_1 + 8) != 0) {\n    uVar7 = 0;\n    iVar14 = *(int *)(param_1 + 0xc);\n    do {\n      piVar2 = *(int **)(iVar14 + uVar7 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    \n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < *(uint *)(param_1 + 8));\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "undefined4 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "int *piVar15;" primitive_type (pointer_declarator "*piVar15" * identifier) ;) (declaration "undefined **ppuVar16;" type_identifier (pointer_declarator "**ppuVar16" * (pointer_declarator "*ppuVar16" * identifier)) ;) (declaration "int *local_24;" primitive_type (pointer_declarator "*local_24" * identifier) ;) (if_statement "if (param_3 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar7 = FUN_001aee00(param_2);" (assignment_expression "uVar7 = FUN_001aee00(param_2)" identifier = (call_expression "FUN_001aee00(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (*(int *)(param_1 + 8) - 1U < uVar7) {\n    uVar12 = uVar7 + 4;\n    iVar13 = *(int *)(param_1 + 4);\n    iVar14 = uVar12 * 4;\n    if (0x1fffffff < uVar12) {\n      iVar14 = -1;\n    }\n    iVar8 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar4 = *(int *)(param_1 + 4);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n                    \n    iVar14 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar5 = *(int *)(param_1 + 0xc);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));\n    }\n    *(int *)(param_1 + 4) = iVar8;\n    *(int *)(param_1 + 0xc) = iVar14;\n    *(uint *)(param_1 + 8) = uVar12;\n    if (iVar13 != 0) {\n      FUN_001ac410(iVar13);\n    }\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) - 1U < uVar7)" ( (binary_expression "*(int *)(param_1 + 8) - 1U < uVar7" (binary_expression "*(int *)(param_1 + 8) - 1U" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) - number_literal) < identifier) )) (compound_statement "{\n    uVar12 = uVar7 + 4;\n    iVar13 = *(int *)(param_1 + 4);\n    iVar14 = uVar12 * 4;\n    if (0x1fffffff < uVar12) {\n      iVar14 = -1;\n    }\n    iVar8 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar4 = *(int *)(param_1 + 4);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n                    \n    iVar14 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar5 = *(int *)(param_1 + 0xc);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));\n    }\n    *(int *)(param_1 + 4) = iVar8;\n    *(int *)(param_1 + 0xc) = iVar14;\n    *(uint *)(param_1 + 8) = uVar12;\n    if (iVar13 != 0) {\n      FUN_001ac410(iVar13);\n    }\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }" { (expression_statement "uVar12 = uVar7 + 4;" (assignment_expression "uVar12 = uVar7 + 4" identifier = (binary_expression "uVar7 + 4" identifier + number_literal)) ;) (expression_statement "iVar13 = *(int *)(param_1 + 4);" (assignment_expression "iVar13 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar14 = uVar12 * 4;" (assignment_expression "iVar14 = uVar12 * 4" identifier = (binary_expression "uVar12 * 4" identifier * number_literal)) ;) (if_statement "if (0x1fffffff < uVar12) {\n      iVar14 = -1;\n    }" if (parenthesized_expression "(0x1fffffff < uVar12)" ( (binary_expression "0x1fffffff < uVar12" number_literal < identifier) )) (compound_statement "{\n      iVar14 = -1;\n    }" { (expression_statement "iVar14 = -1;" (assignment_expression "iVar14 = -1" identifier = number_literal) ;) })) (expression_statement "iVar8 = FUN_001aa840(iVar14);" (assignment_expression "iVar8 = FUN_001aa840(iVar14)" identifier = (call_expression "FUN_001aa840(iVar14)" identifier (argument_list "(iVar14)" ( identifier )))) ;) (expression_statement "uVar3 = *(uint *)(param_1 + 8);" (assignment_expression "uVar3 = *(uint *)(param_1 + 8)" identifier = (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (uVar3 != 0) {\n      iVar4 = *(int *)(param_1 + 4);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar4 = *(int *)(param_1 + 4);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }" { (expression_statement "iVar4 = *(int *)(param_1 + 4);" (assignment_expression "iVar4 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);" do (compound_statement "{\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      }" { (expression_statement "*(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);" (assignment_expression "*(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4)" (pointer_expression "*(undefined4 *)(iVar8 + uVar9 * 4)" * (cast_expression "(undefined4 *)(iVar8 + uVar9 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + uVar9 * 4)" ( (binary_expression "iVar8 + uVar9 * 4" identifier + (binary_expression "uVar9 * 4" identifier * number_literal)) )))) = (pointer_expression "*(undefined4 *)(iVar4 + uVar9 * 4)" * (cast_expression "(undefined4 *)(iVar4 + uVar9 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + uVar9 * 4)" ( (binary_expression "iVar4 + uVar9 * 4" identifier + (binary_expression "uVar9 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar9 != uVar3)" ( (binary_expression "uVar9 != uVar3" identifier != identifier) )) ;) })) (if_statement "if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);\n    }" if (parenthesized_expression "(uVar3 < uVar12)" ( (binary_expression "uVar3 < uVar12" identifier < identifier) )) (compound_statement "{\n      puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);\n    }" { (expression_statement "puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);" (assignment_expression "puVar10 = (undefined4 *)(iVar8 + uVar3 * 4)" identifier = (cast_expression "(undefined4 *)(iVar8 + uVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + uVar3 * 4)" ( (binary_expression "iVar8 + uVar3 * 4" identifier + (binary_expression "uVar3 * 4" identifier * number_literal)) )))) ;) (do_statement "do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);" do (compound_statement "{\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      }" { (expression_statement "*puVar10 = 0;" (assignment_expression "*puVar10 = 0" (pointer_expression "*puVar10" * identifier) = number_literal) ;) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10)" ( (binary_expression "(undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10" (cast_expression "(undefined4 *)(iVar8 + 0x10 + uVar7 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x10 + uVar7 * 4)" ( (binary_expression "iVar8 + 0x10 + uVar7 * 4" (binary_expression "iVar8 + 0x10" identifier + number_literal) + (binary_expression "uVar7 * 4" identifier * number_literal)) ))) != identifier) )) ;) })) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar14 = FUN_001aa840(iVar14);" (assignment_expression "iVar14 = FUN_001aa840(iVar14)" identifier = (call_expression "FUN_001aa840(iVar14)" identifier (argument_list "(iVar14)" ( identifier )))) ;) (expression_statement "uVar3 = *(uint *)(param_1 + 8);" (assignment_expression "uVar3 = *(uint *)(param_1 + 8)" identifier = (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (uVar3 != 0) {\n      iVar5 = *(int *)(param_1 + 0xc);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar5 = *(int *)(param_1 + 0xc);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }" { (expression_statement "iVar5 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar5 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);" do (compound_statement "{\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      }" { (expression_statement "*(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);" (assignment_expression "*(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4)" (pointer_expression "*(undefined4 *)(iVar14 + uVar9 * 4)" * (cast_expression "(undefined4 *)(iVar14 + uVar9 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + uVar9 * 4)" ( (binary_expression "iVar14 + uVar9 * 4" identifier + (binary_expression "uVar9 * 4" identifier * number_literal)) )))) = (pointer_expression "*(undefined4 *)(iVar5 + uVar9 * 4)" * (cast_expression "(undefined4 *)(iVar5 + uVar9 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + uVar9 * 4)" ( (binary_expression "iVar5 + uVar9 * 4" identifier + (binary_expression "uVar9 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar9 != uVar3)" ( (binary_expression "uVar9 != uVar3" identifier != identifier) )) ;) })) (if_statement "if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));\n    }" if (parenthesized_expression "(uVar3 < uVar12)" ( (binary_expression "uVar3 < uVar12" identifier < identifier) )) (compound_statement "{\n      puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));\n    }" { (expression_statement "puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);" (assignment_expression "puVar10 = (undefined4 *)(iVar14 + uVar3 * 4)" identifier = (cast_expression "(undefined4 *)(iVar14 + uVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + uVar3 * 4)" ( (binary_expression "iVar14 + uVar3 * 4" identifier + (binary_expression "uVar3 * 4" identifier * number_literal)) )))) ;) (do_statement "do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));" do (compound_statement "{\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      }" { (expression_statement "*puVar10 = 0;" (assignment_expression "*puVar10 = 0" (pointer_expression "*puVar10" * identifier) = number_literal) ;) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4))" ( (binary_expression "puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4)" identifier != (cast_expression "(undefined4 *)(iVar14 + 0x10 + uVar7 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0x10 + uVar7 * 4)" ( (binary_expression "iVar14 + 0x10 + uVar7 * 4" (binary_expression "iVar14 + 0x10" identifier + number_literal) + (binary_expression "uVar7 * 4" identifier * number_literal)) )))) )) ;) })) (expression_statement "*(int *)(param_1 + 4) = iVar8;" (assignment_expression "*(int *)(param_1 + 4) = iVar8" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0xc) = iVar14;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar14" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_1 + 8) = uVar12;" (assignment_expression "*(uint *)(param_1 + 8) = uVar12" (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar13 != 0) {\n      FUN_001ac410(iVar13);\n    }" if (parenthesized_expression "(iVar13 != 0)" ( (binary_expression "iVar13 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_001ac410(iVar13);\n    }" { (expression_statement "FUN_001ac410(iVar13);" (call_expression "FUN_001ac410(iVar13)" identifier (argument_list "(iVar13)" ( identifier ))) ;) })) (if_statement "if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_001ac410(iVar4);\n    }" { (expression_statement "FUN_001ac410(iVar4);" (call_expression "FUN_001ac410(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) })) })) (expression_statement "puVar6 = PTR___pthread_key_create_0033ef3c;" (assignment_expression "puVar6 = PTR___pthread_key_create_0033ef3c" identifier = identifier) ;) (if_statement "if (PTR___pthread_key_create_0033ef3c == (undefined *)0x0) {\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n  }\n  else {\n    LOCK();\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n    UNLOCK();\n  }" if (parenthesized_expression "(PTR___pthread_key_create_0033ef3c == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0033ef3c == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n  }" { (expression_statement "*(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;" (assignment_expression "*(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(param_3 + 4) + 1" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n    LOCK();\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n    UNLOCK();\n  }" else (compound_statement "{\n    LOCK();\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n    UNLOCK();\n  }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;" (assignment_expression "*(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(param_3 + 4) + 1" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "piVar2 = (int *)(*(int *)(param_1 + 4) + uVar7 * 4);" (assignment_expression "piVar2 = (int *)(*(int *)(param_1 + 4) + uVar7 * 4)" identifier = (cast_expression "(int *)(*(int *)(param_1 + 4) + uVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + uVar7 * 4)" ( (binary_expression "*(int *)(param_1 + 4) + uVar7 * 4" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + (binary_expression "uVar7 * 4" identifier * number_literal)) )))) ;) (expression_statement "piVar15 = (int *)*piVar2;" (assignment_expression "piVar15 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (if_statement "if (piVar15 == (int *)0x0) goto LAB_001af0c6;" if (parenthesized_expression "(piVar15 == (int *)0x0)" ( (binary_expression "piVar15 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001af0c6;" goto statement_identifier ;)) (expression_statement "ppuVar16 = &PTR_DAT_0033d900;" (assignment_expression "ppuVar16 = &PTR_DAT_0033d900" identifier = (pointer_expression "&PTR_DAT_0033d900" & identifier)) ;) (expression_statement "puVar11 = PTR_DAT_0033d900;" (assignment_expression "puVar11 = PTR_DAT_0033d900" identifier = identifier) ;) (if_statement "if (PTR_DAT_0033d900 == (undefined *)0x0) {\nLAB_001af0a8:\n    if (puVar6 == (undefined *)0x0) goto LAB_001af170;\nLAB_001af0b3:\n    LOCK();\n    piVar1 = piVar15 + 1;\n    iVar14 = *piVar1;\n    *piVar1 = *piVar1 + -1;\n    UNLOCK();\n  }\n  else {\n    do {\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    } while (puVar11 != (undefined *)0x0);\n    piVar15 = (int *)*piVar2;\n    if (puVar6 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar14 = piVar15[1];\n    piVar15[1] = iVar14 + -1;\n  }" if (parenthesized_expression "(PTR_DAT_0033d900 == (undefined *)0x0)" ( (binary_expression "PTR_DAT_0033d900 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_001af0a8:\n    if (puVar6 == (undefined *)0x0) goto LAB_001af170;\nLAB_001af0b3:\n    LOCK();\n    piVar1 = piVar15 + 1;\n    iVar14 = *piVar1;\n    *piVar1 = *piVar1 + -1;\n    UNLOCK();\n  }" { (labeled_statement "LAB_001af0a8:\n    if (puVar6 == (undefined *)0x0) goto LAB_001af170;" statement_identifier : (if_statement "if (puVar6 == (undefined *)0x0) goto LAB_001af170;" if (parenthesized_expression "(puVar6 == (undefined *)0x0)" ( (binary_expression "puVar6 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001af170;" goto statement_identifier ;))) (labeled_statement "LAB_001af0b3:\n    LOCK();" statement_identifier : (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;)) (expression_statement "piVar1 = piVar15 + 1;" (assignment_expression "piVar1 = piVar15 + 1" identifier = (binary_expression "piVar15 + 1" identifier + number_literal)) ;) (expression_statement "iVar14 = *piVar1;" (assignment_expression "iVar14 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n    do {\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    } while (puVar11 != (undefined *)0x0);\n    piVar15 = (int *)*piVar2;\n    if (puVar6 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar14 = piVar15[1];\n    piVar15[1] = iVar14 + -1;\n  }" else (compound_statement "{\n    do {\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    } while (puVar11 != (undefined *)0x0);\n    piVar15 = (int *)*piVar2;\n    if (puVar6 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar14 = piVar15[1];\n    piVar15[1] = iVar14 + -1;\n  }" { (do_statement "do {\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    } while (puVar11 != (undefined *)0x0);" do (compound_statement "{\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    }" { (expression_statement "uVar12 = FUN_001aee00(puVar11);" (assignment_expression "uVar12 = FUN_001aee00(puVar11)" identifier = (call_expression "FUN_001aee00(puVar11)" identifier (argument_list "(puVar11)" ( identifier )))) ;) (if_statement "if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }" if (parenthesized_expression "(uVar12 == uVar7)" ( (binary_expression "uVar12 == uVar7" identifier == identifier) )) (compound_statement "{\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }" { (expression_statement "iVar14 = *(int *)(param_1 + 4);" (assignment_expression "iVar14 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar13 = FUN_001aee00(ppuVar16[1]);" (assignment_expression "iVar13 = FUN_001aee00(ppuVar16[1])" identifier = (call_expression "FUN_001aee00(ppuVar16[1])" identifier (argument_list "(ppuVar16[1])" ( (subscript_expression "ppuVar16[1]" identifier [ number_literal ]) )))) ;) (expression_statement "local_24 = (int *)(iVar14 + iVar13 * 4);" (assignment_expression "local_24 = (int *)(iVar14 + iVar13 * 4)" identifier = (cast_expression "(int *)(iVar14 + iVar13 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + iVar13 * 4)" ( (binary_expression "iVar14 + iVar13 * 4" identifier + (binary_expression "iVar13 * 4" identifier * number_literal)) )))) ;) (if_statement "if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }" if (parenthesized_expression "(*local_24 != 0)" ( (binary_expression "*local_24 != 0" (pointer_expression "*local_24" * identifier) != number_literal) )) (compound_statement "{\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }" { (expression_statement "iVar14 = FUN_001eac90(param_3,ppuVar16[1]);" (assignment_expression "iVar14 = FUN_001eac90(param_3,ppuVar16[1])" identifier = (call_expression "FUN_001eac90(param_3,ppuVar16[1])" identifier (argument_list "(param_3,ppuVar16[1])" ( identifier , (subscript_expression "ppuVar16[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }" if (parenthesized_expression "(puVar6 == (undefined *)0x0)" ( (binary_expression "puVar6 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }" { (expression_statement "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;" (assignment_expression "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;" (assignment_expression "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "piVar15 = (int *)*local_24;" (assignment_expression "piVar15 = (int *)*local_24" identifier = (cast_expression "(int *)*local_24" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_24" * identifier))) ;) (if_statement "if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" if (parenthesized_expression "(puVar6 == (undefined *)0x0)" ( (binary_expression "puVar6 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }" { (expression_statement "iVar13 = piVar15[1];" (assignment_expression "iVar13 = piVar15[1]" identifier = (subscript_expression "piVar15[1]" identifier [ number_literal ])) ;) (expression_statement "piVar15[1] = iVar13 + -1;" (assignment_expression "piVar15[1] = iVar13 + -1" (subscript_expression "piVar15[1]" identifier [ number_literal ]) = (binary_expression "iVar13 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = piVar15 + 1;" (assignment_expression "piVar1 = piVar15 + 1" identifier = (binary_expression "piVar15 + 1" identifier + number_literal)) ;) (expression_statement "iVar13 = *piVar1;" (assignment_expression "iVar13 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }" if (parenthesized_expression "(iVar13 == 1)" ( (binary_expression "iVar13 == 1" identifier == number_literal) )) (compound_statement "{\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }" { (expression_statement "(**(code **)(*piVar15 + 4))(piVar15);" (call_expression "(**(code **)(*piVar15 + 4))(piVar15)" (parenthesized_expression "(**(code **)(*piVar15 + 4))" ( (pointer_expression "**(code **)(*piVar15 + 4)" * (pointer_expression "*(code **)(*piVar15 + 4)" * (cast_expression "(code **)(*piVar15 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar15 + 4)" ( (binary_expression "*piVar15 + 4" (pointer_expression "*piVar15" * identifier) + number_literal) ))))) )) (argument_list "(piVar15)" ( identifier ))) ;) })) (labeled_statement "LAB_001af09e:\n          *local_24 = iVar14;" statement_identifier : (expression_statement "*local_24 = iVar14;" (assignment_expression "*local_24 = iVar14" (pointer_expression "*local_24" * identifier) = identifier) ;)) (expression_statement "piVar15 = (int *)*piVar2;" (assignment_expression "piVar15 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (goto_statement "goto LAB_001af0a8;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) (expression_statement "uVar12 = FUN_001aee00(ppuVar16[1]);" (assignment_expression "uVar12 = FUN_001aee00(ppuVar16[1])" identifier = (call_expression "FUN_001aee00(ppuVar16[1])" identifier (argument_list "(ppuVar16[1])" ( (subscript_expression "ppuVar16[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }" if (parenthesized_expression "(uVar12 == uVar7)" ( (binary_expression "uVar12 == uVar7" identifier == identifier) )) (compound_statement "{\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }" { (expression_statement "iVar14 = *(int *)(param_1 + 4);" (assignment_expression "iVar14 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar13 = FUN_001aee00(*ppuVar16);" (assignment_expression "iVar13 = FUN_001aee00(*ppuVar16)" identifier = (call_expression "FUN_001aee00(*ppuVar16)" identifier (argument_list "(*ppuVar16)" ( (pointer_expression "*ppuVar16" * identifier) )))) ;) (expression_statement "local_24 = (int *)(iVar14 + iVar13 * 4);" (assignment_expression "local_24 = (int *)(iVar14 + iVar13 * 4)" identifier = (cast_expression "(int *)(iVar14 + iVar13 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + iVar13 * 4)" ( (binary_expression "iVar14 + iVar13 * 4" identifier + (binary_expression "iVar13 * 4" identifier * number_literal)) )))) ;) (if_statement "if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }" if (parenthesized_expression "(*local_24 != 0)" ( (binary_expression "*local_24 != 0" (pointer_expression "*local_24" * identifier) != number_literal) )) (compound_statement "{\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }" { (expression_statement "iVar14 = FUN_001f0420(param_3,*ppuVar16);" (assignment_expression "iVar14 = FUN_001f0420(param_3,*ppuVar16)" identifier = (call_expression "FUN_001f0420(param_3,*ppuVar16)" identifier (argument_list "(param_3,*ppuVar16)" ( identifier , (pointer_expression "*ppuVar16" * identifier) )))) ;) (if_statement "if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }" if (parenthesized_expression "(puVar6 == (undefined *)0x0)" ( (binary_expression "puVar6 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }" { (expression_statement "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;" (assignment_expression "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;" (assignment_expression "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "piVar15 = (int *)*local_24;" (assignment_expression "piVar15 = (int *)*local_24" identifier = (cast_expression "(int *)*local_24" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_24" * identifier))) ;) (if_statement "if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" if (parenthesized_expression "(puVar6 == (undefined *)0x0)" ( (binary_expression "puVar6 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }" { (expression_statement "iVar13 = piVar15[1];" (assignment_expression "iVar13 = piVar15[1]" identifier = (subscript_expression "piVar15[1]" identifier [ number_literal ])) ;) (expression_statement "piVar15[1] = iVar13 + -1;" (assignment_expression "piVar15[1] = iVar13 + -1" (subscript_expression "piVar15[1]" identifier [ number_literal ]) = (binary_expression "iVar13 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = piVar15 + 1;" (assignment_expression "piVar1 = piVar15 + 1" identifier = (binary_expression "piVar15 + 1" identifier + number_literal)) ;) (expression_statement "iVar13 = *piVar1;" (assignment_expression "iVar13 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }" if (parenthesized_expression "(iVar13 == 1)" ( (binary_expression "iVar13 == 1" identifier == number_literal) )) (compound_statement "{\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }" { (expression_statement "(**(code **)(*piVar15 + 4))(piVar15);" (call_expression "(**(code **)(*piVar15 + 4))(piVar15)" (parenthesized_expression "(**(code **)(*piVar15 + 4))" ( (pointer_expression "**(code **)(*piVar15 + 4)" * (pointer_expression "*(code **)(*piVar15 + 4)" * (cast_expression "(code **)(*piVar15 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar15 + 4)" ( (binary_expression "*piVar15 + 4" (pointer_expression "*piVar15" * identifier) + number_literal) ))))) )) (argument_list "(piVar15)" ( identifier ))) ;) })) (goto_statement "goto LAB_001af09e;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) (expression_statement "ppuVar16 = ppuVar16 + 2;" (assignment_expression "ppuVar16 = ppuVar16 + 2" identifier = (binary_expression "ppuVar16 + 2" identifier + number_literal)) ;) (expression_statement "puVar11 = *ppuVar16;" (assignment_expression "puVar11 = *ppuVar16" identifier = (pointer_expression "*ppuVar16" * identifier)) ;) }) while (parenthesized_expression "(puVar11 != (undefined *)0x0)" ( (binary_expression "puVar11 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "piVar15 = (int *)*piVar2;" (assignment_expression "piVar15 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (if_statement "if (puVar6 != (undefined *)0x0) goto LAB_001af0b3;" if (parenthesized_expression "(puVar6 != (undefined *)0x0)" ( (binary_expression "puVar6 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001af0b3;" goto statement_identifier ;)) (labeled_statement "LAB_001af170:\n    iVar14 = piVar15[1];" statement_identifier : (expression_statement "iVar14 = piVar15[1];" (assignment_expression "iVar14 = piVar15[1]" identifier = (subscript_expression "piVar15[1]" identifier [ number_literal ])) ;)) (expression_statement "piVar15[1] = iVar14 + -1;" (assignment_expression "piVar15[1] = iVar14 + -1" (subscript_expression "piVar15[1]" identifier [ number_literal ]) = (binary_expression "iVar14 + -1" identifier + number_literal)) ;) }))) (if_statement "if (iVar14 == 1) {\n                    \n    (**(code **)(*piVar15 + 4))(piVar15);\n  }" if (parenthesized_expression "(iVar14 == 1)" ( (binary_expression "iVar14 == 1" identifier == number_literal) )) (compound_statement "{\n                    \n    (**(code **)(*piVar15 + 4))(piVar15);\n  }" { (expression_statement "(**(code **)(*piVar15 + 4))(piVar15);" (call_expression "(**(code **)(*piVar15 + 4))(piVar15)" (parenthesized_expression "(**(code **)(*piVar15 + 4))" ( (pointer_expression "**(code **)(*piVar15 + 4)" * (pointer_expression "*(code **)(*piVar15 + 4)" * (cast_expression "(code **)(*piVar15 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar15 + 4)" ( (binary_expression "*piVar15 + 4" (pointer_expression "*piVar15" * identifier) + number_literal) ))))) )) (argument_list "(piVar15)" ( identifier ))) ;) })) (labeled_statement "LAB_001af0c6:\n  *piVar2 = param_3;" statement_identifier : (expression_statement "*piVar2 = param_3;" (assignment_expression "*piVar2 = param_3" (pointer_expression "*piVar2" * identifier) = identifier) ;)) (if_statement "if (*(int *)(param_1 + 8) != 0) {\n    uVar7 = 0;\n    iVar14 = *(int *)(param_1 + 0xc);\n    do {\n      piVar2 = *(int **)(iVar14 + uVar7 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    \n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < *(uint *)(param_1 + 8));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" ( (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar7 = 0;\n    iVar14 = *(int *)(param_1 + 0xc);\n    do {\n      piVar2 = *(int **)(iVar14 + uVar7 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    \n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < *(uint *)(param_1 + 8));\n  }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar14 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar14 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (do_statement "do {\n      piVar2 = *(int **)(iVar14 + uVar7 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    \n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < *(uint *)(param_1 + 8));" do (compound_statement "{\n      piVar2 = *(int **)(iVar14 + uVar7 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    \n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }\n      uVar7 = uVar7 + 1;\n    }" { (expression_statement "piVar2 = *(int **)(iVar14 + uVar7 * 4);" (assignment_expression "piVar2 = *(int **)(iVar14 + uVar7 * 4)" identifier = (pointer_expression "*(int **)(iVar14 + uVar7 * 4)" * (cast_expression "(int **)(iVar14 + uVar7 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar14 + uVar7 * 4)" ( (binary_expression "iVar14 + uVar7 * 4" identifier + (binary_expression "uVar7 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    \n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    \n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }" { (if_statement "if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }" if (parenthesized_expression "(puVar6 == (undefined *)0x0)" ( (binary_expression "puVar6 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }" { (expression_statement "iVar14 = piVar2[1];" (assignment_expression "iVar14 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2[1] = iVar14 + -1;" (assignment_expression "piVar2[1] = iVar14 + -1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (binary_expression "iVar14 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }" else (compound_statement "{\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar15 = piVar2 + 1;" (assignment_expression "piVar15 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar14 = *piVar15;" (assignment_expression "iVar14 = *piVar15" identifier = (pointer_expression "*piVar15" * identifier)) ;) (expression_statement "*piVar15 = *piVar15 + -1;" (assignment_expression "*piVar15 = *piVar15 + -1" (pointer_expression "*piVar15" * identifier) = (binary_expression "*piVar15 + -1" (pointer_expression "*piVar15" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar14 == 1) {\n                    \n          (**(code **)(*piVar2 + 4))(piVar2);\n        }" if (parenthesized_expression "(iVar14 == 1)" ( (binary_expression "iVar14 == 1" identifier == number_literal) )) (compound_statement "{\n                    \n          (**(code **)(*piVar2 + 4))(piVar2);\n        }" { (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" ( (pointer_expression "**(code **)(*piVar2 + 4)" * (pointer_expression "*(code **)(*piVar2 + 4)" * (cast_expression "(code **)(*piVar2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 4)" ( (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) })) (expression_statement "iVar14 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar14 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar14 + uVar7 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar14 + uVar7 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar14 + uVar7 * 4)" * (cast_expression "(undefined4 *)(iVar14 + uVar7 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + uVar7 * 4)" ( (binary_expression "iVar14 + uVar7 * 4" identifier + (binary_expression "uVar7 * 4" identifier * number_literal)) )))) = number_literal) ;) })) (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar7 < *(uint *)(param_1 + 8))" ( (binary_expression "uVar7 < *(uint *)(param_1 + 8)" identifier < (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE 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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - LIT) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ))) != IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) )) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )))) ;) (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)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;))) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (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 (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == 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 * IDENT) + LIT) ))))) )) (argument_list ( IDENT ))) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (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 (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == 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 * IDENT) + LIT) ))))) )) (argument_list ( IDENT ))) ;) })) (goto_statement goto statement_identifier ;) })) (break_statement break ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (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)) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == 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 * IDENT) + LIT) ))))) )) (argument_list ( IDENT ))) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == 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 * IDENT) + LIT) ))))) )) (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_001aee50(int param_1,undefined4 param_2,int param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  undefined *puVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  undefined4 *puVar10;\n  undefined *puVar11;\n  uint uVar12;\n  int iVar13;\n  int iVar14;\n  int *piVar15;\n  undefined **ppuVar16;\n  int *local_24;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  uVar7 = FUN_001aee00(param_2);\n  if (*(int *)(param_1 + 8) - 1U < uVar7) {\n    uVar12 = uVar7 + 4;\n    iVar13 = *(int *)(param_1 + 4);\n    iVar14 = uVar12 * 4;\n    if (0x1fffffff < uVar12) {\n      iVar14 = -1;\n    }\n    iVar8 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar4 = *(int *)(param_1 + 4);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n                    \n    iVar14 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar5 = *(int *)(param_1 + 0xc);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));\n    }\n    *(int *)(param_1 + 4) = iVar8;\n    *(int *)(param_1 + 0xc) = iVar14;\n    *(uint *)(param_1 + 8) = uVar12;\n    if (iVar13 != 0) {\n      FUN_001ac410(iVar13);\n    }\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }\n  puVar6 = PTR___pthread_key_create_0033ef3c;\n  if (PTR___pthread_key_create_0033ef3c == (undefined *)0x0) {\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n  }\n  else {\n    LOCK();\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n    UNLOCK();\n  }\n  piVar2 = (int *)(*(int *)(param_1 + 4) + uVar7 * 4);\n  piVar15 = (int *)*piVar2;\n  if (piVar15 == (int *)0x0) goto LAB_001af0c6;\n  ppuVar16 = &PTR_DAT_0033d900;\n  puVar11 = PTR_DAT_0033d900;\n  if (PTR_DAT_0033d900 == (undefined *)0x0) {\nLAB_001af0a8:\n    if (puVar6 == (undefined *)0x0) goto LAB_001af170;\nLAB_001af0b3:\n    LOCK();\n    piVar1 = piVar15 + 1;\n    iVar14 = *piVar1;\n    *piVar1 = *piVar1 + -1;\n    UNLOCK();\n  }\n  else {\n    do {\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    } while (puVar11 != (undefined *)0x0);\n    piVar15 = (int *)*piVar2;\n    if (puVar6 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar14 = piVar15[1];\n    piVar15[1] = iVar14 + -1;\n  }\n  if (iVar14 == 1) {\n                    \n    (**(code **)(*piVar15 + 4))(piVar15);\n  }\nLAB_001af0c6:\n  *piVar2 = param_3;\n  if (*(int *)(param_1 + 8) != 0) {\n    uVar7 = 0;\n    iVar14 = *(int *)(param_1 + 0xc);\n    do {\n      piVar2 = *(int **)(iVar14 + uVar7 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    \n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < *(uint *)(param_1 + 8));\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001aee50(int param_1,undefined4 param_2,int param_3)" (identifier "FUN_001aee50") (parameter_list "(int param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  undefined *puVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  undefined4 *puVar10;\n  undefined *puVar11;\n  uint uVar12;\n  int iVar13;\n  int iVar14;\n  int *piVar15;\n  undefined **ppuVar16;\n  int *local_24;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  uVar7 = FUN_001aee00(param_2);\n  if (*(int *)(param_1 + 8) - 1U < uVar7) {\n    uVar12 = uVar7 + 4;\n    iVar13 = *(int *)(param_1 + 4);\n    iVar14 = uVar12 * 4;\n    if (0x1fffffff < uVar12) {\n      iVar14 = -1;\n    }\n    iVar8 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar4 = *(int *)(param_1 + 4);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n                    \n    iVar14 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar5 = *(int *)(param_1 + 0xc);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));\n    }\n    *(int *)(param_1 + 4) = iVar8;\n    *(int *)(param_1 + 0xc) = iVar14;\n    *(uint *)(param_1 + 8) = uVar12;\n    if (iVar13 != 0) {\n      FUN_001ac410(iVar13);\n    }\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }\n  puVar6 = PTR___pthread_key_create_0033ef3c;\n  if (PTR___pthread_key_create_0033ef3c == (undefined *)0x0) {\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n  }\n  else {\n    LOCK();\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n    UNLOCK();\n  }\n  piVar2 = (int *)(*(int *)(param_1 + 4) + uVar7 * 4);\n  piVar15 = (int *)*piVar2;\n  if (piVar15 == (int *)0x0) goto LAB_001af0c6;\n  ppuVar16 = &PTR_DAT_0033d900;\n  puVar11 = PTR_DAT_0033d900;\n  if (PTR_DAT_0033d900 == (undefined *)0x0) {\nLAB_001af0a8:\n    if (puVar6 == (undefined *)0x0) goto LAB_001af170;\nLAB_001af0b3:\n    LOCK();\n    piVar1 = piVar15 + 1;\n    iVar14 = *piVar1;\n    *piVar1 = *piVar1 + -1;\n    UNLOCK();\n  }\n  else {\n    do {\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    } while (puVar11 != (undefined *)0x0);\n    piVar15 = (int *)*piVar2;\n    if (puVar6 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar14 = piVar15[1];\n    piVar15[1] = iVar14 + -1;\n  }\n  if (iVar14 == 1) {\n                    \n    (**(code **)(*piVar15 + 4))(piVar15);\n  }\nLAB_001af0c6:\n  *piVar2 = param_3;\n  if (*(int *)(param_1 + 8) != 0) {\n    uVar7 = 0;\n    iVar14 = *(int *)(param_1 + 0xc);\n    do {\n      piVar2 = *(int **)(iVar14 + uVar7 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    \n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < *(uint *)(param_1 + 8));\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "undefined4 *puVar10;" (type_identifier "undefined4") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (declaration "undefined *puVar11;" (type_identifier "undefined") (pointer_declarator "*puVar11" (* "*") (identifier "puVar11")) (; ";")) (declaration "uint uVar12;" (type_identifier "uint") (identifier "uVar12") (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (declaration "int iVar14;" (primitive_type "int") (identifier "iVar14") (; ";")) (declaration "int *piVar15;" (primitive_type "int") (pointer_declarator "*piVar15" (* "*") (identifier "piVar15")) (; ";")) (declaration "undefined **ppuVar16;" (type_identifier "undefined") (pointer_declarator "**ppuVar16" (* "*") (pointer_declarator "*ppuVar16" (* "*") (identifier "ppuVar16"))) (; ";")) (declaration "int *local_24;" (primitive_type "int") (pointer_declarator "*local_24" (* "*") (identifier "local_24")) (; ";")) (if_statement "if (param_3 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar7 = FUN_001aee00(param_2);" (assignment_expression "uVar7 = FUN_001aee00(param_2)" (identifier "uVar7") (= "=") (call_expression "FUN_001aee00(param_2)" (identifier "FUN_001aee00") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (*(int *)(param_1 + 8) - 1U < uVar7) {\n    uVar12 = uVar7 + 4;\n    iVar13 = *(int *)(param_1 + 4);\n    iVar14 = uVar12 * 4;\n    if (0x1fffffff < uVar12) {\n      iVar14 = -1;\n    }\n    iVar8 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar4 = *(int *)(param_1 + 4);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n                    \n    iVar14 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar5 = *(int *)(param_1 + 0xc);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));\n    }\n    *(int *)(param_1 + 4) = iVar8;\n    *(int *)(param_1 + 0xc) = iVar14;\n    *(uint *)(param_1 + 8) = uVar12;\n    if (iVar13 != 0) {\n      FUN_001ac410(iVar13);\n    }\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 8) - 1U < uVar7)" (( "(") (binary_expression "*(int *)(param_1 + 8) - 1U < uVar7" (binary_expression "*(int *)(param_1 + 8) - 1U" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (- "-") (number_literal "1U")) (< "<") (identifier "uVar7")) () ")")) (compound_statement "{\n    uVar12 = uVar7 + 4;\n    iVar13 = *(int *)(param_1 + 4);\n    iVar14 = uVar12 * 4;\n    if (0x1fffffff < uVar12) {\n      iVar14 = -1;\n    }\n    iVar8 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar4 = *(int *)(param_1 + 4);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n                    \n    iVar14 = FUN_001aa840(iVar14);\n    uVar3 = *(uint *)(param_1 + 8);\n    if (uVar3 != 0) {\n      iVar5 = *(int *)(param_1 + 0xc);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }\n    if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));\n    }\n    *(int *)(param_1 + 4) = iVar8;\n    *(int *)(param_1 + 0xc) = iVar14;\n    *(uint *)(param_1 + 8) = uVar12;\n    if (iVar13 != 0) {\n      FUN_001ac410(iVar13);\n    }\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }" ({ "{") (expression_statement "uVar12 = uVar7 + 4;" (assignment_expression "uVar12 = uVar7 + 4" (identifier "uVar12") (= "=") (binary_expression "uVar7 + 4" (identifier "uVar7") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "iVar13 = *(int *)(param_1 + 4);" (assignment_expression "iVar13 = *(int *)(param_1 + 4)" (identifier "iVar13") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar14 = uVar12 * 4;" (assignment_expression "iVar14 = uVar12 * 4" (identifier "iVar14") (= "=") (binary_expression "uVar12 * 4" (identifier "uVar12") (* "*") (number_literal "4"))) (; ";")) (if_statement "if (0x1fffffff < uVar12) {\n      iVar14 = -1;\n    }" (if "if") (parenthesized_expression "(0x1fffffff < uVar12)" (( "(") (binary_expression "0x1fffffff < uVar12" (number_literal "0x1fffffff") (< "<") (identifier "uVar12")) () ")")) (compound_statement "{\n      iVar14 = -1;\n    }" ({ "{") (expression_statement "iVar14 = -1;" (assignment_expression "iVar14 = -1" (identifier "iVar14") (= "=") (number_literal "-1")) (; ";")) (} "}"))) (expression_statement "iVar8 = FUN_001aa840(iVar14);" (assignment_expression "iVar8 = FUN_001aa840(iVar14)" (identifier "iVar8") (= "=") (call_expression "FUN_001aa840(iVar14)" (identifier "FUN_001aa840") (argument_list "(iVar14)" (( "(") (identifier "iVar14") () ")")))) (; ";")) (expression_statement "uVar3 = *(uint *)(param_1 + 8);" (assignment_expression "uVar3 = *(uint *)(param_1 + 8)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_1 + 8)" (* "*") (cast_expression "(uint *)(param_1 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (uVar3 != 0) {\n      iVar4 = *(int *)(param_1 + 4);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }" (if "if") (parenthesized_expression "(uVar3 != 0)" (( "(") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar4 = *(int *)(param_1 + 4);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }" ({ "{") (expression_statement "iVar4 = *(int *)(param_1 + 4);" (assignment_expression "iVar4 = *(int *)(param_1 + 4)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);" (do "do") (compound_statement "{\n        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      }" ({ "{") (expression_statement "*(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);" (assignment_expression "*(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4)" (pointer_expression "*(undefined4 *)(iVar8 + uVar9 * 4)" (* "*") (cast_expression "(undefined4 *)(iVar8 + uVar9 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + uVar9 * 4)" (( "(") (binary_expression "iVar8 + uVar9 * 4" (identifier "iVar8") (+ "+") (binary_expression "uVar9 * 4" (identifier "uVar9") (* "*") (number_literal "4"))) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(iVar4 + uVar9 * 4)" (* "*") (cast_expression "(undefined4 *)(iVar4 + uVar9 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + uVar9 * 4)" (( "(") (binary_expression "iVar4 + uVar9 * 4" (identifier "iVar4") (+ "+") (binary_expression "uVar9 * 4" (identifier "uVar9") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" (identifier "uVar9") (= "=") (binary_expression "uVar9 + 1" (identifier "uVar9") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar9 != uVar3)" (( "(") (binary_expression "uVar9 != uVar3" (identifier "uVar9") (!= "!=") (identifier "uVar3")) () ")")) (; ";")) (} "}"))) (if_statement "if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);\n    }" (if "if") (parenthesized_expression "(uVar3 < uVar12)" (( "(") (binary_expression "uVar3 < uVar12" (identifier "uVar3") (< "<") (identifier "uVar12")) () ")")) (compound_statement "{\n      puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);\n    }" ({ "{") (expression_statement "puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);" (assignment_expression "puVar10 = (undefined4 *)(iVar8 + uVar3 * 4)" (identifier "puVar10") (= "=") (cast_expression "(undefined4 *)(iVar8 + uVar3 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + uVar3 * 4)" (( "(") (binary_expression "iVar8 + uVar3 * 4" (identifier "iVar8") (+ "+") (binary_expression "uVar3 * 4" (identifier "uVar3") (* "*") (number_literal "4"))) () ")")))) (; ";")) (do_statement "do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);" (do "do") (compound_statement "{\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      }" ({ "{") (expression_statement "*puVar10 = 0;" (assignment_expression "*puVar10 = 0" (pointer_expression "*puVar10" (* "*") (identifier "puVar10")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" (identifier "puVar10") (= "=") (binary_expression "puVar10 + 1" (identifier "puVar10") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10)" (( "(") (binary_expression "(undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10" (cast_expression "(undefined4 *)(iVar8 + 0x10 + uVar7 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x10 + uVar7 * 4)" (( "(") (binary_expression "iVar8 + 0x10 + uVar7 * 4" (binary_expression "iVar8 + 0x10" (identifier "iVar8") (+ "+") (number_literal "0x10")) (+ "+") (binary_expression "uVar7 * 4" (identifier "uVar7") (* "*") (number_literal "4"))) () ")"))) (!= "!=") (identifier "puVar10")) () ")")) (; ";")) (} "}"))) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "iVar14 = FUN_001aa840(iVar14);" (assignment_expression "iVar14 = FUN_001aa840(iVar14)" (identifier "iVar14") (= "=") (call_expression "FUN_001aa840(iVar14)" (identifier "FUN_001aa840") (argument_list "(iVar14)" (( "(") (identifier "iVar14") () ")")))) (; ";")) (expression_statement "uVar3 = *(uint *)(param_1 + 8);" (assignment_expression "uVar3 = *(uint *)(param_1 + 8)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_1 + 8)" (* "*") (cast_expression "(uint *)(param_1 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (uVar3 != 0) {\n      iVar5 = *(int *)(param_1 + 0xc);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }" (if "if") (parenthesized_expression "(uVar3 != 0)" (( "(") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar5 = *(int *)(param_1 + 0xc);\n      uVar9 = 0;\n      do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);\n    }" ({ "{") (expression_statement "iVar5 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar5 = *(int *)(param_1 + 0xc)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      } while (uVar9 != uVar3);" (do "do") (compound_statement "{\n        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);\n        uVar9 = uVar9 + 1;\n      }" ({ "{") (expression_statement "*(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);" (assignment_expression "*(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4)" (pointer_expression "*(undefined4 *)(iVar14 + uVar9 * 4)" (* "*") (cast_expression "(undefined4 *)(iVar14 + uVar9 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + uVar9 * 4)" (( "(") (binary_expression "iVar14 + uVar9 * 4" (identifier "iVar14") (+ "+") (binary_expression "uVar9 * 4" (identifier "uVar9") (* "*") (number_literal "4"))) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(iVar5 + uVar9 * 4)" (* "*") (cast_expression "(undefined4 *)(iVar5 + uVar9 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + uVar9 * 4)" (( "(") (binary_expression "iVar5 + uVar9 * 4" (identifier "iVar5") (+ "+") (binary_expression "uVar9 * 4" (identifier "uVar9") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" (identifier "uVar9") (= "=") (binary_expression "uVar9 + 1" (identifier "uVar9") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar9 != uVar3)" (( "(") (binary_expression "uVar9 != uVar3" (identifier "uVar9") (!= "!=") (identifier "uVar3")) () ")")) (; ";")) (} "}"))) (if_statement "if (uVar3 < uVar12) {\n      puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));\n    }" (if "if") (parenthesized_expression "(uVar3 < uVar12)" (( "(") (binary_expression "uVar3 < uVar12" (identifier "uVar3") (< "<") (identifier "uVar12")) () ")")) (compound_statement "{\n      puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);\n      do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));\n    }" ({ "{") (expression_statement "puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);" (assignment_expression "puVar10 = (undefined4 *)(iVar14 + uVar3 * 4)" (identifier "puVar10") (= "=") (cast_expression "(undefined4 *)(iVar14 + uVar3 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + uVar3 * 4)" (( "(") (binary_expression "iVar14 + uVar3 * 4" (identifier "iVar14") (+ "+") (binary_expression "uVar3 * 4" (identifier "uVar3") (* "*") (number_literal "4"))) () ")")))) (; ";")) (do_statement "do {\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));" (do "do") (compound_statement "{\n        *puVar10 = 0;\n        puVar10 = puVar10 + 1;\n      }" ({ "{") (expression_statement "*puVar10 = 0;" (assignment_expression "*puVar10 = 0" (pointer_expression "*puVar10" (* "*") (identifier "puVar10")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" (identifier "puVar10") (= "=") (binary_expression "puVar10 + 1" (identifier "puVar10") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4))" (( "(") (binary_expression "puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4)" (identifier "puVar10") (!= "!=") (cast_expression "(undefined4 *)(iVar14 + 0x10 + uVar7 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 0x10 + uVar7 * 4)" (( "(") (binary_expression "iVar14 + 0x10 + uVar7 * 4" (binary_expression "iVar14 + 0x10" (identifier "iVar14") (+ "+") (number_literal "0x10")) (+ "+") (binary_expression "uVar7 * 4" (identifier "uVar7") (* "*") (number_literal "4"))) () ")")))) () ")")) (; ";")) (} "}"))) (expression_statement "*(int *)(param_1 + 4) = iVar8;" (assignment_expression "*(int *)(param_1 + 4) = iVar8" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar8")) (; ";")) (expression_statement "*(int *)(param_1 + 0xc) = iVar14;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar14" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar14")) (; ";")) (expression_statement "*(uint *)(param_1 + 8) = uVar12;" (assignment_expression "*(uint *)(param_1 + 8) = uVar12" (pointer_expression "*(uint *)(param_1 + 8)" (* "*") (cast_expression "(uint *)(param_1 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar12")) (; ";")) (if_statement "if (iVar13 != 0) {\n      FUN_001ac410(iVar13);\n    }" (if "if") (parenthesized_expression "(iVar13 != 0)" (( "(") (binary_expression "iVar13 != 0" (identifier "iVar13") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_001ac410(iVar13);\n    }" ({ "{") (expression_statement "FUN_001ac410(iVar13);" (call_expression "FUN_001ac410(iVar13)" (identifier "FUN_001ac410") (argument_list "(iVar13)" (( "(") (identifier "iVar13") () ")"))) (; ";")) (} "}"))) (if_statement "if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_001ac410(iVar4);\n    }" ({ "{") (expression_statement "FUN_001ac410(iVar4);" (call_expression "FUN_001ac410(iVar4)" (identifier "FUN_001ac410") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar6 = PTR___pthread_key_create_0033ef3c;" (assignment_expression "puVar6 = PTR___pthread_key_create_0033ef3c" (identifier "puVar6") (= "=") (identifier "PTR___pthread_key_create_0033ef3c")) (; ";")) (if_statement "if (PTR___pthread_key_create_0033ef3c == (undefined *)0x0) {\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n  }\n  else {\n    LOCK();\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n    UNLOCK();\n  }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_0033ef3c == (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_0033ef3c == (undefined *)0x0" (identifier "PTR___pthread_key_create_0033ef3c") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n  }" ({ "{") (expression_statement "*(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;" (assignment_expression "*(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1" (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(int *)(param_3 + 4) + 1" (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n    LOCK();\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n    UNLOCK();\n  }" (else "else") (compound_statement "{\n    LOCK();\n    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;\n    UNLOCK();\n  }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;" (assignment_expression "*(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1" (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(int *)(param_3 + 4) + 1" (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (expression_statement "piVar2 = (int *)(*(int *)(param_1 + 4) + uVar7 * 4);" (assignment_expression "piVar2 = (int *)(*(int *)(param_1 + 4) + uVar7 * 4)" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(int *)(param_1 + 4) + uVar7 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 4) + uVar7 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 4) + uVar7 * 4" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (binary_expression "uVar7 * 4" (identifier "uVar7") (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "piVar15 = (int *)*piVar2;" (assignment_expression "piVar15 = (int *)*piVar2" (identifier "piVar15") (= "=") (cast_expression "(int *)*piVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")))) (; ";")) (if_statement "if (piVar15 == (int *)0x0) goto LAB_001af0c6;" (if "if") (parenthesized_expression "(piVar15 == (int *)0x0)" (( "(") (binary_expression "piVar15 == (int *)0x0" (identifier "piVar15") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_001af0c6;" (goto "goto") (statement_identifier "LAB_001af0c6") (; ";"))) (expression_statement "ppuVar16 = &PTR_DAT_0033d900;" (assignment_expression "ppuVar16 = &PTR_DAT_0033d900" (identifier "ppuVar16") (= "=") (pointer_expression "&PTR_DAT_0033d900" (& "&") (identifier "PTR_DAT_0033d900"))) (; ";")) (expression_statement "puVar11 = PTR_DAT_0033d900;" (assignment_expression "puVar11 = PTR_DAT_0033d900" (identifier "puVar11") (= "=") (identifier "PTR_DAT_0033d900")) (; ";")) (if_statement "if (PTR_DAT_0033d900 == (undefined *)0x0) {\nLAB_001af0a8:\n    if (puVar6 == (undefined *)0x0) goto LAB_001af170;\nLAB_001af0b3:\n    LOCK();\n    piVar1 = piVar15 + 1;\n    iVar14 = *piVar1;\n    *piVar1 = *piVar1 + -1;\n    UNLOCK();\n  }\n  else {\n    do {\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    } while (puVar11 != (undefined *)0x0);\n    piVar15 = (int *)*piVar2;\n    if (puVar6 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar14 = piVar15[1];\n    piVar15[1] = iVar14 + -1;\n  }" (if "if") (parenthesized_expression "(PTR_DAT_0033d900 == (undefined *)0x0)" (( "(") (binary_expression "PTR_DAT_0033d900 == (undefined *)0x0" (identifier "PTR_DAT_0033d900") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_001af0a8:\n    if (puVar6 == (undefined *)0x0) goto LAB_001af170;\nLAB_001af0b3:\n    LOCK();\n    piVar1 = piVar15 + 1;\n    iVar14 = *piVar1;\n    *piVar1 = *piVar1 + -1;\n    UNLOCK();\n  }" ({ "{") (labeled_statement "LAB_001af0a8:\n    if (puVar6 == (undefined *)0x0) goto LAB_001af170;" (statement_identifier "LAB_001af0a8") (: ":") (if_statement "if (puVar6 == (undefined *)0x0) goto LAB_001af170;" (if "if") (parenthesized_expression "(puVar6 == (undefined *)0x0)" (( "(") (binary_expression "puVar6 == (undefined *)0x0" (identifier "puVar6") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_001af170;" (goto "goto") (statement_identifier "LAB_001af170") (; ";")))) (labeled_statement "LAB_001af0b3:\n    LOCK();" (statement_identifier "LAB_001af0b3") (: ":") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";"))) (expression_statement "piVar1 = piVar15 + 1;" (assignment_expression "piVar1 = piVar15 + 1" (identifier "piVar1") (= "=") (binary_expression "piVar15 + 1" (identifier "piVar15") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar14 = *piVar1;" (assignment_expression "iVar14 = *piVar1" (identifier "iVar14") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    do {\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    } while (puVar11 != (undefined *)0x0);\n    piVar15 = (int *)*piVar2;\n    if (puVar6 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar14 = piVar15[1];\n    piVar15[1] = iVar14 + -1;\n  }" (else "else") (compound_statement "{\n    do {\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    } while (puVar11 != (undefined *)0x0);\n    piVar15 = (int *)*piVar2;\n    if (puVar6 != (undefined *)0x0) goto LAB_001af0b3;\nLAB_001af170:\n    iVar14 = piVar15[1];\n    piVar15[1] = iVar14 + -1;\n  }" ({ "{") (do_statement "do {\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    } while (puVar11 != (undefined *)0x0);" (do "do") (compound_statement "{\n      uVar12 = FUN_001aee00(puVar11);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }\n      uVar12 = FUN_001aee00(ppuVar16[1]);\n      if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }\n      ppuVar16 = ppuVar16 + 2;\n      puVar11 = *ppuVar16;\n    }" ({ "{") (expression_statement "uVar12 = FUN_001aee00(puVar11);" (assignment_expression "uVar12 = FUN_001aee00(puVar11)" (identifier "uVar12") (= "=") (call_expression "FUN_001aee00(puVar11)" (identifier "FUN_001aee00") (argument_list "(puVar11)" (( "(") (identifier "puVar11") () ")")))) (; ";")) (if_statement "if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }" (if "if") (parenthesized_expression "(uVar12 == uVar7)" (( "(") (binary_expression "uVar12 == uVar7" (identifier "uVar12") (== "==") (identifier "uVar7")) () ")")) (compound_statement "{\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(ppuVar16[1]);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }\n        break;\n      }" ({ "{") (expression_statement "iVar14 = *(int *)(param_1 + 4);" (assignment_expression "iVar14 = *(int *)(param_1 + 4)" (identifier "iVar14") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar13 = FUN_001aee00(ppuVar16[1]);" (assignment_expression "iVar13 = FUN_001aee00(ppuVar16[1])" (identifier "iVar13") (= "=") (call_expression "FUN_001aee00(ppuVar16[1])" (identifier "FUN_001aee00") (argument_list "(ppuVar16[1])" (( "(") (subscript_expression "ppuVar16[1]" (identifier "ppuVar16") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (expression_statement "local_24 = (int *)(iVar14 + iVar13 * 4);" (assignment_expression "local_24 = (int *)(iVar14 + iVar13 * 4)" (identifier "local_24") (= "=") (cast_expression "(int *)(iVar14 + iVar13 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + iVar13 * 4)" (( "(") (binary_expression "iVar14 + iVar13 * 4" (identifier "iVar14") (+ "+") (binary_expression "iVar13 * 4" (identifier "iVar13") (* "*") (number_literal "4"))) () ")")))) (; ";")) (if_statement "if (*local_24 != 0) {\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }" (if "if") (parenthesized_expression "(*local_24 != 0)" (( "(") (binary_expression "*local_24 != 0" (pointer_expression "*local_24" (* "*") (identifier "local_24")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\nLAB_001af09e:\n          *local_24 = iVar14;\n          piVar15 = (int *)*piVar2;\n          goto LAB_001af0a8;\n        }" ({ "{") (expression_statement "iVar14 = FUN_001eac90(param_3,ppuVar16[1]);" (assignment_expression "iVar14 = FUN_001eac90(param_3,ppuVar16[1])" (identifier "iVar14") (= "=") (call_expression "FUN_001eac90(param_3,ppuVar16[1])" (identifier "FUN_001eac90") (argument_list "(param_3,ppuVar16[1])" (( "(") (identifier "param_3") (, ",") (subscript_expression "ppuVar16[1]" (identifier "ppuVar16") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (if_statement "if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }" (if "if") (parenthesized_expression "(puVar6 == (undefined *)0x0)" (( "(") (binary_expression "puVar6 == (undefined *)0x0" (identifier "puVar6") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }" ({ "{") (expression_statement "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;" (assignment_expression "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" (* "*") (cast_expression "(int *)(iVar14 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 4)" (( "(") (binary_expression "iVar14 + 4" (identifier "iVar14") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" (* "*") (cast_expression "(int *)(iVar14 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 4)" (( "(") (binary_expression "iVar14 + 4" (identifier "iVar14") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }" (else "else") (compound_statement "{\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;" (assignment_expression "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" (* "*") (cast_expression "(int *)(iVar14 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 4)" (( "(") (binary_expression "iVar14 + 4" (identifier "iVar14") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" (* "*") (cast_expression "(int *)(iVar14 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 4)" (( "(") (binary_expression "iVar14 + 4" (identifier "iVar14") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (expression_statement "piVar15 = (int *)*local_24;" (assignment_expression "piVar15 = (int *)*local_24" (identifier "piVar15") (= "=") (cast_expression "(int *)*local_24" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*local_24" (* "*") (identifier "local_24")))) (; ";")) (if_statement "if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" (if "if") (parenthesized_expression "(puVar6 == (undefined *)0x0)" (( "(") (binary_expression "puVar6 == (undefined *)0x0" (identifier "puVar6") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }" ({ "{") (expression_statement "iVar13 = piVar15[1];" (assignment_expression "iVar13 = piVar15[1]" (identifier "iVar13") (= "=") (subscript_expression "piVar15[1]" (identifier "piVar15") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar15[1] = iVar13 + -1;" (assignment_expression "piVar15[1] = iVar13 + -1" (subscript_expression "piVar15[1]" (identifier "piVar15") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar13 + -1" (identifier "iVar13") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" (else "else") (compound_statement "{\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar1 = piVar15 + 1;" (assignment_expression "piVar1 = piVar15 + 1" (identifier "piVar1") (= "=") (binary_expression "piVar15 + 1" (identifier "piVar15") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar13 = *piVar1;" (assignment_expression "iVar13 = *piVar1" (identifier "iVar13") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }" (if "if") (parenthesized_expression "(iVar13 == 1)" (( "(") (binary_expression "iVar13 == 1" (identifier "iVar13") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }" ({ "{") (expression_statement "(**(code **)(*piVar15 + 4))(piVar15);" (call_expression "(**(code **)(*piVar15 + 4))(piVar15)" (parenthesized_expression "(**(code **)(*piVar15 + 4))" (( "(") (pointer_expression "**(code **)(*piVar15 + 4)" (* "*") (pointer_expression "*(code **)(*piVar15 + 4)" (* "*") (cast_expression "(code **)(*piVar15 + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar15 + 4)" (( "(") (binary_expression "*piVar15 + 4" (pointer_expression "*piVar15" (* "*") (identifier "piVar15")) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "(piVar15)" (( "(") (identifier "piVar15") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_001af09e:\n          *local_24 = iVar14;" (statement_identifier "LAB_001af09e") (: ":") (expression_statement "*local_24 = iVar14;" (assignment_expression "*local_24 = iVar14" (pointer_expression "*local_24" (* "*") (identifier "local_24")) (= "=") (identifier "iVar14")) (; ";"))) (expression_statement "piVar15 = (int *)*piVar2;" (assignment_expression "piVar15 = (int *)*piVar2" (identifier "piVar15") (= "=") (cast_expression "(int *)*piVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")))) (; ";")) (goto_statement "goto LAB_001af0a8;" (goto "goto") (statement_identifier "LAB_001af0a8") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "uVar12 = FUN_001aee00(ppuVar16[1]);" (assignment_expression "uVar12 = FUN_001aee00(ppuVar16[1])" (identifier "uVar12") (= "=") (call_expression "FUN_001aee00(ppuVar16[1])" (identifier "FUN_001aee00") (argument_list "(ppuVar16[1])" (( "(") (subscript_expression "ppuVar16[1]" (identifier "ppuVar16") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (if_statement "if (uVar12 == uVar7) {\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }" (if "if") (parenthesized_expression "(uVar12 == uVar7)" (( "(") (binary_expression "uVar12 == uVar7" (identifier "uVar12") (== "==") (identifier "uVar7")) () ")")) (compound_statement "{\n        iVar14 = *(int *)(param_1 + 4);\n        iVar13 = FUN_001aee00(*ppuVar16);\n        local_24 = (int *)(iVar14 + iVar13 * 4);\n        if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }\n        break;\n      }" ({ "{") (expression_statement "iVar14 = *(int *)(param_1 + 4);" (assignment_expression "iVar14 = *(int *)(param_1 + 4)" (identifier "iVar14") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar13 = FUN_001aee00(*ppuVar16);" (assignment_expression "iVar13 = FUN_001aee00(*ppuVar16)" (identifier "iVar13") (= "=") (call_expression "FUN_001aee00(*ppuVar16)" (identifier "FUN_001aee00") (argument_list "(*ppuVar16)" (( "(") (pointer_expression "*ppuVar16" (* "*") (identifier "ppuVar16")) () ")")))) (; ";")) (expression_statement "local_24 = (int *)(iVar14 + iVar13 * 4);" (assignment_expression "local_24 = (int *)(iVar14 + iVar13 * 4)" (identifier "local_24") (= "=") (cast_expression "(int *)(iVar14 + iVar13 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + iVar13 * 4)" (( "(") (binary_expression "iVar14 + iVar13 * 4" (identifier "iVar14") (+ "+") (binary_expression "iVar13 * 4" (identifier "iVar13") (* "*") (number_literal "4"))) () ")")))) (; ";")) (if_statement "if (*local_24 != 0) {\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }" (if "if") (parenthesized_expression "(*local_24 != 0)" (( "(") (binary_expression "*local_24 != 0" (pointer_expression "*local_24" (* "*") (identifier "local_24")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar14 = FUN_001f0420(param_3,*ppuVar16);\n          if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }\n          piVar15 = (int *)*local_24;\n          if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }\n          goto LAB_001af09e;\n        }" ({ "{") (expression_statement "iVar14 = FUN_001f0420(param_3,*ppuVar16);" (assignment_expression "iVar14 = FUN_001f0420(param_3,*ppuVar16)" (identifier "iVar14") (= "=") (call_expression "FUN_001f0420(param_3,*ppuVar16)" (identifier "FUN_001f0420") (argument_list "(param_3,*ppuVar16)" (( "(") (identifier "param_3") (, ",") (pointer_expression "*ppuVar16" (* "*") (identifier "ppuVar16")) () ")")))) (; ";")) (if_statement "if (puVar6 == (undefined *)0x0) {\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }" (if "if") (parenthesized_expression "(puVar6 == (undefined *)0x0)" (( "(") (binary_expression "puVar6 == (undefined *)0x0" (identifier "puVar6") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n          }" ({ "{") (expression_statement "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;" (assignment_expression "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" (* "*") (cast_expression "(int *)(iVar14 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 4)" (( "(") (binary_expression "iVar14 + 4" (identifier "iVar14") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" (* "*") (cast_expression "(int *)(iVar14 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 4)" (( "(") (binary_expression "iVar14 + 4" (identifier "iVar14") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }" (else "else") (compound_statement "{\n            LOCK();\n            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;\n            UNLOCK();\n          }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;" (assignment_expression "*(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" (* "*") (cast_expression "(int *)(iVar14 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 4)" (( "(") (binary_expression "iVar14 + 4" (identifier "iVar14") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(int *)(iVar14 + 4) + 1" (pointer_expression "*(int *)(iVar14 + 4)" (* "*") (cast_expression "(int *)(iVar14 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 4)" (( "(") (binary_expression "iVar14 + 4" (identifier "iVar14") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (expression_statement "piVar15 = (int *)*local_24;" (assignment_expression "piVar15 = (int *)*local_24" (identifier "piVar15") (= "=") (cast_expression "(int *)*local_24" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*local_24" (* "*") (identifier "local_24")))) (; ";")) (if_statement "if (puVar6 == (undefined *)0x0) {\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" (if "if") (parenthesized_expression "(puVar6 == (undefined *)0x0)" (( "(") (binary_expression "puVar6 == (undefined *)0x0" (identifier "puVar6") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            iVar13 = piVar15[1];\n            piVar15[1] = iVar13 + -1;\n          }" ({ "{") (expression_statement "iVar13 = piVar15[1];" (assignment_expression "iVar13 = piVar15[1]" (identifier "iVar13") (= "=") (subscript_expression "piVar15[1]" (identifier "piVar15") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar15[1] = iVar13 + -1;" (assignment_expression "piVar15[1] = iVar13 + -1" (subscript_expression "piVar15[1]" (identifier "piVar15") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar13 + -1" (identifier "iVar13") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" (else "else") (compound_statement "{\n            LOCK();\n            piVar1 = piVar15 + 1;\n            iVar13 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar1 = piVar15 + 1;" (assignment_expression "piVar1 = piVar15 + 1" (identifier "piVar1") (= "=") (binary_expression "piVar15 + 1" (identifier "piVar15") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar13 = *piVar1;" (assignment_expression "iVar13 = *piVar1" (identifier "iVar13") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar13 == 1) {\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }" (if "if") (parenthesized_expression "(iVar13 == 1)" (( "(") (binary_expression "iVar13 == 1" (identifier "iVar13") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n                    \n            (**(code **)(*piVar15 + 4))(piVar15);\n          }" ({ "{") (expression_statement "(**(code **)(*piVar15 + 4))(piVar15);" (call_expression "(**(code **)(*piVar15 + 4))(piVar15)" (parenthesized_expression "(**(code **)(*piVar15 + 4))" (( "(") (pointer_expression "**(code **)(*piVar15 + 4)" (* "*") (pointer_expression "*(code **)(*piVar15 + 4)" (* "*") (cast_expression "(code **)(*piVar15 + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar15 + 4)" (( "(") (binary_expression "*piVar15 + 4" (pointer_expression "*piVar15" (* "*") (identifier "piVar15")) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "(piVar15)" (( "(") (identifier "piVar15") () ")"))) (; ";")) (} "}"))) (goto_statement "goto LAB_001af09e;" (goto "goto") (statement_identifier "LAB_001af09e") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "ppuVar16 = ppuVar16 + 2;" (assignment_expression "ppuVar16 = ppuVar16 + 2" (identifier "ppuVar16") (= "=") (binary_expression "ppuVar16 + 2" (identifier "ppuVar16") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "puVar11 = *ppuVar16;" (assignment_expression "puVar11 = *ppuVar16" (identifier "puVar11") (= "=") (pointer_expression "*ppuVar16" (* "*") (identifier "ppuVar16"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar11 != (undefined *)0x0)" (( "(") (binary_expression "puVar11 != (undefined *)0x0" (identifier "puVar11") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "piVar15 = (int *)*piVar2;" (assignment_expression "piVar15 = (int *)*piVar2" (identifier "piVar15") (= "=") (cast_expression "(int *)*piVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")))) (; ";")) (if_statement "if (puVar6 != (undefined *)0x0) goto LAB_001af0b3;" (if "if") (parenthesized_expression "(puVar6 != (undefined *)0x0)" (( "(") (binary_expression "puVar6 != (undefined *)0x0" (identifier "puVar6") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_001af0b3;" (goto "goto") (statement_identifier "LAB_001af0b3") (; ";"))) (labeled_statement "LAB_001af170:\n    iVar14 = piVar15[1];" (statement_identifier "LAB_001af170") (: ":") (expression_statement "iVar14 = piVar15[1];" (assignment_expression "iVar14 = piVar15[1]" (identifier "iVar14") (= "=") (subscript_expression "piVar15[1]" (identifier "piVar15") ([ "[") (number_literal "1") (] "]"))) (; ";"))) (expression_statement "piVar15[1] = iVar14 + -1;" (assignment_expression "piVar15[1] = iVar14 + -1" (subscript_expression "piVar15[1]" (identifier "piVar15") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar14 + -1" (identifier "iVar14") (+ "+") (number_literal "-1"))) (; ";")) (} "}")))) (if_statement "if (iVar14 == 1) {\n                    \n    (**(code **)(*piVar15 + 4))(piVar15);\n  }" (if "if") (parenthesized_expression "(iVar14 == 1)" (( "(") (binary_expression "iVar14 == 1" (identifier "iVar14") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n                    \n    (**(code **)(*piVar15 + 4))(piVar15);\n  }" ({ "{") (expression_statement "(**(code **)(*piVar15 + 4))(piVar15);" (call_expression "(**(code **)(*piVar15 + 4))(piVar15)" (parenthesized_expression "(**(code **)(*piVar15 + 4))" (( "(") (pointer_expression "**(code **)(*piVar15 + 4)" (* "*") (pointer_expression "*(code **)(*piVar15 + 4)" (* "*") (cast_expression "(code **)(*piVar15 + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar15 + 4)" (( "(") (binary_expression "*piVar15 + 4" (pointer_expression "*piVar15" (* "*") (identifier "piVar15")) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "(piVar15)" (( "(") (identifier "piVar15") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_001af0c6:\n  *piVar2 = param_3;" (statement_identifier "LAB_001af0c6") (: ":") (expression_statement "*piVar2 = param_3;" (assignment_expression "*piVar2 = param_3" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "param_3")) (; ";"))) (if_statement "if (*(int *)(param_1 + 8) != 0) {\n    uVar7 = 0;\n    iVar14 = *(int *)(param_1 + 0xc);\n    do {\n      piVar2 = *(int **)(iVar14 + uVar7 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    \n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < *(uint *)(param_1 + 8));\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar7 = 0;\n    iVar14 = *(int *)(param_1 + 0xc);\n    do {\n      piVar2 = *(int **)(iVar14 + uVar7 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    \n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < *(uint *)(param_1 + 8));\n  }" ({ "{") (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar14 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar14 = *(int *)(param_1 + 0xc)" (identifier "iVar14") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (do_statement "do {\n      piVar2 = *(int **)(iVar14 + uVar7 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    \n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < *(uint *)(param_1 + 8));" (do "do") (compound_statement "{\n      piVar2 = *(int **)(iVar14 + uVar7 * 4);\n      if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    \n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }\n      uVar7 = uVar7 + 1;\n    }" ({ "{") (expression_statement "piVar2 = *(int **)(iVar14 + uVar7 * 4);" (assignment_expression "piVar2 = *(int **)(iVar14 + uVar7 * 4)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(iVar14 + uVar7 * 4)" (* "*") (cast_expression "(int **)(iVar14 + uVar7 * 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar14 + uVar7 * 4)" (( "(") (binary_expression "iVar14 + uVar7 * 4" (identifier "iVar14") (+ "+") (binary_expression "uVar7 * 4" (identifier "uVar7") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (piVar2 != (int *)0x0) {\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    \n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }" (if "if") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }\n        if (iVar14 == 1) {\n                    \n          (**(code **)(*piVar2 + 4))(piVar2);\n        }\n        iVar14 = *(int *)(param_1 + 0xc);\n        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;\n      }" ({ "{") (if_statement "if (puVar6 == (undefined *)0x0) {\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }\n        else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }" (if "if") (parenthesized_expression "(puVar6 == (undefined *)0x0)" (( "(") (binary_expression "puVar6 == (undefined *)0x0" (identifier "puVar6") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          iVar14 = piVar2[1];\n          piVar2[1] = iVar14 + -1;\n        }" ({ "{") (expression_statement "iVar14 = piVar2[1];" (assignment_expression "iVar14 = piVar2[1]" (identifier "iVar14") (= "=") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar2[1] = iVar14 + -1;" (assignment_expression "piVar2[1] = iVar14 + -1" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar14 + -1" (identifier "iVar14") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }" (else "else") (compound_statement "{\n          LOCK();\n          piVar15 = piVar2 + 1;\n          iVar14 = *piVar15;\n          *piVar15 = *piVar15 + -1;\n          UNLOCK();\n        }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar15 = piVar2 + 1;" (assignment_expression "piVar15 = piVar2 + 1" (identifier "piVar15") (= "=") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar14 = *piVar15;" (assignment_expression "iVar14 = *piVar15" (identifier "iVar14") (= "=") (pointer_expression "*piVar15" (* "*") (identifier "piVar15"))) (; ";")) (expression_statement "*piVar15 = *piVar15 + -1;" (assignment_expression "*piVar15 = *piVar15 + -1" (pointer_expression "*piVar15" (* "*") (identifier "piVar15")) (= "=") (binary_expression "*piVar15 + -1" (pointer_expression "*piVar15" (* "*") (identifier "piVar15")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar14 == 1) {\n                    \n          (**(code **)(*piVar2 + 4))(piVar2);\n        }" (if "if") (parenthesized_expression "(iVar14 == 1)" (( "(") (binary_expression "iVar14 == 1" (identifier "iVar14") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n                    \n          (**(code **)(*piVar2 + 4))(piVar2);\n        }" ({ "{") (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" (( "(") (pointer_expression "**(code **)(*piVar2 + 4)" (* "*") (pointer_expression "*(code **)(*piVar2 + 4)" (* "*") (cast_expression "(code **)(*piVar2 + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar2 + 4)" (( "(") (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "(piVar2)" (( "(") (identifier "piVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar14 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar14 = *(int *)(param_1 + 0xc)" (identifier "iVar14") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar14 + uVar7 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar14 + uVar7 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar14 + uVar7 * 4)" (* "*") (cast_expression "(undefined4 *)(iVar14 + uVar7 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + uVar7 * 4)" (( "(") (binary_expression "iVar14 + uVar7 * 4" (identifier "iVar14") (+ "+") (binary_expression "uVar7 * 4" (identifier "uVar7") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" (identifier "uVar7") (= "=") (binary_expression "uVar7 + 1" (identifier "uVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar7 < *(uint *)(param_1 + 8))" (( "(") (binary_expression "uVar7 < *(uint *)(param_1 + 8)" (identifier "uVar7") (< "<") (pointer_expression "*(uint *)(param_1 + 8)" (* "*") (cast_expression "(uint *)(param_1 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* std::locale::_Impl::_M_install_facet(std::locale::id const*, std::locale::facet const*) */

void __thiscall std::locale::type_1::function_1(type_1 *var_3,type_2 *param_1,type_3 *var_1)

{
  int *piVar1;
  int *var_26;
  void *var_12;
  void *var_14;
  type_4 *var_20;
  type_5 var_4;
  void *pvVar7;
  type_5 var_8;
  type_6 *var_10;
  void *pvVar10;
  type_2 *var_25;
  type_5 var_5;
  int var_21;
  int var_9;
  type_5 var_11;
  type_5 var_7;
  int *var_18;
  type_4 **var_24;
  int *local_24;
  
  if (var_1 == (type_3 *)0x0) {
    return;
  }
  var_4 = locale::id::var_2(param_1);
  if (*(int *)(var_3 + 8) - 1U < var_4) {
    var_5 = var_4 + 4;
    var_12 = *(void **)(var_3 + 4);
    var_11 = var_5 * 4;
    if (0x1fffffff < var_5) {
      var_11 = 0xffffffff;
    }
    pvVar7 = var_6(var_11);
    var_7 = *(type_5 *)(var_3 + 8);
    if (var_7 != 0) {
      var_9 = *(int *)(var_3 + 4);
      var_8 = 0;
      do {
        *(type_6 *)((int)pvVar7 + var_8 * 4) = *(type_6 *)(var_9 + var_8 * 4);
        var_8 = var_8 + 1;
      } while (var_8 != var_7);
    }
    if (var_7 < var_5) {
      var_10 = (type_6 *)((int)pvVar7 + var_7 * 4);
      do {
        *var_10 = 0;
        var_10 = var_10 + 1;
      } while ((type_6 *)((int)pvVar7 + var_4 * 4 + 0x10) != var_10);
    }
    var_14 = *(void **)(var_3 + 0xc);
                    /* try { // try from 001aef1d to 001aef21 has its CatchHandler @ 001af256 */
    pvVar10 = var_6(var_11);
    var_11 = *(type_5 *)(var_3 + 8);
    if (var_11 != 0) {
      var_9 = *(int *)(var_3 + 0xc);
      var_7 = 0;
      do {
        *(type_6 *)((int)pvVar10 + var_7 * 4) = *(type_6 *)(var_9 + var_7 * 4);
        var_7 = var_7 + 1;
      } while (var_7 != var_11);
    }
    if (var_11 < var_5) {
      var_10 = (type_6 *)((int)pvVar10 + var_11 * 4);
      do {
        *var_10 = 0;
        var_10 = var_10 + 1;
      } while (var_10 != (type_6 *)((int)pvVar10 + var_4 * 4 + 0x10));
    }
    *(void **)(var_3 + 4) = pvVar7;
    *(void **)(var_3 + 0xc) = pvVar10;
    *(type_5 *)(var_3 + 8) = var_5;
    if (var_12 != (void *)0x0) {
      var_13(var_12);
    }
    if (var_14 != (void *)0x0) {
      var_13(var_14);
    }
  }
  var_20 = var_15;
  if (var_15 == (type_4 *)0x0) {
    *(int *)(var_1 + 4) = *(int *)(var_1 + 4) + 1;
  }
  else {
    var_16();
    *(int *)(var_1 + 4) = *(int *)(var_1 + 4) + 1;
    var_17();
  }
  var_26 = (int *)(*(int *)(var_3 + 4) + var_4 * 4);
  var_18 = (int *)*var_26;
  if (var_18 == (int *)0x0) goto LAB_001af0c6;
  var_24 = &var_19;
  var_25 = (type_2 *)var_19;
  if (var_19 == (type_4 *)0x0) {
LAB_001af0a8:
    if (var_20 == (type_4 *)0x0) goto LAB_001af170;
LAB_001af0b3:
    var_16();
    piVar1 = var_18 + 1;
    var_9 = *piVar1;
    *piVar1 = *piVar1 + -1;
    var_17();
  }
  else {
    do {
      var_5 = locale::id::var_2(var_25);
      if (var_5 == var_4) {
        var_9 = *(int *)(var_3 + 4);
        var_21 = locale::id::var_2((type_2 *)var_24[1]);
        local_24 = (int *)(var_9 + var_21 * 4);
        if (*local_24 != 0) {
          var_9 = type_3::var_22(var_1,(type_2 *)var_24[1]);
          if (var_20 == (type_4 *)0x0) {
            *(int *)(var_9 + 4) = *(int *)(var_9 + 4) + 1;
          }
          else {
            var_16();
            *(int *)(var_9 + 4) = *(int *)(var_9 + 4) + 1;
            var_17();
          }
          var_18 = (int *)*local_24;
          if (var_20 == (type_4 *)0x0) {
            var_21 = var_18[1];
            var_18[1] = var_21 + -1;
          }
          else {
            var_16();
            piVar1 = var_18 + 1;
            var_21 = *piVar1;
            *piVar1 = *piVar1 + -1;
            var_17();
          }
          if (var_21 == 1) {
                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */
            (**(type_7 **)(*var_18 + 4))(var_18);
          }
LAB_001af09e:
          *local_24 = var_9;
          var_18 = (int *)*var_26;
          goto LAB_001af0a8;
        }
        break;
      }
      var_5 = locale::id::var_2((type_2 *)var_24[1]);
      if (var_5 == var_4) {
        var_9 = *(int *)(var_3 + 4);
        var_21 = locale::id::var_2((type_2 *)*var_24);
        local_24 = (int *)(var_9 + var_21 * 4);
        if (*local_24 != 0) {
          var_9 = type_3::var_23(var_1,(type_2 *)*var_24);
          if (var_20 == (type_4 *)0x0) {
            *(int *)(var_9 + 4) = *(int *)(var_9 + 4) + 1;
          }
          else {
            var_16();
            *(int *)(var_9 + 4) = *(int *)(var_9 + 4) + 1;
            var_17();
          }
          var_18 = (int *)*local_24;
          if (var_20 == (type_4 *)0x0) {
            var_21 = var_18[1];
            var_18[1] = var_21 + -1;
          }
          else {
            var_16();
            piVar1 = var_18 + 1;
            var_21 = *piVar1;
            *piVar1 = *piVar1 + -1;
            var_17();
          }
          if (var_21 == 1) {
                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */
            (**(type_7 **)(*var_18 + 4))(var_18);
          }
          goto LAB_001af09e;
        }
        break;
      }
      var_24 = var_24 + 2;
      var_25 = (type_2 *)*var_24;
    } while (var_25 != (type_2 *)0x0);
    var_18 = (int *)*var_26;
    if (var_20 != (type_4 *)0x0) goto LAB_001af0b3;
LAB_001af170:
    var_9 = var_18[1];
    var_18[1] = var_9 + -1;
  }
  if (var_9 == 1) {
                    /* try { // try from 001af188 to 001af18a has its CatchHandler @ 001af24c */
    (**(type_7 **)(*var_18 + 4))(var_18);
  }
LAB_001af0c6:
  *var_26 = (int)var_1;
  if (*(int *)(var_3 + 8) != 0) {
    var_4 = 0;
    var_9 = *(int *)(var_3 + 0xc);
    do {
      var_26 = *(int **)(var_9 + var_4 * 4);
      if (var_26 != (int *)0x0) {
        if (var_20 == (type_4 *)0x0) {
          var_9 = var_26[1];
          var_26[1] = var_9 + -1;
        }
        else {
          var_16();
          var_18 = var_26 + 1;
          var_9 = *var_18;
          *var_18 = *var_18 + -1;
          var_17();
        }
        if (var_9 == 1) {
                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */
          (**(type_7 **)(*var_26 + 4))(var_26);
        }
        var_9 = *(int *)(var_3 + 0xc);
        *(type_6 *)(var_9 + var_4 * 4) = 0;
      }
      var_4 = var_4 + 1;
    } while (var_4 < *(type_5 *)(var_3 + 8));
  }
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

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

{
  int *piVar1;
  int *piVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  undefined *puVar6;
  uint uVar7;
  int iVar8;
  uint uVar9;
  undefined4 *puVar10;
  undefined *puVar11;
  uint uVar12;
  int iVar13;
  int iVar14;
  int *piVar15;
  undefined **ppuVar16;
  int *local_24;
  
  if (param_3 == 0) {
    return;
  }
  uVar7 = FUN_001aee00(param_2);
  if (*(int *)(param_1 + 8) - 1U < uVar7) {
    uVar12 = uVar7 + 4;
    iVar13 = *(int *)(param_1 + 4);
    iVar14 = uVar12 * 4;
    if (0x1fffffff < uVar12) {
      iVar14 = -1;
    }
    iVar8 = FUN_001aa840(iVar14);
    uVar3 = *(uint *)(param_1 + 8);
    if (uVar3 != 0) {
      iVar4 = *(int *)(param_1 + 4);
      uVar9 = 0;
      do {
        *(undefined4 *)(iVar8 + uVar9 * 4) = *(undefined4 *)(iVar4 + uVar9 * 4);
        uVar9 = uVar9 + 1;
      } while (uVar9 != uVar3);
    }
    if (uVar3 < uVar12) {
      puVar10 = (undefined4 *)(iVar8 + uVar3 * 4);
      do {
        *puVar10 = 0;
        puVar10 = puVar10 + 1;
      } while ((undefined4 *)(iVar8 + 0x10 + uVar7 * 4) != puVar10);
    }
    iVar4 = *(int *)(param_1 + 0xc);
                    /* try { // try from 001aef1d to 001aef21 has its CatchHandler @ 001af256 */
    iVar14 = FUN_001aa840(iVar14);
    uVar3 = *(uint *)(param_1 + 8);
    if (uVar3 != 0) {
      iVar5 = *(int *)(param_1 + 0xc);
      uVar9 = 0;
      do {
        *(undefined4 *)(iVar14 + uVar9 * 4) = *(undefined4 *)(iVar5 + uVar9 * 4);
        uVar9 = uVar9 + 1;
      } while (uVar9 != uVar3);
    }
    if (uVar3 < uVar12) {
      puVar10 = (undefined4 *)(iVar14 + uVar3 * 4);
      do {
        *puVar10 = 0;
        puVar10 = puVar10 + 1;
      } while (puVar10 != (undefined4 *)(iVar14 + 0x10 + uVar7 * 4));
    }
    *(int *)(param_1 + 4) = iVar8;
    *(int *)(param_1 + 0xc) = iVar14;
    *(uint *)(param_1 + 8) = uVar12;
    if (iVar13 != 0) {
      FUN_001ac410(iVar13);
    }
    if (iVar4 != 0) {
      FUN_001ac410(iVar4);
    }
  }
  puVar6 = PTR___pthread_key_create_0033ef3c;
  if (PTR___pthread_key_create_0033ef3c == (undefined *)0x0) {
    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;
  }
  else {
    LOCK();
    *(int *)(param_3 + 4) = *(int *)(param_3 + 4) + 1;
    UNLOCK();
  }
  piVar2 = (int *)(*(int *)(param_1 + 4) + uVar7 * 4);
  piVar15 = (int *)*piVar2;
  if (piVar15 == (int *)0x0) goto LAB_001af0c6;
  ppuVar16 = &PTR_DAT_0033d900;
  puVar11 = PTR_DAT_0033d900;
  if (PTR_DAT_0033d900 == (undefined *)0x0) {
LAB_001af0a8:
    if (puVar6 == (undefined *)0x0) goto LAB_001af170;
LAB_001af0b3:
    LOCK();
    piVar1 = piVar15 + 1;
    iVar14 = *piVar1;
    *piVar1 = *piVar1 + -1;
    UNLOCK();
  }
  else {
    do {
      uVar12 = FUN_001aee00(puVar11);
      if (uVar12 == uVar7) {
        iVar14 = *(int *)(param_1 + 4);
        iVar13 = FUN_001aee00(ppuVar16[1]);
        local_24 = (int *)(iVar14 + iVar13 * 4);
        if (*local_24 != 0) {
          iVar14 = FUN_001eac90(param_3,ppuVar16[1]);
          if (puVar6 == (undefined *)0x0) {
            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;
          }
          else {
            LOCK();
            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;
            UNLOCK();
          }
          piVar15 = (int *)*local_24;
          if (puVar6 == (undefined *)0x0) {
            iVar13 = piVar15[1];
            piVar15[1] = iVar13 + -1;
          }
          else {
            LOCK();
            piVar1 = piVar15 + 1;
            iVar13 = *piVar1;
            *piVar1 = *piVar1 + -1;
            UNLOCK();
          }
          if (iVar13 == 1) {
                    /* try { // try from 001af23c to 001af23e has its CatchHandler @ 001af25b */
            (**(code **)(*piVar15 + 4))(piVar15);
          }
LAB_001af09e:
          *local_24 = iVar14;
          piVar15 = (int *)*piVar2;
          goto LAB_001af0a8;
        }
        break;
      }
      uVar12 = FUN_001aee00(ppuVar16[1]);
      if (uVar12 == uVar7) {
        iVar14 = *(int *)(param_1 + 4);
        iVar13 = FUN_001aee00(*ppuVar16);
        local_24 = (int *)(iVar14 + iVar13 * 4);
        if (*local_24 != 0) {
          iVar14 = FUN_001f0420(param_3,*ppuVar16);
          if (puVar6 == (undefined *)0x0) {
            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;
          }
          else {
            LOCK();
            *(int *)(iVar14 + 4) = *(int *)(iVar14 + 4) + 1;
            UNLOCK();
          }
          piVar15 = (int *)*local_24;
          if (puVar6 == (undefined *)0x0) {
            iVar13 = piVar15[1];
            piVar15[1] = iVar13 + -1;
          }
          else {
            LOCK();
            piVar1 = piVar15 + 1;
            iVar13 = *piVar1;
            *piVar1 = *piVar1 + -1;
            UNLOCK();
          }
          if (iVar13 == 1) {
                    /* try { // try from 001af203 to 001af205 has its CatchHandler @ 001af247 */
            (**(code **)(*piVar15 + 4))(piVar15);
          }
          goto LAB_001af09e;
        }
        break;
      }
      ppuVar16 = ppuVar16 + 2;
      puVar11 = *ppuVar16;
    } while (puVar11 != (undefined *)0x0);
    piVar15 = (int *)*piVar2;
    if (puVar6 != (undefined *)0x0) goto LAB_001af0b3;
LAB_001af170:
    iVar14 = piVar15[1];
    piVar15[1] = iVar14 + -1;
  }
  if (iVar14 == 1) {
                    /* try { // try from 001af188 to 001af18a has its CatchHandler @ 001af24c */
    (**(code **)(*piVar15 + 4))(piVar15);
  }
LAB_001af0c6:
  *piVar2 = param_3;
  if (*(int *)(param_1 + 8) != 0) {
    uVar7 = 0;
    iVar14 = *(int *)(param_1 + 0xc);
    do {
      piVar2 = *(int **)(iVar14 + uVar7 * 4);
      if (piVar2 != (int *)0x0) {
        if (puVar6 == (undefined *)0x0) {
          iVar14 = piVar2[1];
          piVar2[1] = iVar14 + -1;
        }
        else {
          LOCK();
          piVar15 = piVar2 + 1;
          iVar14 = *piVar15;
          *piVar15 = *piVar15 + -1;
          UNLOCK();
        }
        if (iVar14 == 1) {
                    /* try { // try from 001af134 to 001af136 has its CatchHandler @ 001af251 */
          (**(code **)(*piVar2 + 4))(piVar2);
        }
        iVar14 = *(int *)(param_1 + 0xc);
        *(undefined4 *)(iVar14 + uVar7 * 4) = 0;
      }
      uVar7 = uVar7 + 1;
    } while (uVar7 < *(uint *)(param_1 + 8));
  }
  return;
}

