CUtlRBTree<CUtlMap<unsigned_int,CInstancedResponseSystem*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,CInstancedResponseSystem*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,CInstancedResponseSystem*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::Unlink
0x005c3bb0 · 988 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIjP24CInstancedResponseSystemtE6Node_tEtNS3_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS4_tEtEE6UnlinkEt
Decompiled
undefined (2 params)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* CUtlRBTree<CUtlMap<unsigned int, CInstancedResponseSystem*, unsigned short>::Node_t, unsigned
short, CUtlMap<unsigned int, CInstancedResponseSystem*, unsigned short>::CKeyLess,
CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned int, CInstancedResponseSystem*, unsigned
short>::Node_t, unsigned short>, unsigned short> >::Unlink(unsigned short) */
void __thiscall
CUtlRBTree<CUtlMap<unsigned_int,CInstancedResponseSystem*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,CInstancedResponseSystem*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,CInstancedResponseSystem*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Unlink(CUtlRBTree<CUtlMap<unsigned_int,CInstancedResponseSystem*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,CInstancedResponseSystem*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,CInstancedResponseSystem*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*this,ushort param_1)
{
short sVar1;
short *psVar2;
int iVar3;
int iVar4;
undefined2 *puVar5;
ushort *puVar6;
ushort uVar7;
ushort local_1e;
if (param_1 != 0xffff) {
psVar2 = (short *)Links(this,param_1);
uVar7 = param_1;
if ((*psVar2 != -1) && (iVar3 = Links(this,param_1), *(short *)(iVar3 + 2) != -1)) {
iVar3 = Links(this,param_1);
uVar7 = *(ushort *)(iVar3 + 2);
while( true ) {
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
Links(unsigned_short)::s_Sentinel = -1;
_DAT_00f21ca2 = 0xffff;
_DAT_00f21ca4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
sVar1 = Links(unsigned_short)::s_Sentinel;
if (uVar7 != 0xffff) {
sVar1 = *(short *)((uint)uVar7 * 0x10 + *(int *)(this + 4));
}
if (sVar1 == -1) break;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
_DAT_00f21ca2 = 0xffff;
Links(unsigned_short)::s_Sentinel = -1;
_DAT_00f21ca4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar7 != 0xffff) goto LAB_005c3c4e;
LAB_005c3efd:
puVar6 = (ushort *)&Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar7 == 0xffff) goto LAB_005c3efd;
LAB_005c3c4e:
puVar6 = (ushort *)((uint)uVar7 * 0x10 + *(int *)(this + 4));
}
uVar7 = *puVar6;
}
}
psVar2 = (short *)Links(this,uVar7);
if (*psVar2 == -1) {
iVar3 = Links(this,uVar7);
local_1e = *(ushort *)(iVar3 + 2);
}
else {
puVar6 = (ushort *)Links(this,uVar7);
local_1e = *puVar6;
}
if (local_1e != 0xffff) {
iVar3 = Links(this,uVar7);
*(undefined2 *)((uint)local_1e * 0x10 + *(int *)(this + 4) + 4) = *(undefined2 *)(iVar3 + 4);
}
if (uVar7 == *(ushort *)(this + 0x10)) {
*(ushort *)(this + 0x10) = local_1e;
}
else {
iVar3 = Links(this,uVar7);
puVar6 = (ushort *)Links(this,*(ushort *)(iVar3 + 4));
if (uVar7 == *puVar6) {
iVar3 = Links(this,uVar7);
*(ushort *)((uint)*(ushort *)(iVar3 + 4) * 0x10 + *(int *)(this + 4)) = local_1e;
}
else {
iVar3 = Links(this,uVar7);
*(ushort *)((uint)*(ushort *)(iVar3 + 4) * 0x10 + *(int *)(this + 4) + 2) = local_1e;
}
}
iVar3 = Links(this,uVar7);
sVar1 = *(short *)(iVar3 + 6);
if (uVar7 != param_1) {
iVar4 = Links(this,param_1);
iVar3 = (uint)uVar7 * 0x10;
*(undefined2 *)(*(int *)(this + 4) + 4 + iVar3) = *(undefined2 *)(iVar4 + 4);
iVar4 = Links(this,param_1);
*(undefined2 *)(*(int *)(this + 4) + 2 + iVar3) = *(undefined2 *)(iVar4 + 2);
puVar5 = (undefined2 *)Links(this,param_1);
*(undefined2 *)(*(int *)(this + 4) + iVar3) = *puVar5;
if (param_1 == *(ushort *)(this + 0x10)) {
*(ushort *)(this + 0x10) = uVar7;
}
else {
iVar4 = Links(this,param_1);
puVar6 = (ushort *)Links(this,*(ushort *)(iVar4 + 4));
if (param_1 == *puVar6) {
iVar4 = Links(this,param_1);
*(ushort *)((uint)*(ushort *)(iVar4 + 4) * 0x10 + *(int *)(this + 4)) = uVar7;
}
else {
iVar4 = Links(this,param_1);
*(ushort *)((uint)*(ushort *)(iVar4 + 4) * 0x10 + *(int *)(this + 4) + 2) = uVar7;
}
}
psVar2 = (short *)Links(this,uVar7);
if (*psVar2 != -1) {
puVar6 = (ushort *)Links(this,uVar7);
*(ushort *)((uint)*puVar6 * 0x10 + *(int *)(this + 4) + 4) = uVar7;
}
iVar4 = Links(this,uVar7);
if (*(short *)(iVar4 + 2) != -1) {
iVar4 = Links(this,uVar7);
*(ushort *)((uint)*(ushort *)(iVar4 + 2) * 0x10 + *(int *)(this + 4) + 4) = uVar7;
}
iVar4 = Links(this,param_1);
*(undefined2 *)(*(int *)(this + 4) + 6 + iVar3) = *(undefined2 *)(iVar4 + 6);
}
if ((local_1e != 0xffff) && (sVar1 == 1)) {
RemoveRebalance(this,local_1e);
return;
}
}
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.