CUtlRBTree<CBreakModelsPrecached::breakable_precache_t,unsigned_short,bool(*)(CBreakModelsPrecached::breakable_precache_t_const&,CBreakModelsPrecached::breakable_precache_t_const&),CUtlMemory<UtlRBTreeNode_t<CBreakModelsPrecached::breakable_precache_t,unsigned_short>,unsigned_short>>::RotateRight
0x008016d0 · 1303 bytes · __thiscall
_ZN10CUtlRBTreeIN21CBreakModelsPrecached20breakable_precache_tEtPFbRKS1_S3_E10CUtlMemoryI15UtlRBTreeNode_tIS1_tEtEE11RotateRightEt
Decompiled
undefined (2 params)
/* CUtlRBTree<CBreakModelsPrecached::breakable_precache_t, unsigned short, bool
(*)(CBreakModelsPrecached::breakable_precache_t const&,
CBreakModelsPrecached::breakable_precache_t const&),
CUtlMemory<UtlRBTreeNode_t<CBreakModelsPrecached::breakable_precache_t, unsigned short>, unsigned
short> >::RotateRight(unsigned short) */
void __thiscall
CUtlRBTree<CBreakModelsPrecached::breakable_precache_t,unsigned_short,bool(*)(CBreakModelsPrecached::breakable_precache_t_const&,CBreakModelsPrecached::breakable_precache_t_const&),CUtlMemory<UtlRBTreeNode_t<CBreakModelsPrecached::breakable_precache_t,unsigned_short>,unsigned_short>>
::RotateRight(CUtlRBTree<CBreakModelsPrecached::breakable_precache_t,unsigned_short,bool(*)(CBreakModelsPrecached::breakable_precache_t_const&,CBreakModelsPrecached::breakable_precache_t_const&),CUtlMemory<UtlRBTreeNode_t<CBreakModelsPrecached::breakable_precache_t,unsigned_short>,unsigned_short>>
*this,ushort param_1)
{
ushort uVar1;
int iVar2;
ushort *puVar3;
undefined2 *puVar4;
int iVar5;
ushort uVar6;
int 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_00f5515a = 0xffff;
DAT_00f5515c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 != 0xffff) goto LAB_008016f8;
LAB_008018e5:
local_24 = 0xffff0;
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (param_1 == 0xffff) goto LAB_008018e5;
LAB_008016f8:
local_24 = (uint)param_1 * 0x10;
puVar3 = (ushort *)(local_24 + *(int *)(this + 4));
}
uVar1 = *puVar3;
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar5 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar5 != 0)) {
DAT_00f5515a = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f5515c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
iVar5 = 0xffff0;
puVar4 = &Links(unsigned_short)::s_Sentinel;
if (uVar1 != 0xffff) {
iVar5 = (uint)uVar1 * 0x10;
puVar4 = (undefined2 *)(*(int *)(this + 4) + iVar5);
}
*(undefined2 *)(*(int *)(this + 4) + local_24) = puVar4[1];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
DAT_00f5515a = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f5515c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar4 = (undefined2 *)(*(int *)(this + 4) + iVar5);
}
if (puVar4[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_00f5515a = 0xffff;
DAT_00f5515c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar4 = &Links(unsigned_short)::s_Sentinel;
if (uVar1 != 0xffff) {
puVar4 = (undefined2 *)(*(int *)(this + 4) + iVar5);
}
*(ushort *)(*(int *)(this + 4) + 4 + (uint)(ushort)puVar4[1] * 0x10) = param_1;
}
if (uVar1 != 0xffff) {
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
DAT_00f5515a = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f5515c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar4 = &Links(unsigned_short)::s_Sentinel;
if (param_1 != 0xffff) {
puVar4 = (undefined2 *)(*(int *)(this + 4) + local_24);
}
*(undefined2 *)(*(int *)(this + 4) + 4 + iVar5) = puVar4[2];
}
if (param_1 == *(ushort *)(this + 0x10)) {
*(ushort *)(this + 0x10) = uVar1;
goto LAB_0080183f;
}
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar2 != 0) {
DAT_00f5515a = 0xffff;
DAT_00f5515c = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_008017d9;
}
if (param_1 != 0xffff) goto LAB_008017e3;
LAB_00801a60:
uVar6 = DAT_00f5515c;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_008017f7;
LAB_00801a78:
iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar2 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f5515a = 0xffff;
DAT_00f5515c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_008017f7;
}
if (uVar6 != 0xffff) goto LAB_00801804;
LAB_00801aa6:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_008017d9:
if (param_1 == 0xffff) goto LAB_00801a60;
LAB_008017e3:
uVar6 = *(ushort *)(local_24 + *(int *)(this + 4) + 4);
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00801a78;
LAB_008017f7:
if (uVar6 == 0xffff) goto LAB_00801aa6;
LAB_00801804:
puVar4 = (undefined2 *)((uint)uVar6 * 0x10 + *(int *)(this + 4));
}
if (param_1 == puVar4[1]) {
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
DAT_00f5515a = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f5515c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar4 = &Links(unsigned_short)::s_Sentinel;
if (param_1 != 0xffff) {
puVar4 = (undefined2 *)(local_24 + *(int *)(this + 4));
}
*(ushort *)(*(int *)(this + 4) + 2 + (uint)(ushort)puVar4[2] * 0x10) = uVar1;
}
else {
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
DAT_00f5515a = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f5515c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar4 = &Links(unsigned_short)::s_Sentinel;
if (param_1 != 0xffff) {
puVar4 = (undefined2 *)(local_24 + *(int *)(this + 4));
}
*(ushort *)(*(int *)(this + 4) + (uint)(ushort)puVar4[2] * 0x10) = uVar1;
}
LAB_0080183f:
*(ushort *)(*(int *)(this + 4) + 2 + iVar5) = 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.