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>>::InsertRebalance
0x007d4f00 · 1865 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapI7CHandleI11CBaseEntityEPN23CLagCompensationManager13EntityLagDataEtE6Node_tEtNS7_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS8_tEtEE15InsertRebalanceEt
Decompiled
undefined (2 params)
/* 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> >::InsertRebalance(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>>
::InsertRebalance(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;
ushort uVar2;
ushort uVar3;
short sVar4;
undefined2 *puVar5;
int iVar6;
ushort *puVar7;
uint uVar8;
uint uVar9;
uint uVar10;
ushort local_1e;
local_1e = param_1;
do {
uVar1 = *(ushort *)(this + 0x10);
if (local_1e == uVar1) {
LAB_007d4f6f:
*(undefined2 *)((uint)uVar1 * 0x10 + *(int *)(this + 4) + 6) = 1;
return;
}
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 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_007d52c1;
LAB_007d4f3f:
puVar5 = (undefined2 *)((uint)local_1e * 0x10 + *(int *)(this + 4));
}
else {
if (local_1e != 0xffff) goto LAB_007d4f3f;
LAB_007d52c1:
puVar5 = &Links(unsigned_short)::s_Sentinel;
}
uVar1 = puVar5[2];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar6 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f4ee72 = 0xffff;
DAT_00f4ee74 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar1 == 0xffff) goto LAB_007d5288;
LAB_007d4f5b:
puVar5 = (undefined2 *)((uint)uVar1 * 0x10 + *(int *)(this + 4));
}
else {
if (uVar1 != 0xffff) goto LAB_007d4f5b;
LAB_007d5288:
puVar5 = &Links(unsigned_short)::s_Sentinel;
}
if (puVar5[3] != 0) {
uVar1 = *(ushort *)(this + 0x10);
goto LAB_007d4f6f;
}
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 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_007d5229;
LAB_007d4fad:
puVar5 = (undefined2 *)((uint)local_1e * 0x10 + *(int *)(this + 4));
}
else {
if (local_1e != 0xffff) goto LAB_007d4fad;
LAB_007d5229:
puVar5 = &Links(unsigned_short)::s_Sentinel;
}
uVar1 = puVar5[2];
uVar10 = (uint)uVar1;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f4ee72 = 0xffff;
DAT_00f4ee74 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) goto LAB_007d51ed;
LAB_007d4fcf:
puVar5 = (undefined2 *)(uVar10 * 0x10 + *(int *)(this + 4));
}
else {
if (uVar1 != 0xffff) goto LAB_007d4fcf;
LAB_007d51ed:
puVar5 = &Links(unsigned_short)::s_Sentinel;
}
uVar2 = puVar5[2];
uVar9 = (uint)uVar2;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f4ee72 = 0xffff;
DAT_00f4ee74 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_007d4fe3;
}
if (uVar1 == 0xffff) goto LAB_007d51bb;
LAB_007d4fed:
puVar5 = (undefined2 *)(uVar10 * 0x10 + *(int *)(this + 4));
}
else {
LAB_007d4fe3:
if (uVar1 != 0xffff) goto LAB_007d4fed;
LAB_007d51bb:
puVar5 = &Links(unsigned_short)::s_Sentinel;
}
uVar3 = puVar5[2];
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f4ee72 = 0xffff;
DAT_00f4ee74 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_007d5001;
}
if (uVar3 == 0xffff) goto LAB_007d5181;
LAB_007d500b:
puVar7 = (ushort *)((uint)uVar3 * 0x10 + *(int *)(this + 4));
}
else {
LAB_007d5001:
if (uVar3 != 0xffff) goto LAB_007d500b;
LAB_007d5181:
puVar7 = &Links(unsigned_short)::s_Sentinel;
}
if (uVar1 == *puVar7) {
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f4ee72 = 0xffff;
DAT_00f4ee74 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_007d5025;
}
if (uVar2 == 0xffff) goto LAB_007d53d3;
LAB_007d502f:
puVar5 = (undefined2 *)(uVar9 * 0x10 + *(int *)(this + 4));
}
else {
LAB_007d5025:
if (uVar2 != 0xffff) goto LAB_007d502f;
LAB_007d53d3:
puVar5 = &Links(unsigned_short)::s_Sentinel;
}
uVar3 = puVar5[1];
uVar8 = (uint)uVar3;
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar6 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f4ee72 = 0xffff;
DAT_00f4ee74 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
sVar4 = DAT_00f4ee76;
if (uVar3 != 0xffff) {
sVar4 = *(short *)(uVar8 * 0x10 + *(int *)(this + 4) + 6);
}
if (sVar4 == 0) {
LAB_007d5062:
*(undefined2 *)(uVar10 * 0x10 + *(int *)(this + 4) + 6) = 1;
*(undefined2 *)(uVar8 * 0x10 + *(int *)(this + 4) + 6) = 1;
*(undefined2 *)(uVar9 * 0x10 + *(int *)(this + 4) + 6) = 0;
local_1e = uVar2;
}
else {
iVar6 = Links(this,local_1e);
iVar6 = Links(this,*(ushort *)(iVar6 + 4));
if (local_1e == *(ushort *)(iVar6 + 2)) {
RotateLeft(this,uVar1);
iVar6 = Links(this,uVar1);
uVar10 = (uint)*(ushort *)(iVar6 + 4);
iVar6 = Links(this,*(ushort *)(iVar6 + 4));
uVar9 = (uint)*(ushort *)(iVar6 + 4);
local_1e = uVar1;
}
*(undefined2 *)(uVar10 * 0x10 + *(int *)(this + 4) + 6) = 1;
*(undefined2 *)(uVar9 * 0x10 + *(int *)(this + 4) + 6) = 0;
RotateRight(this,(ushort)uVar9);
}
}
else {
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f4ee72 = 0xffff;
DAT_00f4ee74 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_007d50a8;
}
if (uVar2 == 0xffff) goto LAB_007d547b;
LAB_007d50b2:
puVar7 = (ushort *)(uVar9 * 0x10 + *(int *)(this + 4));
}
else {
LAB_007d50a8:
if (uVar2 != 0xffff) goto LAB_007d50b2;
LAB_007d547b:
puVar7 = &Links(unsigned_short)::s_Sentinel;
}
uVar3 = *puVar7;
uVar8 = (uint)uVar3;
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar6 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f4ee72 = 0xffff;
DAT_00f4ee74 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar3 == 0xffff) goto LAB_007d5440;
LAB_007d50d0:
puVar5 = (undefined2 *)(uVar8 * 0x10 + *(int *)(this + 4));
}
else {
if (uVar3 != 0xffff) goto LAB_007d50d0;
LAB_007d5440:
puVar5 = &Links(unsigned_short)::s_Sentinel;
}
if (puVar5[3] == 0) goto LAB_007d5062;
iVar6 = Links(this,local_1e);
puVar7 = (ushort *)Links(this,*(ushort *)(iVar6 + 4));
if (local_1e == *puVar7) {
RotateRight(this,uVar1);
iVar6 = Links(this,uVar1);
uVar10 = (uint)*(ushort *)(iVar6 + 4);
iVar6 = Links(this,*(ushort *)(iVar6 + 4));
uVar9 = (uint)*(ushort *)(iVar6 + 4);
local_1e = uVar1;
}
*(undefined2 *)(uVar10 * 0x10 + *(int *)(this + 4) + 6) = 1;
*(undefined2 *)(uVar9 * 0x10 + *(int *)(this + 4) + 6) = 0;
RotateLeft(this,(ushort)uVar9);
}
} 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.