CUtlRBTree<CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::RemoveRebalance
0x007d3e50 · 2104 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapI7CHandleI11CBaseEntityEPN23CLagCompensationManager13EntityLagDataEtE6Node_tEtNS7_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS8_tEtEE15RemoveRebalanceEt
Decompiled
undefined (2 params)
/* WARNING: Type propagation algorithm not settling */
/* CUtlRBTree<CUtlMap<CHandle<CBaseEntity>, CLagCompensationManager::EntityLagData*, unsigned
short>::Node_t, unsigned short, CUtlMap<CHandle<CBaseEntity>,
CLagCompensationManager::EntityLagData*, unsigned short>::CKeyLess,
CUtlMemory<UtlRBTreeNode_t<CUtlMap<CHandle<CBaseEntity>, CLagCompensationManager::EntityLagData*,
unsigned short>::Node_t, unsigned short>, unsigned short> >::RemoveRebalance(unsigned short) */
void __thiscall
CUtlRBTree<CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::RemoveRebalance(CUtlRBTree<CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*this,ushort param_1)
{
ushort uVar1;
short sVar2;
ushort uVar3;
undefined2 *puVar4;
int iVar5;
ushort *puVar6;
uint uVar7;
uint uVar8;
ushort uVar9;
ushort uVar10;
uint local_24;
ushort local_1e;
uVar3 = *(ushort *)(this + 0x10);
LAB_007d3e68:
do {
if (param_1 == uVar3) {
local_24 = (uint)param_1;
LAB_007d3e73:
*(undefined2 *)(local_24 * 0x10 + *(int *)(this + 4) + 6) = 1;
return;
}
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar5 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar5 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f4ee72 = 0xffff;
DAT_00f4ee74 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (param_1 != 0xffff) goto LAB_007d3ea7;
LAB_007d4420:
puVar4 = &Links(unsigned_short)::s_Sentinel;
local_24 = 0xffff;
}
else {
if (param_1 == 0xffff) goto LAB_007d4420;
LAB_007d3ea7:
local_24 = (uint)param_1;
puVar4 = (undefined2 *)(local_24 * 0x10 + *(int *)(this + 4));
}
if (puVar4[3] != 1) goto LAB_007d3e73;
uVar3 = (ushort)local_24;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar5 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar5 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f4ee72 = 0xffff;
DAT_00f4ee74 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 != 0xffff) goto LAB_007d3ed3;
LAB_007d4055:
uVar8 = (uint)DAT_00f4ee74;
local_1e = DAT_00f4ee74;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_007d4070;
LAB_007d3eec:
if (local_1e != 0xffff) goto LAB_007d3ef7;
LAB_007d40c0:
if (param_1 != Links(unsigned_short)::s_Sentinel) goto LAB_007d3f08;
LAB_007d40d0:
iVar5 = Links(this,(ushort)uVar8);
uVar1 = *(ushort *)(iVar5 + 2);
uVar7 = (uint)uVar1;
iVar5 = Links(this,uVar1);
if (*(short *)(iVar5 + 6) == 0) {
*(undefined2 *)(uVar7 * 0x10 + *(int *)(this + 4) + 6) = 1;
*(undefined2 *)(uVar8 * 0x10 + *(int *)(this + 4) + 6) = 0;
RotateLeft(this,(ushort)uVar8);
iVar5 = Links(this,uVar3);
local_1e = *(ushort *)(iVar5 + 4);
uVar8 = (uint)local_1e;
iVar5 = Links(this,local_1e);
uVar1 = *(ushort *)(iVar5 + 2);
uVar7 = (uint)uVar1;
}
uVar9 = (ushort)uVar7;
puVar6 = (ushort *)Links(this,uVar9);
uVar10 = *puVar6;
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar5 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar5 != 0)) {
DAT_00f4ee72 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f4ee74 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
sVar2 = DAT_00f4ee76;
if (uVar10 != 0xffff) {
sVar2 = *(short *)((uint)uVar10 * 0x10 + *(int *)(this + 4) + 6);
}
if (sVar2 == 1) {
iVar5 = Links(this,uVar9);
iVar5 = Links(this,*(ushort *)(iVar5 + 2));
param_1 = local_1e;
if (*(short *)(iVar5 + 6) == 1) {
joined_r0x007d4504:
if (uVar1 == 0xffff) {
uVar3 = *(ushort *)(this + 0x10);
}
else {
*(undefined2 *)(uVar7 * 0x10 + *(int *)(this + 4) + 6) = 0;
uVar3 = *(ushort *)(this + 0x10);
}
goto LAB_007d3e68;
}
}
iVar5 = Links(this,uVar9);
iVar5 = Links(this,*(ushort *)(iVar5 + 2));
if (*(short *)(iVar5 + 6) == 1) {
puVar6 = (ushort *)Links(this,uVar9);
*(undefined2 *)((uint)*puVar6 * 0x10 + *(int *)(this + 4) + 6) = 1;
*(undefined2 *)(uVar7 * 0x10 + *(int *)(this + 4) + 6) = 0;
RotateRight(this,uVar9);
iVar5 = Links(this,uVar3);
uVar8 = (uint)*(ushort *)(iVar5 + 4);
iVar5 = Links(this,*(ushort *)(iVar5 + 4));
uVar7 = (uint)*(ushort *)(iVar5 + 2);
}
iVar5 = Links(this,(ushort)uVar8);
*(undefined2 *)(uVar7 * 0x10 + *(int *)(this + 4) + 6) = *(undefined2 *)(iVar5 + 6);
*(undefined2 *)(uVar8 * 0x10 + *(int *)(this + 4) + 6) = 1;
iVar5 = Links(this,(ushort)uVar7);
*(undefined2 *)((uint)*(ushort *)(iVar5 + 2) * 0x10 + *(int *)(this + 4) + 6) = 1;
RotateLeft(this,(ushort)uVar8);
param_1 = *(ushort *)(this + 0x10);
uVar3 = param_1;
goto LAB_007d3e68;
}
if (param_1 == 0xffff) goto LAB_007d4055;
LAB_007d3ed3:
local_1e = *(ushort *)(local_24 * 0x10 + *(int *)(this + 4) + 4);
uVar8 = (uint)local_1e;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_007d3eec;
LAB_007d4070:
iVar5 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar5 == 0) goto LAB_007d3eec;
DAT_00f4ee72 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f4ee74 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (local_1e == 0xffff) goto LAB_007d40c0;
LAB_007d3ef7:
if (param_1 == *(ushort *)(uVar8 * 0x10 + *(int *)(this + 4))) goto LAB_007d40d0;
LAB_007d3f08:
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar5 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar5 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f4ee72 = 0xffff;
DAT_00f4ee74 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (local_1e != 0xffff) goto LAB_007d3f22;
LAB_007d43c6:
puVar6 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (local_1e == 0xffff) goto LAB_007d43c6;
LAB_007d3f22:
puVar6 = (ushort *)(uVar8 * 0x10 + *(int *)(this + 4));
}
uVar1 = *puVar6;
uVar7 = (uint)uVar1;
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar5 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar5 != 0)) {
DAT_00f4ee72 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f4ee74 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar1 != 0xffff) goto LAB_007d3f3f;
LAB_007d4220:
uVar7 = 0xffff;
sVar2 = DAT_00f4ee76;
}
else {
if (uVar1 == 0xffff) goto LAB_007d4220;
LAB_007d3f3f:
sVar2 = *(short *)(uVar7 * 0x10 + *(int *)(this + 4) + 6);
}
param_1 = local_1e;
if (sVar2 == 0) {
*(undefined2 *)(uVar7 * 0x10 + *(int *)(this + 4) + 6) = 1;
*(undefined2 *)(uVar8 * 0x10 + *(int *)(this + 4) + 6) = 0;
RotateRight(this,(ushort)uVar8);
iVar5 = Links(this,uVar3);
param_1 = *(ushort *)(iVar5 + 4);
uVar8 = (uint)param_1;
puVar6 = (ushort *)Links(this,param_1);
uVar1 = *puVar6;
uVar7 = (uint)uVar1;
}
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar5 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar5 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f4ee72 = 0xffff;
DAT_00f4ee74 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
uVar10 = DAT_00f4ee72;
if (uVar1 != 0xffff) {
uVar10 = *(ushort *)(uVar7 * 0x10 + *(int *)(this + 4) + 2);
}
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar5 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar5 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f4ee72 = 0xffff;
DAT_00f4ee74 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
sVar2 = DAT_00f4ee76;
if (uVar10 != 0xffff) {
sVar2 = *(short *)((uint)uVar10 * 0x10 + *(int *)(this + 4) + 6);
}
uVar10 = (ushort)uVar7;
if (sVar2 == 1) {
puVar6 = (ushort *)Links(this,uVar10);
iVar5 = Links(this,*puVar6);
if (*(short *)(iVar5 + 6) != 1) goto LAB_007d3fa0;
goto joined_r0x007d4504;
}
LAB_007d3fa0:
puVar6 = (ushort *)Links(this,uVar10);
iVar5 = Links(this,*puVar6);
if (*(short *)(iVar5 + 6) == 1) {
iVar5 = Links(this,uVar10);
*(undefined2 *)((uint)*(ushort *)(iVar5 + 2) * 0x10 + *(int *)(this + 4) + 6) = 1;
*(undefined2 *)(uVar7 * 0x10 + *(int *)(this + 4) + 6) = 0;
RotateLeft(this,uVar10);
iVar5 = Links(this,uVar3);
uVar8 = (uint)*(ushort *)(iVar5 + 4);
puVar6 = (ushort *)Links(this,*(ushort *)(iVar5 + 4));
uVar7 = (uint)*puVar6;
}
iVar5 = Links(this,(ushort)uVar8);
*(undefined2 *)(uVar7 * 0x10 + *(int *)(this + 4) + 6) = *(undefined2 *)(iVar5 + 6);
*(undefined2 *)(uVar8 * 0x10 + *(int *)(this + 4) + 6) = 1;
puVar6 = (ushort *)Links(this,(ushort)uVar7);
*(undefined2 *)((uint)*puVar6 * 0x10 + *(int *)(this + 4) + 6) = 1;
RotateRight(this,(ushort)uVar8);
param_1 = *(ushort *)(this + 0x10);
uVar3 = param_1;
} while( true );
}
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.