CUtlRBTree<CUtlMap<unsigned_int,void(CResponseSystem::*)(Response&,ResponseGroup&,AI_ResponseParams*),unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,void(CResponseSystem::*)(Response&,ResponseGroup&,AI_ResponseParams*),unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,void(CResponseSystem::*)(Response&,ResponseGroup&,AI_ResponseParams*),unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::RotateLeft
0x005c7a10 · 1084 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIjM15CResponseSystemFvR8ResponseR13ResponseGroupP17AI_ResponseParamsEtE6Node_tEtNSA_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tISB_tEtEE10RotateLeftEt
Decompiled
undefined (2 params)
/* WARNING: Type propagation algorithm not settling */
/* CUtlRBTree<CUtlMap<unsigned int, void (CResponseSystem::*)(Response&, ResponseGroup&,
AI_ResponseParams*), unsigned short>::Node_t, unsigned short, CUtlMap<unsigned int, void
(CResponseSystem::*)(Response&, ResponseGroup&, AI_ResponseParams*), unsigned short>::CKeyLess,
CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned int, void (CResponseSystem::*)(Response&,
ResponseGroup&, AI_ResponseParams*), unsigned short>::Node_t, unsigned short>, unsigned short>
>::RotateLeft(unsigned short) */
void __thiscall
CUtlRBTree<CUtlMap<unsigned_int,void(CResponseSystem::*)(Response&,ResponseGroup&,AI_ResponseParams*),unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,void(CResponseSystem::*)(Response&,ResponseGroup&,AI_ResponseParams*),unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,void(CResponseSystem::*)(Response&,ResponseGroup&,AI_ResponseParams*),unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::RotateLeft(CUtlRBTree<CUtlMap<unsigned_int,void(CResponseSystem::*)(Response&,ResponseGroup&,AI_ResponseParams*),unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,void(CResponseSystem::*)(Response&,ResponseGroup&,AI_ResponseParams*),unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,void(CResponseSystem::*)(Response&,ResponseGroup&,AI_ResponseParams*),unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*this,ushort param_1)
{
ushort uVar1;
ushort uVar2;
short *psVar3;
ushort *puVar4;
int iVar5;
undefined2 *puVar6;
bool bVar7;
int local_24;
int local_20;
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_00f21cba = 0xffff;
DAT_00f21cbc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 == 0xffff) {
local_24 = 0x13ffec;
uVar2 = DAT_00f21cba;
}
else {
local_24 = (uint)param_1 * 0x14;
uVar2 = *(ushort *)(*(int *)(this + 4) + local_24 + 2);
}
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar5 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar5 != 0) {
DAT_00f21cba = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21cbc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
iVar5 = *(int *)(this + 4);
}
else {
iVar5 = *(int *)(this + 4);
}
if (uVar2 == 0xffff) {
local_20 = 0x13ffec;
puVar6 = &Links(unsigned_short)::s_Sentinel;
}
else {
local_20 = (uint)uVar2 * 0x14;
puVar6 = (undefined2 *)(local_20 + iVar5);
}
bVar7 = Links(unsigned_short)::s_Sentinel == '\0';
*(undefined2 *)(iVar5 + 2 + local_24) = *puVar6;
if ((bVar7) && (iVar5 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar5 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21cba = 0xffff;
DAT_00f21cbc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 == 0xffff) {
psVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
psVar3 = (short *)(local_20 + *(int *)(this + 4));
}
if (*psVar3 != -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_00f21cba = 0xffff;
DAT_00f21cbc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar4 = &Links(unsigned_short)::s_Sentinel;
if (uVar2 != 0xffff) {
puVar4 = (ushort *)(local_20 + *(int *)(this + 4));
}
*(ushort *)(*(int *)(this + 4) + 4 + (uint)*puVar4 * 0x14) = param_1;
}
if (uVar2 != 0xffff) {
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_00f21cba = 0xffff;
DAT_00f21cbc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar6 = &Links(unsigned_short)::s_Sentinel;
if (param_1 != 0xffff) {
puVar6 = (undefined2 *)(*(int *)(this + 4) + local_24);
}
*(undefined2 *)(*(int *)(this + 4) + 4 + local_20) = puVar6[2];
}
if (param_1 == *(ushort *)(this + 0x10)) {
*(ushort *)(this + 0x10) = uVar2;
}
else {
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_00f21cba = 0xffff;
DAT_00f21cbc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
uVar1 = DAT_00f21cbc;
if (param_1 != 0xffff) {
uVar1 = *(ushort *)(local_24 + *(int *)(this + 4) + 4);
}
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_00f21cba = 0xffff;
DAT_00f21cbc = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar4 = (ushort *)(*(int *)(this + 4) + (uint)uVar1 * 0x14);
}
if (param_1 == *puVar4) {
iVar5 = Links(this,param_1);
*(ushort *)(*(int *)(this + 4) + (uint)*(ushort *)(iVar5 + 4) * 0x14) = uVar2;
}
else {
iVar5 = Links(this,param_1);
*(ushort *)(*(int *)(this + 4) + (uint)*(ushort *)(iVar5 + 4) * 0x14 + 2) = uVar2;
}
}
*(ushort *)(*(int *)(this + 4) + local_20) = param_1;
if (param_1 != 0xffff) {
*(ushort *)(*(int *)(this + 4) + 4 + local_24) = uVar2;
}
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.