CUtlRBTree<CIPRateLimit::iprate_s,int,bool(*)(CIPRateLimit::iprate_s_const&,CIPRateLimit::iprate_s_const&),CUtlMemory<UtlRBTreeNode_t<CIPRateLimit::iprate_s,int>,int>>::PrevInorder
0x001f5d40 · 963 bytes · __thiscall
_ZNK10CUtlRBTreeIN12CIPRateLimit8iprate_sEiPFbRKS1_S3_E10CUtlMemoryI15UtlRBTreeNode_tIS1_iEiEE11PrevInorderEi
Decompiled
undefined (2 params)
/* CUtlRBTree<CIPRateLimit::iprate_s, int, bool (*)(CIPRateLimit::iprate_s const&,
CIPRateLimit::iprate_s const&), CUtlMemory<UtlRBTreeNode_t<CIPRateLimit::iprate_s, int>, int>
>::PrevInorder(int) const */
int __thiscall
CUtlRBTree<CIPRateLimit::iprate_s,int,bool(*)(CIPRateLimit::iprate_s_const&,CIPRateLimit::iprate_s_const&),CUtlMemory<UtlRBTreeNode_t<CIPRateLimit::iprate_s,int>,int>>
::PrevInorder(CUtlRBTree<CIPRateLimit::iprate_s,int,bool(*)(CIPRateLimit::iprate_s_const&,CIPRateLimit::iprate_s_const&),CUtlMemory<UtlRBTreeNode_t<CIPRateLimit::iprate_s,int>,int>>
*this,int param_1)
{
int iVar1;
int iVar2;
int iVar3;
undefined4 *puVar4;
int *piVar5;
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar3 = Links(int)::s_Sentinel;
if (param_1 != -1) {
iVar3 = *(int *)(param_1 * 0x20 + *(int *)(this + 4));
}
if (iVar3 == -1) {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) {
puVar4 = &Links(int)::s_Sentinel;
}
else {
puVar4 = (undefined4 *)(param_1 * 0x20 + *(int *)(this + 4));
}
do {
iVar3 = puVar4[2];
if (Links(int)::s_Sentinel == '\0') {
iVar1 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar1 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) goto LAB_001f5f56;
LAB_001f5ee5:
iVar1 = *(int *)(param_1 * 0x20 + *(int *)(this + 4) + 8);
if (Links(int)::s_Sentinel == '\0') goto LAB_001f5f68;
LAB_001f5ef4:
if (iVar1 == -1) goto LAB_001f5fc0;
LAB_001f5efd:
piVar5 = (int *)(iVar1 * 0x20 + *(int *)(this + 4));
}
else {
if (param_1 != -1) goto LAB_001f5ee5;
LAB_001f5f56:
iVar1 = DAT_00341808;
if (Links(int)::s_Sentinel != '\0') goto LAB_001f5ef4;
LAB_001f5f68:
iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar2 == 0) goto LAB_001f5ef4;
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar1 != -1) goto LAB_001f5efd;
LAB_001f5fc0:
piVar5 = &Links(int)::s_Sentinel;
}
if (param_1 != *piVar5) {
return iVar3;
}
if (iVar3 == -1) {
return -1;
}
if ((Links(int)::s_Sentinel == '\0') &&
(iVar1 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar1 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
puVar4 = (undefined4 *)(iVar3 * 0x20 + *(int *)(this + 4));
param_1 = iVar3;
} while( true );
}
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) {
piVar5 = &Links(int)::s_Sentinel;
}
else {
piVar5 = (int *)(param_1 * 0x20 + *(int *)(this + 4));
}
iVar3 = *piVar5;
do {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar1 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar1 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar1 = DAT_00341804;
if (iVar3 != -1) {
iVar1 = *(int *)(iVar3 * 0x20 + *(int *)(this + 4) + 4);
}
if (iVar1 == -1) {
return iVar3;
}
if (Links(int)::s_Sentinel == '\0') {
iVar1 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar1 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar3 == -1) goto LAB_001f5e50;
LAB_001f5dbf:
puVar4 = (undefined4 *)(iVar3 * 0x20 + *(int *)(this + 4));
}
else {
if (iVar3 != -1) goto LAB_001f5dbf;
LAB_001f5e50:
puVar4 = &Links(int)::s_Sentinel;
}
iVar3 = puVar4[1];
} 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.