CUtlRBTree<VisibilityCacheEntry_t,unsigned_short,CVisibilityCacheEntryLess,CUtlMemory<UtlRBTreeNode_t<VisibilityCacheEntry_t,unsigned_short>,unsigned_short>>::RemoveRebalance
0x005fb810 · 5434 bytes · __thiscall
_ZN10CUtlRBTreeI22VisibilityCacheEntry_tt25CVisibilityCacheEntryLess10CUtlMemoryI15UtlRBTreeNode_tIS0_tEtEE15RemoveRebalanceEt
Decompiled
undefined (2 params)
/* CUtlRBTree<VisibilityCacheEntry_t, unsigned short, CVisibilityCacheEntryLess,
CUtlMemory<UtlRBTreeNode_t<VisibilityCacheEntry_t, unsigned short>, unsigned short>
>::RemoveRebalance(unsigned short) */
void __thiscall
CUtlRBTree<VisibilityCacheEntry_t,unsigned_short,CVisibilityCacheEntryLess,CUtlMemory<UtlRBTreeNode_t<VisibilityCacheEntry_t,unsigned_short>,unsigned_short>>
::RemoveRebalance(CUtlRBTree<VisibilityCacheEntry_t,unsigned_short,CVisibilityCacheEntryLess,CUtlMemory<UtlRBTreeNode_t<VisibilityCacheEntry_t,unsigned_short>,unsigned_short>>
*this,ushort param_1)
{
short sVar1;
ushort uVar2;
ushort *puVar3;
int iVar4;
ushort uVar5;
ushort uVar6;
uint uVar7;
undefined2 *puVar8;
bool bVar9;
int local_28;
uint local_24;
int local_20;
uVar2 = *(ushort *)(this + 0x10);
while (param_1 != uVar2) {
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
DAT_00f244bc = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
sVar1 = DAT_00f244be;
if (param_1 != 0xffff) {
sVar1 = *(short *)(*(int *)(this + 4) + (uint)param_1 * 0x18 + 6);
}
if (sVar1 != 1) break;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 != 0xffff) goto LAB_005fb8fd;
LAB_005fbae9:
local_24 = (uint)DAT_00f244bc;
uVar2 = DAT_00f244bc;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_005fb91b;
LAB_005fbb00:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_005fb925;
LAB_005fbb25:
if (param_1 != Links(unsigned_short)::s_Sentinel) goto LAB_005fb93e;
LAB_005fbb40:
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_005fbb52;
LAB_005fc41d:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar2 == 0xffff) goto LAB_005fc41d;
LAB_005fbb52:
puVar8 = (undefined2 *)(*(int *)(this + 4) + local_24 * 0x18);
}
uVar6 = puVar8[1];
uVar7 = (uint)uVar6;
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
DAT_00f244ba = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar6 != 0xffff) goto LAB_005fbb74;
LAB_005fc3e8:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar6 == 0xffff) goto LAB_005fc3e8;
LAB_005fbb74:
puVar8 = (undefined2 *)(*(int *)(this + 4) + uVar7 * 0x18);
}
if (puVar8[3] == 0) {
*(undefined2 *)(*(int *)(this + 4) + uVar7 * 0x18 + 6) = 1;
*(undefined2 *)(*(int *)(this + 4) + local_24 * 0x18 + 6) = 0;
RotateLeft(this,(ushort)local_24);
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 != 0xffff) goto LAB_005fc358;
LAB_005fc809:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (param_1 == 0xffff) goto LAB_005fc809;
LAB_005fc358:
puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)param_1 * 0x18);
}
uVar2 = puVar8[2];
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_005fc37a;
LAB_005fc7cd:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar2 == 0xffff) goto LAB_005fc7cd;
LAB_005fc37a:
puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)uVar2 * 0x18);
}
uVar7 = (uint)(ushort)puVar8[1];
}
uVar6 = (ushort)uVar7;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005fbb9a;
}
if (uVar6 != 0xffff) goto LAB_005fbba4;
LAB_005fc2fb:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_005fbb9a:
if (uVar6 == 0xffff) goto LAB_005fc2fb;
LAB_005fbba4:
puVar3 = (ushort *)(*(int *)(this + 4) + uVar7 * 0x18);
}
uVar5 = *puVar3;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005fbbbb;
}
if (uVar5 != 0xffff) goto LAB_005fbbc5;
LAB_005fc0db:
if (DAT_00f244be != 1) goto joined_r0x005fc13c;
LAB_005fc0eb:
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar6 == 0xffff) {
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar8 = (undefined2 *)(*(int *)(this + 4) + uVar7 * 0x18);
}
uVar5 = puVar8[1];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
DAT_00f244ba = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar5 == 0xffff) {
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)uVar5 * 0x18);
}
if (puVar8[3] != 1) goto joined_r0x005fc13c;
LAB_005fc5d0:
param_1 = uVar2;
if ((short)uVar7 == -1) {
uVar2 = *(ushort *)(this + 0x10);
}
else {
*(undefined2 *)(*(int *)(this + 4) + uVar7 * 0x18 + 6) = 0;
uVar2 = *(ushort *)(this + 0x10);
}
}
else {
LAB_005fbbbb:
if (uVar5 == 0xffff) goto LAB_005fc0db;
LAB_005fbbc5:
if (*(short *)(*(int *)(this + 4) + (uint)uVar5 * 0x18 + 6) == 1) goto LAB_005fc0eb;
joined_r0x005fc13c:
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005fbbe1;
}
if (uVar6 != 0xffff) goto LAB_005fbbeb;
LAB_005fc173:
local_28 = 0x17ffe8;
uVar7 = (uint)DAT_00f244ba;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_005fbc0c;
LAB_005fc18b:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005fbc0c;
}
if ((short)uVar7 != -1) goto LAB_005fbc16;
LAB_005fc1b6:
if (DAT_00f244be != 1) goto LAB_005fbc2a;
LAB_005fc1d0:
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar3 = &Links(unsigned_short)::s_Sentinel;
if (uVar6 != 0xffff) {
puVar3 = (ushort *)(local_28 + *(int *)(this + 4));
}
*(undefined2 *)(*(int *)(this + 4) + 6 + (uint)*puVar3 * 0x18) = 1;
*(undefined2 *)(*(int *)(this + 4) + 6 + local_28) = 0;
RotateRight(this,uVar6);
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 == 0xffff) {
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)param_1 * 0x18);
}
uVar2 = puVar8[2];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 == 0xffff) {
local_20 = 0x17ffe8;
puVar8 = &Links(unsigned_short)::s_Sentinel;
local_24._0_2_ = 0xffff;
}
else {
local_20 = (uint)uVar2 * 0x18;
puVar8 = (undefined2 *)(*(int *)(this + 4) + local_20);
local_24._0_2_ = uVar2;
}
uVar6 = puVar8[1];
local_28 = (uint)uVar6 * 0x18;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_005fc290;
LAB_005fbc45:
iVar4 = *(int *)(this + 4);
if (uVar2 != 0xffff) goto LAB_005fbc52;
LAB_005fc2be:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_005fbbe1:
if (uVar6 == 0xffff) goto LAB_005fc173;
LAB_005fbbeb:
local_28 = uVar7 * 0x18;
uVar7 = (uint)*(ushort *)(*(int *)(this + 4) + local_28 + 2);
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_005fc18b;
LAB_005fbc0c:
if ((short)uVar7 == -1) goto LAB_005fc1b6;
LAB_005fbc16:
if (*(short *)(*(int *)(this + 4) + uVar7 * 0x18 + 6) == 1) goto LAB_005fc1d0;
LAB_005fbc2a:
local_20 = (uint)uVar2 * 0x18;
local_24._0_2_ = uVar2;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_005fbc45;
LAB_005fc290:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005fbc45;
}
iVar4 = *(int *)(this + 4);
if (uVar2 == 0xffff) goto LAB_005fc2be;
LAB_005fbc52:
puVar8 = (undefined2 *)(local_20 + iVar4);
}
bVar9 = Links(unsigned_short)::s_Sentinel == '\0';
*(undefined2 *)(iVar4 + 6 + local_28) = puVar8[3];
*(undefined2 *)(*(int *)(this + 4) + 6 + local_20) = 1;
if ((bVar9) && (iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)
) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar6 == 0xffff) {
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar8 = (undefined2 *)(local_28 + *(int *)(this + 4));
}
*(undefined2 *)(*(int *)(this + 4) + 6 + (uint)(ushort)puVar8[1] * 0x18) = 1;
RotateLeft(this,(ushort)local_24);
uVar2 = *(ushort *)(this + 0x10);
param_1 = uVar2;
}
}
else {
if (param_1 == 0xffff) goto LAB_005fbae9;
LAB_005fb8fd:
uVar2 = *(ushort *)(*(int *)(this + 4) + (uint)param_1 * 0x18 + 4);
local_24 = (uint)uVar2;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_005fbb00;
LAB_005fb91b:
if (uVar2 == 0xffff) goto LAB_005fbb25;
LAB_005fb925:
if (param_1 == *(ushort *)(*(int *)(this + 4) + local_24 * 0x18)) goto LAB_005fbb40;
LAB_005fb93e:
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_005fb950;
LAB_005fc035:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar2 == 0xffff) goto LAB_005fc035;
LAB_005fb950:
puVar3 = (ushort *)(*(int *)(this + 4) + local_24 * 0x18);
}
uVar6 = *puVar3;
uVar7 = (uint)uVar6;
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar6 != 0xffff) goto LAB_005fb971;
LAB_005fbf40:
if (DAT_00f244be != 0) goto LAB_005fb988;
LAB_005fbf50:
*(undefined2 *)(*(int *)(this + 4) + uVar7 * 0x18 + 6) = 1;
*(undefined2 *)(*(int *)(this + 4) + local_24 * 0x18 + 6) = 0;
RotateRight(this,(ushort)local_24);
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 != 0xffff) goto LAB_005fbfa0;
LAB_005fc489:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (param_1 == 0xffff) goto LAB_005fc489;
LAB_005fbfa0:
puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)param_1 * 0x18);
}
uVar2 = puVar8[2];
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_005fbfc2;
LAB_005fc455:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar2 == 0xffff) goto LAB_005fc455;
LAB_005fbfc2:
puVar3 = (ushort *)(*(int *)(this + 4) + (uint)uVar2 * 0x18);
}
uVar7 = (uint)*puVar3;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_005fb997;
LAB_005fbfd9:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005fb997;
}
if ((short)uVar7 != -1) goto LAB_005fb9a1;
LAB_005fc004:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar6 == 0xffff) goto LAB_005fbf40;
LAB_005fb971:
if (*(short *)(*(int *)(this + 4) + uVar7 * 0x18 + 6) == 0) goto LAB_005fbf50;
LAB_005fb988:
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_005fbfd9;
LAB_005fb997:
if ((short)uVar7 == -1) goto LAB_005fc004;
LAB_005fb9a1:
puVar8 = (undefined2 *)(*(int *)(this + 4) + uVar7 * 0x18);
}
uVar6 = puVar8[1];
uVar5 = (ushort)uVar7;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244bc = 0xffff;
DAT_00f244ba = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005fb9b9;
}
if (uVar6 != 0xffff) goto LAB_005fb9c3;
LAB_005fbceb:
if (DAT_00f244be != 1) goto LAB_005fb9d7;
LAB_005fbd00:
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
uVar6 = Links(unsigned_short)::s_Sentinel;
if (uVar5 != 0xffff) {
uVar6 = *(ushort *)(*(int *)(this + 4) + uVar7 * 0x18);
}
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar6 == 0xffff) {
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)uVar6 * 0x18);
}
if (puVar8[3] == 1) goto LAB_005fc5d0;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_005fbd60;
LAB_005fb9df:
if (uVar5 != 0xffff) goto LAB_005fb9e9;
LAB_005fbd8b:
local_28 = 0x17ffe8;
uVar7 = (uint)Links(unsigned_short)::s_Sentinel;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_005fbda8;
LAB_005fba09:
if ((short)uVar7 != -1) goto LAB_005fba13;
LAB_005fbdd3:
if (DAT_00f244be != 1) goto LAB_005fba27;
LAB_005fbde8:
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar8 = &Links(unsigned_short)::s_Sentinel;
if (uVar5 != 0xffff) {
puVar8 = (undefined2 *)(local_28 + *(int *)(this + 4));
}
*(undefined2 *)(*(int *)(this + 4) + 6 + (uint)(ushort)puVar8[1] * 0x18) = 1;
*(undefined2 *)(*(int *)(this + 4) + 6 + local_28) = 0;
RotateLeft(this,uVar5);
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 == 0xffff) {
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)param_1 * 0x18);
}
uVar2 = puVar8[2];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 == 0xffff) {
local_20 = 0x17ffe8;
puVar3 = &Links(unsigned_short)::s_Sentinel;
local_24._0_2_ = 0xffff;
}
else {
local_20 = (uint)uVar2 * 0x18;
puVar3 = (ushort *)(*(int *)(this + 4) + local_20);
local_24._0_2_ = uVar2;
}
uVar5 = *puVar3;
local_28 = (uint)uVar5 * 0x18;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_005fba42;
LAB_005fbea8:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005fba42;
}
iVar4 = *(int *)(this + 4);
if (uVar2 != 0xffff) goto LAB_005fba4f;
LAB_005fbed6:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_005fb9b9:
if (uVar6 == 0xffff) goto LAB_005fbceb;
LAB_005fb9c3:
if (*(short *)(*(int *)(this + 4) + (uint)uVar6 * 0x18 + 6) == 1) goto LAB_005fbd00;
LAB_005fb9d7:
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_005fb9df;
LAB_005fbd60:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005fb9df;
}
if (uVar5 == 0xffff) goto LAB_005fbd8b;
LAB_005fb9e9:
local_28 = uVar7 * 0x18;
uVar7 = (uint)*(ushort *)(*(int *)(this + 4) + local_28);
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_005fba09;
LAB_005fbda8:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005fba09;
}
if ((short)uVar7 == -1) goto LAB_005fbdd3;
LAB_005fba13:
if (*(short *)(*(int *)(this + 4) + uVar7 * 0x18 + 6) == 1) goto LAB_005fbde8;
LAB_005fba27:
local_20 = (uint)uVar2 * 0x18;
local_24._0_2_ = uVar2;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_005fbea8;
LAB_005fba42:
iVar4 = *(int *)(this + 4);
if (uVar2 == 0xffff) goto LAB_005fbed6;
LAB_005fba4f:
puVar8 = (undefined2 *)(local_20 + iVar4);
}
bVar9 = Links(unsigned_short)::s_Sentinel == '\0';
*(undefined2 *)(iVar4 + 6 + local_28) = puVar8[3];
*(undefined2 *)(*(int *)(this + 4) + 6 + local_20) = 1;
if ((bVar9) && (iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0))
{
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f244ba = 0xffff;
DAT_00f244bc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
iVar4 = *(int *)(this + 4);
if (uVar5 != 0xffff) goto LAB_005fba85;
LAB_005fc5c0:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
iVar4 = *(int *)(this + 4);
if (uVar5 == 0xffff) goto LAB_005fc5c0;
LAB_005fba85:
puVar3 = (ushort *)(local_28 + iVar4);
}
*(undefined2 *)(iVar4 + 6 + (uint)*puVar3 * 0x18) = 1;
RotateRight(this,(ushort)local_24);
uVar2 = *(ushort *)(this + 0x10);
param_1 = uVar2;
}
}
*(undefined2 *)(*(int *)(this + 4) + (uint)param_1 * 0x18 + 6) = 1;
return;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
Just a Signatures{} block, ready to drop into a gamedata
file. Wire it up in your plugin however you like - SDKCall, DHooks,
raw memory ops, or anything else.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.