CUtlRBTree<CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::Node_t,unsigned_short,CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::RotateLeft
0x001aae10 · 1297 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIN18CNetworkStringDict10CTableItemE23CNetworkStringTableItemtE6Node_tEtNS4_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS5_tEtEE10RotateLeftEt
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlMap<CNetworkStringDict::CTableItem, CNetworkStringTableItem, unsigned
short>::Node_t, unsigned short, CUtlMap<CNetworkStringDict::CTableItem, CNetworkStringTableItem,
unsigned short>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<CNetworkStringDict::CTableItem,
CNetworkStringTableItem, unsigned short>::Node_t, unsigned short>, unsigned short>
>::RotateLeft(unsigned short) */
void __thiscall
CUtlRBTree<CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::Node_t,unsigned_short,CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::RotateLeft(CUtlRBTree<CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::Node_t,unsigned_short,CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*this,ushort param_1)
{
short *psVar1;
int iVar2;
undefined2 *puVar3;
ushort uVar4;
ushort *puVar5;
ushort uVar6;
bool bVar7;
undefined *local_24;
undefined *local_20;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar2 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003415e6 = 0xffff;
DAT_003415e8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 != 0xffff) goto LAB_001aae3b;
LAB_001ab038:
local_20 = &DAT_0033ffcc;
uVar6 = DAT_003415e6;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_001aae5e;
LAB_001ab058:
iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar2 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003415e6 = 0xffff;
DAT_003415e8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
iVar2 = *(int *)(this + 4);
if (uVar6 != 0xffff) goto LAB_001aae6b;
LAB_001ab083:
local_24 = &DAT_0033ffcc;
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (param_1 == 0xffff) goto LAB_001ab038;
LAB_001aae3b:
local_20 = (undefined *)((uint)param_1 * 0x34);
uVar6 = *(ushort *)(local_20 + *(int *)(this + 4) + 2);
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_001ab058;
LAB_001aae5e:
iVar2 = *(int *)(this + 4);
if (uVar6 == 0xffff) goto LAB_001ab083;
LAB_001aae6b:
local_24 = (undefined *)((uint)uVar6 * 0x34);
puVar3 = (undefined2 *)(local_24 + iVar2);
}
bVar7 = Links(unsigned_short)::s_Sentinel == '\0';
*(undefined2 *)(local_20 + iVar2 + 2) = *puVar3;
if ((bVar7) && (iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003415e6 = 0xffff;
DAT_003415e8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar6 == 0xffff) {
psVar1 = &Links(unsigned_short)::s_Sentinel;
}
else {
psVar1 = (short *)(local_24 + *(int *)(this + 4));
}
if (*psVar1 != -1) {
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003415e6 = 0xffff;
DAT_003415e8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar5 = &Links(unsigned_short)::s_Sentinel;
if (uVar6 != 0xffff) {
puVar5 = (ushort *)(local_24 + *(int *)(this + 4));
}
*(ushort *)(*(int *)(this + 4) + 4 + (uint)*puVar5 * 0x34) = param_1;
}
if (uVar6 != 0xffff) {
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003415e6 = 0xffff;
DAT_003415e8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar3 = &Links(unsigned_short)::s_Sentinel;
if (param_1 != 0xffff) {
puVar3 = (undefined2 *)(local_20 + *(int *)(this + 4));
}
*(undefined2 *)(local_24 + *(int *)(this + 4) + 4) = puVar3[2];
}
if (param_1 == *(ushort *)(this + 0x10)) {
*(ushort *)(this + 0x10) = uVar6;
goto LAB_001aaf8c;
}
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar2 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003415e6 = 0xffff;
DAT_003415e8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 != 0xffff) goto LAB_001aaf2d;
LAB_001ab195:
uVar4 = DAT_003415e8;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_001aaf3f;
LAB_001ab1b0:
iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar2 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003415e6 = 0xffff;
DAT_003415e8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_001aaf3f;
}
if (uVar4 != 0xffff) goto LAB_001aaf49;
LAB_001ab1db:
puVar5 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (param_1 == 0xffff) goto LAB_001ab195;
LAB_001aaf2d:
uVar4 = *(ushort *)(local_20 + *(int *)(this + 4) + 4);
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_001ab1b0;
LAB_001aaf3f:
if (uVar4 == 0xffff) goto LAB_001ab1db;
LAB_001aaf49:
puVar5 = (ushort *)((uint)uVar4 * 0x34 + *(int *)(this + 4));
}
if (param_1 == *puVar5) {
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003415e6 = 0xffff;
DAT_003415e8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar3 = &Links(unsigned_short)::s_Sentinel;
if (param_1 != 0xffff) {
puVar3 = (undefined2 *)(local_20 + *(int *)(this + 4));
}
*(ushort *)(*(int *)(this + 4) + (uint)(ushort)puVar3[2] * 0x34) = uVar6;
}
else {
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003415e6 = 0xffff;
DAT_003415e8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar3 = &Links(unsigned_short)::s_Sentinel;
if (param_1 != 0xffff) {
puVar3 = (undefined2 *)(local_20 + *(int *)(this + 4));
}
*(ushort *)(*(int *)(this + 4) + 2 + (uint)(ushort)puVar3[2] * 0x34) = uVar6;
}
LAB_001aaf8c:
*(ushort *)(local_24 + *(int *)(this + 4)) = param_1;
if (param_1 != 0xffff) {
*(ushort *)(local_20 + *(int *)(this + 4) + 4) = uVar6;
}
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.