CUtlRBTree<CUtlMap<char_const*,CBitVec<32>,int>::Node_t,int,CUtlMap<char_const*,CBitVec<32>,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CBitVec<32>,int>::Node_t,int>,int>>::RotateLeft
0x007c2fd0 · 1188 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIPKc7CBitVecILi32EEiE6Node_tEiNS5_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS6_iEiEE10RotateLeftEi
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlMap<char const*, CBitVec<32>, int>::Node_t, int, CUtlMap<char const*, CBitVec<32>,
int>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<char const*, CBitVec<32>, int>::Node_t, int>,
int> >::RotateLeft(int) */
void __thiscall
CUtlRBTree<CUtlMap<char_const*,CBitVec<32>,int>::Node_t,int,CUtlMap<char_const*,CBitVec<32>,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CBitVec<32>,int>::Node_t,int>,int>>
::RotateLeft(CUtlRBTree<CUtlMap<char_const*,CBitVec<32>,int>::Node_t,int,CUtlMap<char_const*,CBitVec<32>,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CBitVec<32>,int>::Node_t,int>,int>>
*this,int param_1)
{
int *piVar1;
int iVar2;
int iVar3;
int iVar4;
undefined4 *puVar5;
bool bVar6;
int local_24;
int local_20;
if (Links(int)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar2 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f4de48 = -1;
DAT_00f4de4c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 != -1) goto LAB_007c2ffa;
LAB_007c31b7:
local_20 = -0x18;
iVar2 = DAT_00f4de48;
if (Links(int)::s_Sentinel != '\0') goto LAB_007c3019;
LAB_007c31d0:
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f4de48 = -1;
DAT_00f4de4c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar4 = *(int *)(this + 4);
if (iVar2 != -1) goto LAB_007c3025;
LAB_007c31fa:
local_24 = -0x18;
puVar5 = &Links(int)::s_Sentinel;
}
else {
if (param_1 == -1) goto LAB_007c31b7;
LAB_007c2ffa:
local_20 = param_1 * 0x18;
iVar2 = *(int *)(*(int *)(this + 4) + local_20 + 4);
if (Links(int)::s_Sentinel == '\0') goto LAB_007c31d0;
LAB_007c3019:
iVar4 = *(int *)(this + 4);
if (iVar2 == -1) goto LAB_007c31fa;
LAB_007c3025:
local_24 = iVar2 * 0x18;
puVar5 = (undefined4 *)(local_24 + iVar4);
}
bVar6 = Links(int)::s_Sentinel == '\0';
*(undefined4 *)(iVar4 + 4 + local_20) = *puVar5;
if ((bVar6) && (iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f4de48 = -1;
DAT_00f4de4c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar2 == -1) {
piVar1 = &Links(int)::s_Sentinel;
}
else {
piVar1 = (int *)(local_24 + *(int *)(this + 4));
}
if (*piVar1 != -1) {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f4de48 = -1;
DAT_00f4de4c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
piVar1 = &Links(int)::s_Sentinel;
if (iVar2 != -1) {
piVar1 = (int *)(local_24 + *(int *)(this + 4));
}
*(int *)(*(int *)(this + 4) + 8 + *piVar1 * 0x18) = param_1;
}
if (iVar2 != -1) {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f4de48 = -1;
DAT_00f4de4c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
puVar5 = &Links(int)::s_Sentinel;
if (param_1 != -1) {
puVar5 = (undefined4 *)(*(int *)(this + 4) + local_20);
}
*(undefined4 *)(*(int *)(this + 4) + 8 + local_24) = puVar5[2];
}
if (param_1 == *(int *)(this + 0x10)) {
*(int *)(this + 0x10) = iVar2;
goto LAB_007c311d;
}
if (Links(int)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f4de48 = -1;
DAT_00f4de4c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 != -1) goto LAB_007c30cf;
LAB_007c32f4:
iVar4 = DAT_00f4de4c;
if (Links(int)::s_Sentinel != '\0') goto LAB_007c30e0;
LAB_007c3308:
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f4de48 = -1;
DAT_00f4de4c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_007c30e0;
}
if (iVar4 != -1) goto LAB_007c30e9;
LAB_007c3332:
piVar1 = &Links(int)::s_Sentinel;
}
else {
if (param_1 == -1) goto LAB_007c32f4;
LAB_007c30cf:
iVar4 = *(int *)(local_20 + *(int *)(this + 4) + 8);
if (Links(int)::s_Sentinel == '\0') goto LAB_007c3308;
LAB_007c30e0:
if (iVar4 == -1) goto LAB_007c3332;
LAB_007c30e9:
piVar1 = (int *)(*(int *)(this + 4) + iVar4 * 0x18);
}
if (param_1 == *piVar1) {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f4de48 = -1;
DAT_00f4de4c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
puVar5 = &Links(int)::s_Sentinel;
if (param_1 != -1) {
puVar5 = (undefined4 *)(local_20 + *(int *)(this + 4));
}
*(int *)(*(int *)(this + 4) + puVar5[2] * 0x18) = iVar2;
}
else {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f4de48 = -1;
DAT_00f4de4c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
puVar5 = &Links(int)::s_Sentinel;
if (param_1 != -1) {
puVar5 = (undefined4 *)(local_20 + *(int *)(this + 4));
}
*(int *)(*(int *)(this + 4) + 4 + puVar5[2] * 0x18) = iVar2;
}
LAB_007c311d:
*(int *)(*(int *)(this + 4) + local_24) = param_1;
if (param_1 != -1) {
*(int *)(*(int *)(this + 4) + 8 + local_20) = iVar2;
}
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.