CUtlRBTree<CDmxSerializationDictionary::DmxElementInfo_t,int,bool(*)(CDmxSerializationDictionary::DmxElementInfo_t_const&,CDmxSerializationDictionary::DmxElementInfo_t_const&),CUtlMemory<UtlRBTreeNode_t<CDmxSerializationDictionary::DmxElementInfo_t,int>,int>>::RotateRight
0x00bef620 · 1237 bytes · __thiscall
_ZN10CUtlRBTreeIN27CDmxSerializationDictionary16DmxElementInfo_tEiPFbRKS1_S3_E10CUtlMemoryI15UtlRBTreeNode_tIS1_iEiEE11RotateRightEi
Decompiled
undefined (2 params)
/* CUtlRBTree<CDmxSerializationDictionary::DmxElementInfo_t, int, bool
(*)(CDmxSerializationDictionary::DmxElementInfo_t const&,
CDmxSerializationDictionary::DmxElementInfo_t const&),
CUtlMemory<UtlRBTreeNode_t<CDmxSerializationDictionary::DmxElementInfo_t, int>, int>
>::RotateRight(int) */
void __thiscall
CUtlRBTree<CDmxSerializationDictionary::DmxElementInfo_t,int,bool(*)(CDmxSerializationDictionary::DmxElementInfo_t_const&,CDmxSerializationDictionary::DmxElementInfo_t_const&),CUtlMemory<UtlRBTreeNode_t<CDmxSerializationDictionary::DmxElementInfo_t,int>,int>>
::RotateRight(CUtlRBTree<CDmxSerializationDictionary::DmxElementInfo_t,int,bool(*)(CDmxSerializationDictionary::DmxElementInfo_t_const&,CDmxSerializationDictionary::DmxElementInfo_t_const&),CUtlMemory<UtlRBTreeNode_t<CDmxSerializationDictionary::DmxElementInfo_t,int>,int>>
*this,int param_1)
{
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int *piVar5;
undefined4 *puVar6;
int local_24;
if (Links(int)::s_Sentinel == '\0') {
iVar1 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar1 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = 0xffffffff;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 != -1) goto LAB_00bef647;
LAB_00bef81c:
local_24 = -0x18;
piVar5 = &Links(int)::s_Sentinel;
}
else {
if (param_1 == -1) goto LAB_00bef81c;
LAB_00bef647:
local_24 = param_1 * 0x18;
piVar5 = (int *)(*(int *)(this + 4) + local_24);
}
iVar1 = *piVar5;
if ((Links(int)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = 0xffffffff;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar4 = -0x18;
puVar6 = &Links(int)::s_Sentinel;
if (iVar1 != -1) {
iVar4 = iVar1 * 0x18;
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar4);
}
*(undefined4 *)(*(int *)(this + 4) + local_24) = puVar6[1];
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = 0xffffffff;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar1 == -1) {
puVar6 = &Links(int)::s_Sentinel;
}
else {
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar4);
}
if (puVar6[1] != -1) {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = 0xffffffff;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
puVar6 = &Links(int)::s_Sentinel;
if (iVar1 != -1) {
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar4);
}
*(int *)(*(int *)(this + 4) + 8 + puVar6[1] * 0x18) = param_1;
}
if (iVar1 != -1) {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = 0xffffffff;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
puVar6 = &Links(int)::s_Sentinel;
if (param_1 != -1) {
puVar6 = (undefined4 *)(*(int *)(this + 4) + local_24);
}
*(undefined4 *)(*(int *)(this + 4) + 8 + iVar4) = puVar6[2];
}
if (param_1 == *(int *)(this + 0x10)) {
*(int *)(this + 0x10) = iVar1;
goto LAB_00bef77d;
}
if (Links(int)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = 0xffffffff;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_00bef721;
}
if (param_1 != -1) goto LAB_00bef72a;
LAB_00bef980:
iVar3 = DAT_00f71ebc;
if (Links(int)::s_Sentinel != '\0') goto LAB_00bef73b;
LAB_00bef990:
iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar2 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = 0xffffffff;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_00bef73b;
}
if (iVar3 != -1) goto LAB_00bef744;
LAB_00bef9c0:
puVar6 = &Links(int)::s_Sentinel;
}
else {
LAB_00bef721:
if (param_1 == -1) goto LAB_00bef980;
LAB_00bef72a:
iVar3 = *(int *)(local_24 + *(int *)(this + 4) + 8);
if (Links(int)::s_Sentinel == '\0') goto LAB_00bef990;
LAB_00bef73b:
if (iVar3 == -1) goto LAB_00bef9c0;
LAB_00bef744:
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar3 * 0x18);
}
if (param_1 == puVar6[1]) {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = 0xffffffff;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
puVar6 = &Links(int)::s_Sentinel;
if (param_1 != -1) {
puVar6 = (undefined4 *)(local_24 + *(int *)(this + 4));
}
*(int *)(*(int *)(this + 4) + 4 + puVar6[2] * 0x18) = iVar1;
}
else {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = 0xffffffff;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
puVar6 = &Links(int)::s_Sentinel;
if (param_1 != -1) {
puVar6 = (undefined4 *)(local_24 + *(int *)(this + 4));
}
*(int *)(*(int *)(this + 4) + puVar6[2] * 0x18) = iVar1;
}
LAB_00bef77d:
*(int *)(*(int *)(this + 4) + 4 + iVar4) = param_1;
if (param_1 != -1) {
*(int *)(*(int *)(this + 4) + 8 + local_24) = iVar1;
}
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.