CUtlRBTree<CUtlMap<void*,CThreadSafeMultiMemoryPool::RawAllocation_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<void*,CThreadSafeMultiMemoryPool::RawAllocation_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<void*,CThreadSafeMultiMemoryPool::RawAllocation_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::RemoveRebalance
0x00077a10 · 5434 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIPvN26CThreadSafeMultiMemoryPool15RawAllocation_tEtE6Node_tEtNS4_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS5_tEtEE15RemoveRebalanceEt
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlMap<void*, CThreadSafeMultiMemoryPool::RawAllocation_t, unsigned short>::Node_t,
unsigned short, CUtlMap<void*, CThreadSafeMultiMemoryPool::RawAllocation_t, unsigned
short>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<void*,
CThreadSafeMultiMemoryPool::RawAllocation_t, unsigned short>::Node_t, unsigned short>, unsigned
short> >::RemoveRebalance(unsigned short) */
void __thiscall
CUtlRBTree<CUtlMap<void*,CThreadSafeMultiMemoryPool::RawAllocation_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<void*,CThreadSafeMultiMemoryPool::RawAllocation_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<void*,CThreadSafeMultiMemoryPool::RawAllocation_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::RemoveRebalance(CUtlRBTree<CUtlMap<void*,CThreadSafeMultiMemoryPool::RawAllocation_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<void*,CThreadSafeMultiMemoryPool::RawAllocation_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<void*,CThreadSafeMultiMemoryPool::RawAllocation_t,unsigned_short>::Node_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_000d2864 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2862 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
sVar1 = DAT_000d2866;
if (param_1 != 0xffff) {
sVar1 = *(short *)(*(int *)(this + 4) + (uint)param_1 * 0x14 + 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_000d2862 = 0xffff;
DAT_000d2864 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 != 0xffff) goto LAB_00077afd;
LAB_00077ce9:
local_24 = (uint)DAT_000d2864;
uVar2 = DAT_000d2864;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00077b1b;
LAB_00077d00:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2862 = 0xffff;
DAT_000d2864 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_00077b25;
LAB_00077d25:
if (param_1 != Links(unsigned_short)::s_Sentinel) goto LAB_00077b3e;
LAB_00077d40:
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_000d2862 = 0xffff;
DAT_000d2864 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_00077d52;
LAB_0007861d:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar2 == 0xffff) goto LAB_0007861d;
LAB_00077d52:
puVar8 = (undefined2 *)(*(int *)(this + 4) + local_24 * 0x14);
}
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_000d2862 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2864 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar6 != 0xffff) goto LAB_00077d74;
LAB_000785e8:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar6 == 0xffff) goto LAB_000785e8;
LAB_00077d74:
puVar8 = (undefined2 *)(*(int *)(this + 4) + uVar7 * 0x14);
}
if (puVar8[3] == 0) {
*(undefined2 *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) = 1;
*(undefined2 *)(*(int *)(this + 4) + local_24 * 0x14 + 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_000d2862 = 0xffff;
DAT_000d2864 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 != 0xffff) goto LAB_00078558;
LAB_00078a09:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (param_1 == 0xffff) goto LAB_00078a09;
LAB_00078558:
puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)param_1 * 0x14);
}
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_000d2862 = 0xffff;
DAT_000d2864 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_0007857a;
LAB_000789cd:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar2 == 0xffff) goto LAB_000789cd;
LAB_0007857a:
puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)uVar2 * 0x14);
}
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_000d2862 = 0xffff;
DAT_000d2864 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00077d9a;
}
if (uVar6 != 0xffff) goto LAB_00077da4;
LAB_000784fb:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_00077d9a:
if (uVar6 == 0xffff) goto LAB_000784fb;
LAB_00077da4:
puVar3 = (ushort *)(*(int *)(this + 4) + uVar7 * 0x14);
}
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_000d2862 = 0xffff;
DAT_000d2864 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00077dbb;
}
if (uVar5 != 0xffff) goto LAB_00077dc5;
LAB_000782db:
if (DAT_000d2866 != 1) goto joined_r0x0007833c;
LAB_000782eb:
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_000d2862 = 0xffff;
DAT_000d2864 = 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 * 0x14);
}
uVar5 = puVar8[1];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
DAT_000d2862 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2864 = 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 * 0x14);
}
if (puVar8[3] != 1) goto joined_r0x0007833c;
LAB_000787d0:
param_1 = uVar2;
if ((short)uVar7 == -1) {
uVar2 = *(ushort *)(this + 0x10);
}
else {
*(undefined2 *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) = 0;
uVar2 = *(ushort *)(this + 0x10);
}
}
else {
LAB_00077dbb:
if (uVar5 == 0xffff) goto LAB_000782db;
LAB_00077dc5:
if (*(short *)(*(int *)(this + 4) + (uint)uVar5 * 0x14 + 6) == 1) goto LAB_000782eb;
joined_r0x0007833c:
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_000d2862 = 0xffff;
DAT_000d2864 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00077de1;
}
if (uVar6 != 0xffff) goto LAB_00077deb;
LAB_00078373:
local_28 = 0x13ffec;
uVar7 = (uint)DAT_000d2862;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00077e0c;
LAB_0007838b:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2862 = 0xffff;
DAT_000d2864 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00077e0c;
}
if ((short)uVar7 != -1) goto LAB_00077e16;
LAB_000783b6:
if (DAT_000d2866 != 1) goto LAB_00077e2a;
LAB_000783d0:
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_000d2862 = 0xffff;
DAT_000d2864 = 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 * 0x14) = 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_000d2862 = 0xffff;
DAT_000d2864 = 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 * 0x14);
}
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_000d2862 = 0xffff;
DAT_000d2864 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 == 0xffff) {
local_20 = 0x13ffec;
puVar8 = &Links(unsigned_short)::s_Sentinel;
local_24._0_2_ = 0xffff;
}
else {
local_20 = (uint)uVar2 * 0x14;
puVar8 = (undefined2 *)(*(int *)(this + 4) + local_20);
local_24._0_2_ = uVar2;
}
uVar6 = puVar8[1];
local_28 = (uint)uVar6 * 0x14;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00078490;
LAB_00077e45:
iVar4 = *(int *)(this + 4);
if (uVar2 != 0xffff) goto LAB_00077e52;
LAB_000784be:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_00077de1:
if (uVar6 == 0xffff) goto LAB_00078373;
LAB_00077deb:
local_28 = uVar7 * 0x14;
uVar7 = (uint)*(ushort *)(*(int *)(this + 4) + local_28 + 2);
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_0007838b;
LAB_00077e0c:
if ((short)uVar7 == -1) goto LAB_000783b6;
LAB_00077e16:
if (*(short *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) == 1) goto LAB_000783d0;
LAB_00077e2a:
local_20 = (uint)uVar2 * 0x14;
local_24._0_2_ = uVar2;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00077e45;
LAB_00078490:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2862 = 0xffff;
DAT_000d2864 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00077e45;
}
iVar4 = *(int *)(this + 4);
if (uVar2 == 0xffff) goto LAB_000784be;
LAB_00077e52:
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_000d2862 = 0xffff;
DAT_000d2864 = 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] * 0x14) = 1;
RotateLeft(this,(ushort)local_24);
uVar2 = *(ushort *)(this + 0x10);
param_1 = uVar2;
}
}
else {
if (param_1 == 0xffff) goto LAB_00077ce9;
LAB_00077afd:
uVar2 = *(ushort *)(*(int *)(this + 4) + (uint)param_1 * 0x14 + 4);
local_24 = (uint)uVar2;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00077d00;
LAB_00077b1b:
if (uVar2 == 0xffff) goto LAB_00077d25;
LAB_00077b25:
if (param_1 == *(ushort *)(*(int *)(this + 4) + local_24 * 0x14)) goto LAB_00077d40;
LAB_00077b3e:
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_000d2862 = 0xffff;
DAT_000d2864 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_00077b50;
LAB_00078235:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar2 == 0xffff) goto LAB_00078235;
LAB_00077b50:
puVar3 = (ushort *)(*(int *)(this + 4) + local_24 * 0x14);
}
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_000d2862 = 0xffff;
DAT_000d2864 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar6 != 0xffff) goto LAB_00077b71;
LAB_00078140:
if (DAT_000d2866 != 0) goto LAB_00077b88;
LAB_00078150:
*(undefined2 *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) = 1;
*(undefined2 *)(*(int *)(this + 4) + local_24 * 0x14 + 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_000d2862 = 0xffff;
DAT_000d2864 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 != 0xffff) goto LAB_000781a0;
LAB_00078689:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (param_1 == 0xffff) goto LAB_00078689;
LAB_000781a0:
puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)param_1 * 0x14);
}
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_000d2862 = 0xffff;
DAT_000d2864 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_000781c2;
LAB_00078655:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar2 == 0xffff) goto LAB_00078655;
LAB_000781c2:
puVar3 = (ushort *)(*(int *)(this + 4) + (uint)uVar2 * 0x14);
}
uVar7 = (uint)*puVar3;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00077b97;
LAB_000781d9:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2862 = 0xffff;
DAT_000d2864 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00077b97;
}
if ((short)uVar7 != -1) goto LAB_00077ba1;
LAB_00078204:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar6 == 0xffff) goto LAB_00078140;
LAB_00077b71:
if (*(short *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) == 0) goto LAB_00078150;
LAB_00077b88:
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_000781d9;
LAB_00077b97:
if ((short)uVar7 == -1) goto LAB_00078204;
LAB_00077ba1:
puVar8 = (undefined2 *)(*(int *)(this + 4) + uVar7 * 0x14);
}
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_000d2864 = 0xffff;
DAT_000d2862 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00077bb9;
}
if (uVar6 != 0xffff) goto LAB_00077bc3;
LAB_00077eeb:
if (DAT_000d2866 != 1) goto LAB_00077bd7;
LAB_00077f00:
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_000d2862 = 0xffff;
DAT_000d2864 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
uVar6 = Links(unsigned_short)::s_Sentinel;
if (uVar5 != 0xffff) {
uVar6 = *(ushort *)(*(int *)(this + 4) + uVar7 * 0x14);
}
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_000d2862 = 0xffff;
DAT_000d2864 = 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 * 0x14);
}
if (puVar8[3] == 1) goto LAB_000787d0;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00077f60;
LAB_00077bdf:
if (uVar5 != 0xffff) goto LAB_00077be9;
LAB_00077f8b:
local_28 = 0x13ffec;
uVar7 = (uint)Links(unsigned_short)::s_Sentinel;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00077fa8;
LAB_00077c09:
if ((short)uVar7 != -1) goto LAB_00077c13;
LAB_00077fd3:
if (DAT_000d2866 != 1) goto LAB_00077c27;
LAB_00077fe8:
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_000d2862 = 0xffff;
DAT_000d2864 = 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] * 0x14) = 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_000d2862 = 0xffff;
DAT_000d2864 = 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 * 0x14);
}
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_000d2862 = 0xffff;
DAT_000d2864 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 == 0xffff) {
local_20 = 0x13ffec;
puVar3 = &Links(unsigned_short)::s_Sentinel;
local_24._0_2_ = 0xffff;
}
else {
local_20 = (uint)uVar2 * 0x14;
puVar3 = (ushort *)(*(int *)(this + 4) + local_20);
local_24._0_2_ = uVar2;
}
uVar5 = *puVar3;
local_28 = (uint)uVar5 * 0x14;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00077c42;
LAB_000780a8:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2862 = 0xffff;
DAT_000d2864 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00077c42;
}
iVar4 = *(int *)(this + 4);
if (uVar2 != 0xffff) goto LAB_00077c4f;
LAB_000780d6:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_00077bb9:
if (uVar6 == 0xffff) goto LAB_00077eeb;
LAB_00077bc3:
if (*(short *)(*(int *)(this + 4) + (uint)uVar6 * 0x14 + 6) == 1) goto LAB_00077f00;
LAB_00077bd7:
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00077bdf;
LAB_00077f60:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2862 = 0xffff;
DAT_000d2864 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00077bdf;
}
if (uVar5 == 0xffff) goto LAB_00077f8b;
LAB_00077be9:
local_28 = uVar7 * 0x14;
uVar7 = (uint)*(ushort *)(*(int *)(this + 4) + local_28);
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00077c09;
LAB_00077fa8:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2862 = 0xffff;
DAT_000d2864 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00077c09;
}
if ((short)uVar7 == -1) goto LAB_00077fd3;
LAB_00077c13:
if (*(short *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) == 1) goto LAB_00077fe8;
LAB_00077c27:
local_20 = (uint)uVar2 * 0x14;
local_24._0_2_ = uVar2;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_000780a8;
LAB_00077c42:
iVar4 = *(int *)(this + 4);
if (uVar2 == 0xffff) goto LAB_000780d6;
LAB_00077c4f:
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_000d2862 = 0xffff;
DAT_000d2864 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
iVar4 = *(int *)(this + 4);
if (uVar5 != 0xffff) goto LAB_00077c85;
LAB_000787c0:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
iVar4 = *(int *)(this + 4);
if (uVar5 == 0xffff) goto LAB_000787c0;
LAB_00077c85:
puVar3 = (ushort *)(local_28 + iVar4);
}
*(undefined2 *)(iVar4 + 6 + (uint)*puVar3 * 0x14) = 1;
RotateRight(this,(ushort)local_24);
uVar2 = *(ushort *)(this + 0x10);
param_1 = uVar2;
}
}
*(undefined2 *)(*(int *)(this + 4) + (uint)param_1 * 0x14 + 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.