CUtlRBTree<AI_CriteriaSet::CritEntry_t,short,bool(*)(AI_CriteriaSet::CritEntry_t_const&,AI_CriteriaSet::CritEntry_t_const&),CUtlMemory<UtlRBTreeNode_t<AI_CriteriaSet::CritEntry_t,short>,short>>::RotateLeft
0x005ab6d0 · 1291 bytes · __thiscall
_ZN10CUtlRBTreeIN14AI_CriteriaSet11CritEntry_tEsPFbRKS1_S3_E10CUtlMemoryI15UtlRBTreeNode_tIS1_sEsEE10RotateLeftEs
Decompiled
undefined (2 params)
/* CUtlRBTree<AI_CriteriaSet::CritEntry_t, short, bool (*)(AI_CriteriaSet::CritEntry_t const&,
AI_CriteriaSet::CritEntry_t const&), CUtlMemory<UtlRBTreeNode_t<AI_CriteriaSet::CritEntry_t,
short>, short> >::RotateLeft(short) */
void __thiscall
CUtlRBTree<AI_CriteriaSet::CritEntry_t,short,bool(*)(AI_CriteriaSet::CritEntry_t_const&,AI_CriteriaSet::CritEntry_t_const&),CUtlMemory<UtlRBTreeNode_t<AI_CriteriaSet::CritEntry_t,short>,short>>
::RotateLeft(CUtlRBTree<AI_CriteriaSet::CritEntry_t,short,bool(*)(AI_CriteriaSet::CritEntry_t_const&,AI_CriteriaSet::CritEntry_t_const&),CUtlMemory<UtlRBTreeNode_t<AI_CriteriaSet::CritEntry_t,short>,short>>
*this,short param_1)
{
short *psVar1;
int iVar2;
short sVar3;
undefined2 *puVar4;
short sVar5;
bool bVar6;
int local_24;
int local_20;
if (Links(short)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(short)::s_Sentinel);
if (iVar2 != 0) {
Links(short)::s_Sentinel = 0xffff;
DAT_00f21a9a = -1;
DAT_00f21a9c = -1;
__cxa_guard_release(&Links(short)::s_Sentinel);
}
if (param_1 != -1) goto LAB_005ab6fb;
LAB_005ab8f8:
local_20 = -0x50;
sVar5 = DAT_00f21a9a;
if (Links(short)::s_Sentinel != '\0') goto LAB_005ab71c;
LAB_005ab918:
iVar2 = __cxa_guard_acquire(&Links(short)::s_Sentinel);
if (iVar2 != 0) {
Links(short)::s_Sentinel = 0xffff;
DAT_00f21a9a = -1;
DAT_00f21a9c = -1;
__cxa_guard_release(&Links(short)::s_Sentinel);
}
iVar2 = *(int *)(this + 4);
if (sVar5 != -1) goto LAB_005ab729;
LAB_005ab943:
local_24 = -0x50;
puVar4 = &Links(short)::s_Sentinel;
}
else {
if (param_1 == -1) goto LAB_005ab8f8;
LAB_005ab6fb:
local_20 = param_1 * 0x50;
sVar5 = *(short *)(local_20 + *(int *)(this + 4) + 2);
if (Links(short)::s_Sentinel == '\0') goto LAB_005ab918;
LAB_005ab71c:
iVar2 = *(int *)(this + 4);
if (sVar5 == -1) goto LAB_005ab943;
LAB_005ab729:
local_24 = sVar5 * 0x50;
puVar4 = (undefined2 *)(iVar2 + local_24);
}
bVar6 = Links(short)::s_Sentinel == '\0';
*(undefined2 *)(iVar2 + 2 + local_20) = *puVar4;
if ((bVar6) && (iVar2 = __cxa_guard_acquire(&Links(short)::s_Sentinel), iVar2 != 0)) {
DAT_00f21a9a = -1;
Links(short)::s_Sentinel = 0xffff;
DAT_00f21a9c = -1;
__cxa_guard_release(&Links(short)::s_Sentinel);
}
if (sVar5 == -1) {
psVar1 = &Links(short)::s_Sentinel;
}
else {
psVar1 = (short *)(local_24 + *(int *)(this + 4));
}
if (*psVar1 != -1) {
if ((Links(short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(short)::s_Sentinel), iVar2 != 0)) {
Links(short)::s_Sentinel = 0xffff;
DAT_00f21a9a = -1;
DAT_00f21a9c = -1;
__cxa_guard_release(&Links(short)::s_Sentinel);
}
psVar1 = &Links(short)::s_Sentinel;
if (sVar5 != -1) {
psVar1 = (short *)(local_24 + *(int *)(this + 4));
}
*(short *)(*(int *)(this + 4) + 4 + *psVar1 * 0x50) = param_1;
}
if (sVar5 != -1) {
if ((Links(short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(short)::s_Sentinel), iVar2 != 0)) {
Links(short)::s_Sentinel = 0xffff;
DAT_00f21a9a = -1;
DAT_00f21a9c = -1;
__cxa_guard_release(&Links(short)::s_Sentinel);
}
puVar4 = &Links(short)::s_Sentinel;
if (param_1 != -1) {
puVar4 = (undefined2 *)(*(int *)(this + 4) + local_20);
}
*(undefined2 *)(*(int *)(this + 4) + 4 + local_24) = puVar4[2];
}
if (param_1 == *(short *)(this + 0x10)) {
*(short *)(this + 0x10) = sVar5;
goto LAB_005ab845;
}
if (Links(short)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(short)::s_Sentinel);
if (iVar2 != 0) {
Links(short)::s_Sentinel = 0xffff;
DAT_00f21a9a = -1;
DAT_00f21a9c = -1;
__cxa_guard_release(&Links(short)::s_Sentinel);
}
if (param_1 != -1) goto LAB_005ab7eb;
LAB_005aba55:
sVar3 = DAT_00f21a9c;
if (Links(short)::s_Sentinel != '\0') goto LAB_005ab7fd;
LAB_005aba70:
iVar2 = __cxa_guard_acquire(&Links(short)::s_Sentinel);
if (iVar2 != 0) {
Links(short)::s_Sentinel = 0xffff;
DAT_00f21a9a = -1;
DAT_00f21a9c = -1;
__cxa_guard_release(&Links(short)::s_Sentinel);
goto LAB_005ab7fd;
}
if (sVar3 != -1) goto LAB_005ab807;
LAB_005aba9b:
psVar1 = &Links(short)::s_Sentinel;
}
else {
if (param_1 == -1) goto LAB_005aba55;
LAB_005ab7eb:
sVar3 = *(short *)(local_20 + *(int *)(this + 4) + 4);
if (Links(short)::s_Sentinel == '\0') goto LAB_005aba70;
LAB_005ab7fd:
if (sVar3 == -1) goto LAB_005aba9b;
LAB_005ab807:
psVar1 = (short *)(sVar3 * 0x50 + *(int *)(this + 4));
}
if (param_1 == *psVar1) {
if ((Links(short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(short)::s_Sentinel), iVar2 != 0)) {
Links(short)::s_Sentinel = 0xffff;
DAT_00f21a9a = -1;
DAT_00f21a9c = -1;
__cxa_guard_release(&Links(short)::s_Sentinel);
}
puVar4 = &Links(short)::s_Sentinel;
if (param_1 != -1) {
puVar4 = (undefined2 *)(local_20 + *(int *)(this + 4));
}
*(short *)(*(int *)(this + 4) + (short)puVar4[2] * 0x50) = sVar5;
}
else {
if ((Links(short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(short)::s_Sentinel), iVar2 != 0)) {
Links(short)::s_Sentinel = 0xffff;
DAT_00f21a9a = -1;
DAT_00f21a9c = -1;
__cxa_guard_release(&Links(short)::s_Sentinel);
}
puVar4 = &Links(short)::s_Sentinel;
if (param_1 != -1) {
puVar4 = (undefined2 *)(local_20 + *(int *)(this + 4));
}
*(short *)(*(int *)(this + 4) + 2 + (short)puVar4[2] * 0x50) = sVar5;
}
LAB_005ab845:
*(short *)(*(int *)(this + 4) + local_24) = param_1;
if (param_1 != -1) {
*(short *)(*(int *)(this + 4) + 4 + local_20) = sVar5;
}
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.