CUtlRBTree<CUtlMap<studiohdr_t_const*,StudioHdrToActivityMapEntry_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<studiohdr_t_const*,StudioHdrToActivityMapEntry_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<studiohdr_t_const*,StudioHdrToActivityMapEntry_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::RotateRight
0x000e6880 · 1341 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIPK11studiohdr_t29StudioHdrToActivityMapEntry_ttE6Node_tEtNS5_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS6_tEtEE11RotateRightEt
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlMap<studiohdr_t const*, StudioHdrToActivityMapEntry_t, unsigned short>::Node_t,
unsigned short, CUtlMap<studiohdr_t const*, StudioHdrToActivityMapEntry_t, unsigned
short>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<studiohdr_t const*,
StudioHdrToActivityMapEntry_t, unsigned short>::Node_t, unsigned short>, unsigned short>
>::RotateRight(unsigned short) */
void __thiscall
CUtlRBTree<CUtlMap<studiohdr_t_const*,StudioHdrToActivityMapEntry_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<studiohdr_t_const*,StudioHdrToActivityMapEntry_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<studiohdr_t_const*,StudioHdrToActivityMapEntry_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::RotateRight(CUtlRBTree<CUtlMap<studiohdr_t_const*,StudioHdrToActivityMapEntry_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<studiohdr_t_const*,StudioHdrToActivityMapEntry_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<studiohdr_t_const*,StudioHdrToActivityMapEntry_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*this,ushort param_1)
{
ushort uVar1;
int iVar2;
ushort uVar3;
ushort *puVar4;
undefined2 *puVar5;
int iVar6;
int local_24;
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_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 != 0xffff) goto LAB_000e68a8;
LAB_000e6ab5:
local_24 = 0x57ffa8;
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (param_1 == 0xffff) goto LAB_000e6ab5;
LAB_000e68a8:
local_24 = (uint)param_1 * 0x58;
puVar4 = (ushort *)(*(int *)(this + 4) + local_24);
}
uVar1 = *puVar4;
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar6 != 0)) {
DAT_00340726 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
iVar6 = 0x57ffa8;
puVar5 = &Links(unsigned_short)::s_Sentinel;
if (uVar1 != 0xffff) {
iVar6 = (uint)uVar1 * 0x58;
puVar5 = (undefined2 *)(*(int *)(this + 4) + iVar6);
}
*(undefined2 *)(*(int *)(this + 4) + local_24) = puVar5[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_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) {
puVar5 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar5 = (undefined2 *)(*(int *)(this + 4) + iVar6);
}
if (puVar5[1] != -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_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar5 = &Links(unsigned_short)::s_Sentinel;
if (uVar1 != 0xffff) {
puVar5 = (undefined2 *)(*(int *)(this + 4) + iVar6);
}
*(ushort *)(*(int *)(this + 4) + 4 + (uint)(ushort)puVar5[1] * 0x58) = param_1;
}
if (uVar1 != 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_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar5 = &Links(unsigned_short)::s_Sentinel;
if (param_1 != 0xffff) {
puVar5 = (undefined2 *)(*(int *)(this + 4) + local_24);
}
*(undefined2 *)(*(int *)(this + 4) + 4 + iVar6) = puVar5[2];
}
if (param_1 == *(ushort *)(this + 0x10)) {
*(ushort *)(this + 0x10) = uVar1;
goto LAB_000e6a09;
}
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_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_000e699a;
}
if (param_1 != 0xffff) goto LAB_000e69a4;
LAB_000e6c38:
uVar3 = DAT_00340728;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_000e69b6;
LAB_000e6c50:
iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar2 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_000e69b6;
}
if (uVar3 != 0xffff) goto LAB_000e69c0;
LAB_000e6c81:
puVar5 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_000e699a:
if (param_1 == 0xffff) goto LAB_000e6c38;
LAB_000e69a4:
uVar3 = *(ushort *)(local_24 + *(int *)(this + 4) + 4);
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_000e6c50;
LAB_000e69b6:
if (uVar3 == 0xffff) goto LAB_000e6c81;
LAB_000e69c0:
puVar5 = (undefined2 *)((uint)uVar3 * 0x58 + *(int *)(this + 4));
}
if (param_1 == puVar5[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_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar5 = &Links(unsigned_short)::s_Sentinel;
if (param_1 != 0xffff) {
puVar5 = (undefined2 *)(*(int *)(this + 4) + local_24);
}
*(ushort *)(*(int *)(this + 4) + 2 + (uint)(ushort)puVar5[2] * 0x58) = uVar1;
}
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_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar5 = &Links(unsigned_short)::s_Sentinel;
if (param_1 != 0xffff) {
puVar5 = (undefined2 *)(*(int *)(this + 4) + local_24);
}
*(ushort *)(*(int *)(this + 4) + (uint)(ushort)puVar5[2] * 0x58) = uVar1;
}
LAB_000e6a09:
*(ushort *)(*(int *)(this + 4) + 2 + iVar6) = param_1;
if (param_1 != 0xffff) {
*(ushort *)(*(int *)(this + 4) + 4 + local_24) = uVar1;
}
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.