CUtlRBTree<CUtlMap<char_const*,EventGroup,int>::Node_t,int,CUtlMap<char_const*,EventGroup,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,EventGroup,int>::Node_t,int>,int>>::RotateLeft
0x00ba19e0 · 1294 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIPKc10EventGroupiE6Node_tEiNS4_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS5_iEiEE10RotateLeftEi
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlMap<char const*, EventGroup, int>::Node_t, int, CUtlMap<char const*, EventGroup,
int>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<char const*, EventGroup, int>::Node_t, int>,
int> >::RotateLeft(int) */
void __thiscall
CUtlRBTree<CUtlMap<char_const*,EventGroup,int>::Node_t,int,CUtlMap<char_const*,EventGroup,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,EventGroup,int>::Node_t,int>,int>>
::RotateLeft(CUtlRBTree<CUtlMap<char_const*,EventGroup,int>::Node_t,int,CUtlMap<char_const*,EventGroup,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,EventGroup,int>::Node_t,int>,int>>
*this,int param_1)
{
int *piVar1;
int iVar2;
int iVar3;
int iVar4;
undefined4 *puVar5;
char local_28;
int local_24;
int local_20;
if (Links(int)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f6d208 = -1;
DAT_00f6d20c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 != -1) goto LAB_00ba1a0a;
LAB_00ba1be7:
local_24 = -0x30;
local_20 = DAT_00f6d208;
local_28 = Links(int)::s_Sentinel;
if (Links(int)::s_Sentinel != '\0') goto LAB_00ba1a2a;
LAB_00ba1c08:
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f6d208 = -1;
DAT_00f6d20c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
local_28 = Links(int)::s_Sentinel;
if (local_20 != -1) goto LAB_00ba1a34;
LAB_00ba1c30:
iVar3 = *(int *)(this + 4);
iVar4 = -0x30;
puVar5 = &Links(int)::s_Sentinel;
}
else {
if (param_1 == -1) goto LAB_00ba1be7;
LAB_00ba1a0a:
local_24 = param_1 * 0x30;
local_20 = *(int *)(local_24 + *(int *)(this + 4) + 4);
local_28 = Links(int)::s_Sentinel;
if (Links(int)::s_Sentinel == '\0') goto LAB_00ba1c08;
LAB_00ba1a2a:
if (local_20 == -1) goto LAB_00ba1c30;
LAB_00ba1a34:
iVar3 = *(int *)(this + 4);
iVar4 = local_20 * 0x30;
puVar5 = (undefined4 *)(iVar3 + iVar4);
}
Links(int)::s_Sentinel = local_28;
*(undefined4 *)(iVar3 + 4 + local_24) = *puVar5;
if ((local_28 == '\0') && (iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f6d208 = -1;
DAT_00f6d20c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (local_20 == -1) {
piVar1 = &Links(int)::s_Sentinel;
}
else {
piVar1 = (int *)(*(int *)(this + 4) + iVar4);
}
if (*piVar1 != -1) {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f6d208 = -1;
DAT_00f6d20c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
piVar1 = &Links(int)::s_Sentinel;
if (local_20 != -1) {
piVar1 = (int *)(*(int *)(this + 4) + iVar4);
}
*(int *)(*(int *)(this + 4) + 8 + *piVar1 * 0x30) = param_1;
}
if (local_20 != -1) {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f6d208 = -1;
DAT_00f6d20c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
puVar5 = &Links(int)::s_Sentinel;
if (param_1 != -1) {
puVar5 = (undefined4 *)(*(int *)(this + 4) + local_24);
}
*(undefined4 *)(*(int *)(this + 4) + 8 + iVar4) = puVar5[2];
}
if (param_1 == *(int *)(this + 0x10)) {
*(int *)(this + 0x10) = local_20;
goto LAB_00ba1b39;
}
if (Links(int)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f6d208 = -1;
DAT_00f6d20c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_00ba1adc;
}
if (param_1 != -1) goto LAB_00ba1ae5;
LAB_00ba1d4a:
iVar3 = DAT_00f6d20c;
if (Links(int)::s_Sentinel != '\0') goto LAB_00ba1af6;
LAB_00ba1d60:
iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar2 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f6d208 = -1;
DAT_00f6d20c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_00ba1af6;
}
if (iVar3 != -1) goto LAB_00ba1aff;
LAB_00ba1d90:
piVar1 = &Links(int)::s_Sentinel;
}
else {
LAB_00ba1adc:
if (param_1 == -1) goto LAB_00ba1d4a;
LAB_00ba1ae5:
iVar3 = *(int *)(local_24 + *(int *)(this + 4) + 8);
if (Links(int)::s_Sentinel == '\0') goto LAB_00ba1d60;
LAB_00ba1af6:
if (iVar3 == -1) goto LAB_00ba1d90;
LAB_00ba1aff:
piVar1 = (int *)(iVar3 * 0x30 + *(int *)(this + 4));
}
if (param_1 == *piVar1) {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f6d208 = -1;
DAT_00f6d20c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
puVar5 = &Links(int)::s_Sentinel;
if (param_1 != -1) {
puVar5 = (undefined4 *)(local_24 + *(int *)(this + 4));
}
*(int *)(*(int *)(this + 4) + puVar5[2] * 0x30) = local_20;
}
else {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f6d208 = -1;
DAT_00f6d20c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
puVar5 = &Links(int)::s_Sentinel;
if (param_1 != -1) {
puVar5 = (undefined4 *)(local_24 + *(int *)(this + 4));
}
*(int *)(*(int *)(this + 4) + 4 + puVar5[2] * 0x30) = local_20;
}
LAB_00ba1b39:
*(int *)(*(int *)(this + 4) + iVar4) = param_1;
if (param_1 != -1) {
*(int *)(*(int *)(this + 4) + 8 + local_24) = local_20;
}
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.