CUtlRBTree<CIPRateLimit::iprate_s,int,bool(*)(CIPRateLimit::iprate_s_const&,CIPRateLimit::iprate_s_const&),CUtlMemory<UtlRBTreeNode_t<CIPRateLimit::iprate_s,int>,int>>::Unlink
0x001f8090 · 3167 bytes · __thiscall
_ZN10CUtlRBTreeIN12CIPRateLimit8iprate_sEiPFbRKS1_S3_E10CUtlMemoryI15UtlRBTreeNode_tIS1_iEiEE6UnlinkEi
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>
>::Unlink(int) */
void __thiscall
CUtlRBTree<CIPRateLimit::iprate_s,int,bool(*)(CIPRateLimit::iprate_s_const&,CIPRateLimit::iprate_s_const&),CUtlMemory<UtlRBTreeNode_t<CIPRateLimit::iprate_s,int>,int>>
::Unlink(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)
{
char cVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
undefined4 *puVar6;
int *piVar7;
bool bVar8;
int local_2c;
int local_28;
int local_20;
if (param_1 == -1) {
return;
}
local_20._0_1_ = Links(int)::s_Sentinel;
if (Links(int)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
local_20._0_1_ = Links(int)::s_Sentinel;
iVar3 = param_1 * 0x20;
piVar7 = (int *)(*(int *)(this + 4) + iVar3);
if (*piVar7 != -1) {
if (Links(int)::s_Sentinel != '\0') goto LAB_001f824c;
iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar2 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar2 = *(int *)(*(int *)(this + 4) + iVar3 + 4);
local_20._0_1_ = Links(int)::s_Sentinel;
if (iVar2 != -1) {
if (Links(int)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar2 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar2 = *(int *)(*(int *)(this + 4) + 4 + iVar3);
}
goto LAB_001f8673;
}
}
LAB_001f80d8:
iVar3 = param_1 * 0x20;
iVar2 = param_1;
Links(int)::s_Sentinel = (char)local_20;
}
else {
piVar7 = (int *)(*(int *)(this + 4) + param_1 * 0x20);
if (*piVar7 == -1) goto LAB_001f80d8;
LAB_001f824c:
iVar2 = piVar7[1];
local_20._0_1_ = Links(int)::s_Sentinel;
if (iVar2 == -1) goto LAB_001f80d8;
LAB_001f8673:
local_20._0_1_ = Links(int)::s_Sentinel;
if (Links(int)::s_Sentinel == '\0') goto LAB_001f86a7;
LAB_001f8680:
if (iVar2 == -1) goto LAB_001f86c3;
while (iVar3 = iVar2, *(int *)(iVar2 * 0x20 + *(int *)(this + 4)) != -1) {
while( true ) {
if (((char)local_20 == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel),
local_20._0_1_ = Links(int)::s_Sentinel, iVar2 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
local_20._0_1_ = Links(int)::s_Sentinel;
}
iVar2 = Links(int)::s_Sentinel;
if (iVar3 != -1) {
iVar2 = *(int *)(iVar3 * 0x20 + *(int *)(this + 4));
}
if ((char)local_20 != '\0') goto LAB_001f8680;
LAB_001f86a7:
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
local_20._0_1_ = Links(int)::s_Sentinel;
if (iVar2 != -1) break;
LAB_001f86c3:
iVar3 = iVar2;
if (Links(int)::s_Sentinel == -1) goto LAB_001f86d0;
}
}
LAB_001f86d0:
iVar3 = iVar2 << 5;
}
local_2c = param_1 * 0x20;
if ((char)local_20 == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
local_20._0_1_ = Links(int)::s_Sentinel;
if (iVar2 != -1) goto LAB_001f80f1;
LAB_001f841f:
if (Links(int)::s_Sentinel != -1) goto LAB_001f80ff;
LAB_001f8430:
if ((char)local_20 == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
local_20._0_1_ = Links(int)::s_Sentinel;
}
if (iVar2 == -1) {
puVar6 = &Links(int)::s_Sentinel;
}
else {
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar3);
}
local_28 = puVar6[1];
}
else {
if (iVar2 == -1) goto LAB_001f841f;
LAB_001f80f1:
if (*(int *)(*(int *)(this + 4) + iVar3) == -1) goto LAB_001f8430;
LAB_001f80ff:
if ((char)local_20 == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
local_20._0_1_ = Links(int)::s_Sentinel;
}
if (iVar2 == -1) {
piVar7 = &Links(int)::s_Sentinel;
}
else {
piVar7 = (int *)(*(int *)(this + 4) + iVar3);
}
local_28 = *piVar7;
}
if (local_28 != -1) {
if ((char)local_20 == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
local_20._0_1_ = Links(int)::s_Sentinel;
}
puVar6 = &Links(int)::s_Sentinel;
if (iVar2 != -1) {
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar3);
}
*(undefined4 *)(*(int *)(this + 4) + 8 + local_28 * 0x20) = puVar6[2];
}
if (iVar2 == *(int *)(this + 0x10)) {
*(int *)(this + 0x10) = local_28;
}
else {
if ((char)local_20 == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
local_20._0_1_ = Links(int)::s_Sentinel;
}
if (iVar2 == -1) {
puVar6 = &Links(int)::s_Sentinel;
}
else {
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar3);
}
iVar4 = puVar6[2];
if ((char)local_20 == '\0') {
iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar5 == 0) {
local_20._0_1_ = Links(int)::s_Sentinel;
}
else {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
local_20._0_1_ = Links(int)::s_Sentinel;
}
}
if (iVar4 == -1) {
piVar7 = &Links(int)::s_Sentinel;
}
else {
piVar7 = (int *)(iVar4 * 0x20 + *(int *)(this + 4));
}
if (iVar2 == *piVar7) {
if (((char)local_20 == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
puVar6 = &Links(int)::s_Sentinel;
if (iVar2 != -1) {
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar3);
}
*(int *)(*(int *)(this + 4) + puVar6[2] * 0x20) = local_28;
local_20._0_1_ = Links(int)::s_Sentinel;
}
else {
if ((char)local_20 == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
local_20._0_1_ = Links(int)::s_Sentinel;
}
puVar6 = &Links(int)::s_Sentinel;
if (iVar2 != -1) {
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar3);
}
*(int *)(*(int *)(this + 4) + 4 + puVar6[2] * 0x20) = local_28;
}
}
if (((char)local_20 == '\0') && (iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)
) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar2 == -1) {
local_20 = DAT_0034180c;
}
else {
local_20 = *(int *)(*(int *)(this + 4) + 0xc + iVar3);
if (iVar2 == param_1) goto LAB_001f81e4;
}
if (Links(int)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
bVar8 = Links(int)::s_Sentinel != '\0';
*(undefined4 *)(*(int *)(this + 4) + 8 + iVar3) =
*(undefined4 *)(*(int *)(this + 4) + 8 + local_2c);
if (bVar8) goto LAB_001f828b;
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
bVar8 = Links(int)::s_Sentinel == '\0';
*(undefined4 *)(*(int *)(this + 4) + 4 + iVar3) =
*(undefined4 *)(*(int *)(this + 4) + 4 + local_2c);
if ((bVar8) && (iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
}
else {
*(undefined4 *)(*(int *)(this + 4) + 8 + iVar3) =
*(undefined4 *)(*(int *)(this + 4) + 8 + local_2c);
LAB_001f828b:
*(undefined4 *)(*(int *)(this + 4) + 4 + iVar3) =
*(undefined4 *)(*(int *)(this + 4) + 4 + local_2c);
}
*(undefined4 *)(*(int *)(this + 4) + iVar3) = *(undefined4 *)(*(int *)(this + 4) + local_2c);
if (param_1 == *(int *)(this + 0x10)) {
*(int *)(this + 0x10) = iVar2;
cVar1 = Links(int)::s_Sentinel;
}
else {
if (Links(int)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar4 = *(int *)(*(int *)(this + 4) + 8 + local_2c);
if ((Links(int)::s_Sentinel == '\0') &&
(iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar5 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
}
else {
iVar4 = *(int *)(*(int *)(this + 4) + 8 + local_2c);
}
if (iVar4 == -1) {
piVar7 = &Links(int)::s_Sentinel;
}
else {
piVar7 = (int *)(iVar4 * 0x20 + *(int *)(this + 4));
}
if (param_1 == *piVar7) {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
*(int *)(*(int *)(this + 4) + *(int *)(*(int *)(this + 4) + 8 + local_2c) * 0x20) = iVar2;
cVar1 = Links(int)::s_Sentinel;
}
else {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
cVar1 = Links(int)::s_Sentinel;
*(int *)(*(int *)(this + 4) + 4 + *(int *)(*(int *)(this + 4) + 8 + local_2c) * 0x20) = iVar2;
}
}
if ((cVar1 == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), cVar1 = Links(int)::s_Sentinel,
iVar4 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
cVar1 = Links(int)::s_Sentinel;
}
if (iVar2 == -1) {
piVar7 = &Links(int)::s_Sentinel;
}
else {
piVar7 = (int *)(*(int *)(this + 4) + iVar3);
}
if (*piVar7 != -1) {
if ((cVar1 == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), cVar1 = Links(int)::s_Sentinel,
iVar4 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
cVar1 = Links(int)::s_Sentinel;
}
piVar7 = &Links(int)::s_Sentinel;
if (iVar2 != -1) {
piVar7 = (int *)(*(int *)(this + 4) + iVar3);
}
*(int *)(*(int *)(this + 4) + 8 + *piVar7 * 0x20) = iVar2;
}
if ((cVar1 == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), cVar1 = Links(int)::s_Sentinel,
iVar4 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
cVar1 = Links(int)::s_Sentinel;
}
if (iVar2 == -1) {
puVar6 = &Links(int)::s_Sentinel;
}
else {
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar3);
}
if (puVar6[1] != -1) {
if ((cVar1 == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), cVar1 = Links(int)::s_Sentinel,
iVar4 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
cVar1 = Links(int)::s_Sentinel;
}
puVar6 = &Links(int)::s_Sentinel;
if (iVar2 != -1) {
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar3);
}
*(int *)(*(int *)(this + 4) + 8 + puVar6[1] * 0x20) = iVar2;
}
if ((cVar1 == '\0') && (iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar2 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = 0xffffffff;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
*(undefined4 *)(*(int *)(this + 4) + 0xc + iVar3) =
*(undefined4 *)(*(int *)(this + 4) + 0xc + local_2c);
LAB_001f81e4:
if ((local_28 != -1) && (local_20 == 1)) {
RemoveRebalance(this,local_28);
return;
}
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.