CUtlRBTree<CUtlMap<unsigned_int,void(CResponseSystem::*)(char_const*,ResponseGroup&,AI_ResponseParams&),unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,void(CResponseSystem::*)(char_const*,ResponseGroup&,AI_ResponseParams&),unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,void(CResponseSystem::*)(char_const*,ResponseGroup&,AI_ResponseParams&),unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::InsertRebalance
0x005c97a0 · 1935 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIjM15CResponseSystemFvPKcR13ResponseGroupR17AI_ResponseParamsEtE6Node_tEtNSA_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tISB_tEtEE15InsertRebalanceEt
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlMap<unsigned int, void (CResponseSystem::*)(char const*, ResponseGroup&,
AI_ResponseParams&), unsigned short>::Node_t, unsigned short, CUtlMap<unsigned int, void
(CResponseSystem::*)(char const*, ResponseGroup&, AI_ResponseParams&), unsigned short>::CKeyLess,
CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned int, void (CResponseSystem::*)(char const*,
ResponseGroup&, AI_ResponseParams&), unsigned short>::Node_t, unsigned short>, unsigned short>
>::InsertRebalance(unsigned short) */
void __thiscall
CUtlRBTree<CUtlMap<unsigned_int,void(CResponseSystem::*)(char_const*,ResponseGroup&,AI_ResponseParams&),unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,void(CResponseSystem::*)(char_const*,ResponseGroup&,AI_ResponseParams&),unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,void(CResponseSystem::*)(char_const*,ResponseGroup&,AI_ResponseParams&),unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::InsertRebalance(CUtlRBTree<CUtlMap<unsigned_int,void(CResponseSystem::*)(char_const*,ResponseGroup&,AI_ResponseParams&),unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,void(CResponseSystem::*)(char_const*,ResponseGroup&,AI_ResponseParams&),unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,void(CResponseSystem::*)(char_const*,ResponseGroup&,AI_ResponseParams&),unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*this,ushort param_1)
{
ushort uVar1;
ushort uVar2;
short sVar3;
ushort *puVar4;
int iVar5;
undefined2 *puVar6;
uint uVar7;
ushort local_20;
ushort local_1e;
local_1e = param_1;
do {
uVar1 = *(ushort *)(this + 0x10);
if (local_1e == uVar1) {
LAB_005c9815:
*(undefined2 *)(*(int *)(this + 4) + (uint)uVar1 * 0x14 + 6) = 1;
return;
}
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar5 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar5 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21cc2 = 0xffff;
DAT_00f21cc4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (local_1e == 0xffff) goto LAB_005c9b61;
LAB_005c97df:
puVar6 = (undefined2 *)(*(int *)(this + 4) + (uint)local_1e * 0x14);
}
else {
if (local_1e != 0xffff) goto LAB_005c97df;
LAB_005c9b61:
puVar6 = &Links(unsigned_short)::s_Sentinel;
}
uVar1 = puVar6[2];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar5 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar5 != 0)) {
DAT_00f21cc2 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21cc4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar1 == 0xffff) goto LAB_005c9b28;
LAB_005c9801:
puVar6 = (undefined2 *)(*(int *)(this + 4) + (uint)uVar1 * 0x14);
}
else {
if (uVar1 != 0xffff) goto LAB_005c9801;
LAB_005c9b28:
puVar6 = &Links(unsigned_short)::s_Sentinel;
}
if (puVar6[3] != 0) {
uVar1 = *(ushort *)(this + 0x10);
goto LAB_005c9815;
}
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar5 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar5 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21cc2 = 0xffff;
DAT_00f21cc4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (local_1e == 0xffff) goto LAB_005c9ac9;
LAB_005c984d:
puVar6 = (undefined2 *)(*(int *)(this + 4) + (uint)local_1e * 0x14);
}
else {
if (local_1e != 0xffff) goto LAB_005c984d;
LAB_005c9ac9:
puVar6 = &Links(unsigned_short)::s_Sentinel;
}
uVar1 = puVar6[2];
uVar7 = (uint)uVar1;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar5 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar5 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21cc2 = 0xffff;
DAT_00f21cc4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) goto LAB_005c9a55;
LAB_005c9872:
local_20 = *(ushort *)(*(int *)(this + 4) + uVar7 * 0x14 + 4);
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_005c988b;
LAB_005c9a70:
iVar5 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar5 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21cc2 = 0xffff;
DAT_00f21cc4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) goto LAB_005c9a95;
LAB_005c9895:
puVar6 = (undefined2 *)(*(int *)(this + 4) + uVar7 * 0x14);
}
else {
if (uVar1 != 0xffff) goto LAB_005c9872;
LAB_005c9a55:
local_20 = DAT_00f21cc4;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_005c9a70;
LAB_005c988b:
if (uVar1 != 0xffff) goto LAB_005c9895;
LAB_005c9a95:
puVar6 = &Links(unsigned_short)::s_Sentinel;
}
uVar2 = puVar6[2];
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar5 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar5 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21cc4 = 0xffff;
DAT_00f21cc2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005c98aa;
}
if (uVar2 == 0xffff) goto LAB_005c9a23;
LAB_005c98b4:
puVar4 = (ushort *)(*(int *)(this + 4) + (uint)uVar2 * 0x14);
}
else {
LAB_005c98aa:
if (uVar2 != 0xffff) goto LAB_005c98b4;
LAB_005c9a23:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
if (uVar1 == *puVar4) {
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar5 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar5 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21cc2 = 0xffff;
DAT_00f21cc4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (local_20 == 0xffff) goto LAB_005c9cd1;
LAB_005c98df:
puVar6 = (undefined2 *)(*(int *)(this + 4) + (uint)local_20 * 0x14);
}
else {
if (local_20 != 0xffff) goto LAB_005c98df;
LAB_005c9cd1:
puVar6 = &Links(unsigned_short)::s_Sentinel;
}
uVar2 = puVar6[1];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar5 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar5 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21cc2 = 0xffff;
DAT_00f21cc4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
sVar3 = DAT_00f21cc6;
if (uVar2 != 0xffff) {
sVar3 = *(short *)(*(int *)(this + 4) + (uint)uVar2 * 0x14 + 6);
}
if (sVar3 == 0) {
*(undefined2 *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) = 1;
local_1e = local_20;
*(undefined2 *)(*(int *)(this + 4) + (uint)uVar2 * 0x14 + 6) = 1;
*(undefined2 *)(*(int *)(this + 4) + (uint)local_20 * 0x14 + 6) = 0;
}
else {
iVar5 = Links(this,local_1e);
iVar5 = Links(this,*(ushort *)(iVar5 + 4));
if (local_1e == *(ushort *)(iVar5 + 2)) {
RotateLeft(this,uVar1);
iVar5 = Links(this,uVar1);
uVar7 = (uint)*(ushort *)(iVar5 + 4);
iVar5 = Links(this,*(ushort *)(iVar5 + 4));
local_20 = *(ushort *)(iVar5 + 4);
local_1e = uVar1;
}
*(undefined2 *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) = 1;
*(undefined2 *)(*(int *)(this + 4) + (uint)local_20 * 0x14 + 6) = 0;
RotateRight(this,local_20);
}
}
else {
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar5 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar5 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21cc2 = 0xffff;
DAT_00f21cc4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (local_20 == 0xffff) goto LAB_005c9d71;
LAB_005c9976:
puVar4 = (ushort *)(*(int *)(this + 4) + (uint)local_20 * 0x14);
}
else {
if (local_20 != 0xffff) goto LAB_005c9976;
LAB_005c9d71:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
uVar2 = *puVar4;
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar5 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar5 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21cc2 = 0xffff;
DAT_00f21cc4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar2 == 0xffff) goto LAB_005c9d38;
LAB_005c9997:
puVar6 = (undefined2 *)(*(int *)(this + 4) + (uint)uVar2 * 0x14);
}
else {
if (uVar2 != 0xffff) goto LAB_005c9997;
LAB_005c9d38:
puVar6 = &Links(unsigned_short)::s_Sentinel;
}
if (puVar6[3] == 0) {
*(undefined2 *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) = 1;
*(undefined2 *)(*(int *)(this + 4) + (uint)uVar2 * 0x14 + 6) = 1;
local_1e = local_20;
*(undefined2 *)(*(int *)(this + 4) + (uint)local_20 * 0x14 + 6) = 0;
}
else {
iVar5 = Links(this,local_1e);
puVar4 = (ushort *)Links(this,*(ushort *)(iVar5 + 4));
if (local_1e == *puVar4) {
RotateRight(this,uVar1);
iVar5 = Links(this,uVar1);
uVar7 = (uint)*(ushort *)(iVar5 + 4);
iVar5 = Links(this,*(ushort *)(iVar5 + 4));
local_20 = *(ushort *)(iVar5 + 4);
local_1e = uVar1;
}
*(undefined2 *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) = 1;
*(undefined2 *)(*(int *)(this + 4) + (uint)local_20 * 0x14 + 6) = 0;
RotateLeft(this,local_20);
}
}
} 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.