CUtlRBTree<CUtlMap<char_const*,AI_CriteriaSet::CritEntry_t_const*,unsigned_short>::Node_t,unsigned_short,CUtlMap<char_const*,AI_CriteriaSet::CritEntry_t_const*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,AI_CriteriaSet::CritEntry_t_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::InsertRebalance
0x005aff60 · 2800 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIPKcPKN14AI_CriteriaSet11CritEntry_tEtE6Node_tEtNS7_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS8_tEtEE15InsertRebalanceEt
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlMap<char const*, AI_CriteriaSet::CritEntry_t const*, unsigned short>::Node_t,
unsigned short, CUtlMap<char const*, AI_CriteriaSet::CritEntry_t const*, unsigned
short>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<char const*, AI_CriteriaSet::CritEntry_t
const*, unsigned short>::Node_t, unsigned short>, unsigned short> >::InsertRebalance(unsigned
short) */
void __thiscall
CUtlRBTree<CUtlMap<char_const*,AI_CriteriaSet::CritEntry_t_const*,unsigned_short>::Node_t,unsigned_short,CUtlMap<char_const*,AI_CriteriaSet::CritEntry_t_const*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,AI_CriteriaSet::CritEntry_t_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::InsertRebalance(CUtlRBTree<CUtlMap<char_const*,AI_CriteriaSet::CritEntry_t_const*,unsigned_short>::Node_t,unsigned_short,CUtlMap<char_const*,AI_CriteriaSet::CritEntry_t_const*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,AI_CriteriaSet::CritEntry_t_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*this,ushort param_1)
{
ushort uVar1;
ushort uVar2;
short sVar3;
undefined2 *puVar4;
undefined2 *puVar5;
int iVar6;
ushort uVar7;
ushort *puVar8;
uint uVar9;
uint uVar10;
uint uVar11;
ushort uVar12;
uint uVar13;
uVar13 = (uint)param_1;
do {
uVar1 = *(ushort *)(this + 0x10);
uVar12 = (ushort)uVar13;
if (uVar12 == uVar1) {
LAB_005affc5:
*(undefined2 *)((uint)uVar1 * 0x10 + *(int *)(this + 4) + 6) = 1;
return;
}
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21a92 = 0xffff;
DAT_00f21a94 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar12 == 0xffff) goto LAB_005b0315;
LAB_005aff92:
puVar4 = (undefined2 *)(uVar13 * 0x10 + *(int *)(this + 4));
}
else {
if (uVar12 != 0xffff) goto LAB_005aff92;
LAB_005b0315:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
uVar1 = puVar4[2];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar6 != 0)) {
DAT_00f21a92 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21a94 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar1 == 0xffff) goto LAB_005b02e0;
LAB_005affb1:
puVar4 = (undefined2 *)((uint)uVar1 * 0x10 + *(int *)(this + 4));
}
else {
if (uVar1 != 0xffff) goto LAB_005affb1;
LAB_005b02e0:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
if (puVar4[3] != 0) {
uVar1 = *(ushort *)(this + 0x10);
goto LAB_005affc5;
}
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21a92 = 0xffff;
DAT_00f21a94 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar12 == 0xffff) goto LAB_005b0285;
LAB_005afff9:
puVar4 = (undefined2 *)(uVar13 * 0x10 + *(int *)(this + 4));
}
else {
if (uVar12 != 0xffff) goto LAB_005afff9;
LAB_005b0285:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
uVar1 = puVar4[2];
uVar11 = (uint)uVar1;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21a92 = 0xffff;
DAT_00f21a94 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) goto LAB_005b0255;
LAB_005b001e:
puVar4 = (undefined2 *)(uVar11 * 0x10 + *(int *)(this + 4));
}
else {
if (uVar1 != 0xffff) goto LAB_005b001e;
LAB_005b0255:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
uVar7 = puVar4[2];
uVar10 = (uint)uVar7;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21a92 = 0xffff;
DAT_00f21a94 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005b0033;
}
if (uVar1 == 0xffff) goto LAB_005b0223;
LAB_005b003d:
puVar4 = (undefined2 *)(uVar11 * 0x10 + *(int *)(this + 4));
}
else {
LAB_005b0033:
if (uVar1 != 0xffff) goto LAB_005b003d;
LAB_005b0223:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
uVar2 = puVar4[2];
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21a92 = 0xffff;
DAT_00f21a94 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005b0052;
}
if (uVar2 == 0xffff) goto LAB_005b01e9;
LAB_005b005c:
puVar8 = (ushort *)((uint)uVar2 * 0x10 + *(int *)(this + 4));
}
else {
LAB_005b0052:
if (uVar2 != 0xffff) goto LAB_005b005c;
LAB_005b01e9:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
if (uVar1 == *puVar8) {
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
DAT_00f21a92 = 0xffff;
DAT_00f21a94 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005b0076;
}
if (uVar7 == 0xffff) goto LAB_005b043b;
LAB_005b0080:
puVar4 = (undefined2 *)(uVar10 * 0x10 + *(int *)(this + 4));
}
else {
LAB_005b0076:
if (uVar7 != 0xffff) goto LAB_005b0080;
LAB_005b043b:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
uVar7 = puVar4[1];
uVar9 = (uint)uVar7;
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar6 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21a94 = 0xffff;
DAT_00f21a92 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
sVar3 = DAT_00f21a96;
if (uVar7 != 0xffff) {
sVar3 = *(short *)(uVar9 * 0x10 + *(int *)(this + 4) + 6);
}
if (sVar3 == 0) {
LAB_005b00b3:
*(undefined2 *)(uVar11 * 0x10 + *(int *)(this + 4) + 6) = 1;
*(undefined2 *)(uVar9 * 0x10 + *(int *)(this + 4) + 6) = 1;
*(undefined2 *)(uVar10 * 0x10 + *(int *)(this + 4) + 6) = 0;
uVar13 = uVar10;
}
else {
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21a92 = 0xffff;
DAT_00f21a94 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005b039f;
}
if (uVar12 == 0xffff) goto LAB_005b07ab;
LAB_005b03a9:
uVar7 = *(ushort *)(uVar13 * 0x10 + *(int *)(this + 4) + 4);
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_005b03be;
LAB_005b07c0:
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 == 0) goto LAB_005b03be;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21a92 = 0xffff;
DAT_00f21a94 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar7 == 0xffff) goto LAB_005b0820;
LAB_005b03c8:
if (uVar12 != *(ushort *)((uint)uVar7 * 0x10 + *(int *)(this + 4) + 2)) goto LAB_005b03de;
LAB_005b0838:
RotateLeft(this,uVar1);
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar6 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21a92 = 0xffff;
DAT_00f21a94 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar4 = (undefined2 *)(uVar11 * 0x10 + *(int *)(this + 4));
}
uVar1 = puVar4[2];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar6 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21a92 = 0xffff;
DAT_00f21a94 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
puVar5 = (undefined2 *)(*(int *)(this + 4) + 0xffff0);
}
else {
puVar5 = (undefined2 *)((uint)uVar1 * 0x10 + *(int *)(this + 4));
puVar4 = puVar5;
}
uVar10 = (uint)(ushort)puVar4[2];
}
else {
LAB_005b039f:
if (uVar12 != 0xffff) goto LAB_005b03a9;
LAB_005b07ab:
uVar7 = DAT_00f21a94;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_005b07c0;
LAB_005b03be:
if (uVar7 != 0xffff) goto LAB_005b03c8;
LAB_005b0820:
if (uVar12 == DAT_00f21a92) goto LAB_005b0838;
LAB_005b03de:
puVar5 = (undefined2 *)(uVar11 * 0x10 + *(int *)(this + 4));
uVar11 = uVar13;
}
puVar5[3] = 1;
*(undefined2 *)(uVar10 * 0x10 + *(int *)(this + 4) + 6) = 0;
RotateRight(this,(ushort)uVar10);
uVar13 = uVar11;
}
}
else {
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21a92 = 0xffff;
DAT_00f21a94 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005b00f8;
}
if (uVar7 == 0xffff) goto LAB_005b04e3;
LAB_005b0102:
puVar8 = (ushort *)(uVar10 * 0x10 + *(int *)(this + 4));
}
else {
LAB_005b00f8:
if (uVar7 != 0xffff) goto LAB_005b0102;
LAB_005b04e3:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
uVar7 = *puVar8;
uVar9 = (uint)uVar7;
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar6 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21a92 = 0xffff;
DAT_00f21a94 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar7 == 0xffff) goto LAB_005b04a8;
LAB_005b0120:
puVar4 = (undefined2 *)(uVar9 * 0x10 + *(int *)(this + 4));
}
else {
if (uVar7 != 0xffff) goto LAB_005b0120;
LAB_005b04a8:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
if (puVar4[3] == 0) goto LAB_005b00b3;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21a92 = 0xffff;
DAT_00f21a94 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005b0143;
}
if (uVar12 == 0xffff) goto LAB_005b06fb;
LAB_005b014d:
uVar7 = *(ushort *)(uVar13 * 0x10 + *(int *)(this + 4) + 4);
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_005b0162;
LAB_005b0710:
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 == 0) goto LAB_005b0162;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21a92 = 0xffff;
DAT_00f21a94 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar7 == 0xffff) goto LAB_005b0770;
LAB_005b016c:
puVar8 = (ushort *)((uint)uVar7 * 0x10 + *(int *)(this + 4));
}
else {
LAB_005b0143:
if (uVar12 != 0xffff) goto LAB_005b014d;
LAB_005b06fb:
uVar7 = DAT_00f21a94;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_005b0710;
LAB_005b0162:
if (uVar7 != 0xffff) goto LAB_005b016c;
LAB_005b0770:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
if (uVar12 == *puVar8) {
RotateRight(this,uVar1);
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar6 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21a92 = 0xffff;
DAT_00f21a94 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar4 = (undefined2 *)(uVar11 * 0x10 + *(int *)(this + 4));
}
uVar1 = puVar4[2];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar6 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21a92 = 0xffff;
DAT_00f21a94 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
puVar5 = (undefined2 *)(*(int *)(this + 4) + 0xffff0);
}
else {
puVar5 = (undefined2 *)((uint)uVar1 * 0x10 + *(int *)(this + 4));
puVar4 = puVar5;
}
uVar10 = (uint)(ushort)puVar4[2];
}
else {
puVar5 = (undefined2 *)(uVar11 * 0x10 + *(int *)(this + 4));
uVar11 = uVar13;
}
puVar5[3] = 1;
*(undefined2 *)(uVar10 * 0x10 + *(int *)(this + 4) + 6) = 0;
RotateLeft(this,(ushort)uVar10);
uVar13 = uVar11;
}
} while( true );
}
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.