CUtlRBTree<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int,CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int>,int>>::Unlink
0x00068b70 · 3289 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIyPN5GCSDK4CJobEiE6Node_tEiNS4_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS5_iEiEE6UnlinkEi
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlMap<unsigned long long, GCSDK::CJob*, int>::Node_t, int, CUtlMap<unsigned long
long, GCSDK::CJob*, int>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned long long,
GCSDK::CJob*, int>::Node_t, int>, int> >::Unlink(int) */
void __thiscall
CUtlRBTree<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int,CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int>,int>>
::Unlink(CUtlRBTree<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int,CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int>,int>>
*this,int param_1)
{
char cVar1;
int iVar2;
int iVar3;
int iVar4;
undefined4 *puVar5;
int *piVar6;
bool bVar7;
int local_30;
int local_2c;
int local_28;
int local_20;
if (param_1 == -1) {
return;
}
if (Links(int)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar3 = param_1 * 0x1c;
piVar6 = (int *)(*(int *)(this + 4) + iVar3);
if (*piVar6 != -1) {
if (Links(int)::s_Sentinel != '\0') goto LAB_00068d2f;
iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar2 != 0) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar2 = *(int *)(*(int *)(this + 4) + iVar3 + 4);
if (iVar2 != -1) {
if (Links(int)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar2 == 0) {
iVar2 = *(int *)(*(int *)(this + 4) + 4 + iVar3);
}
else {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
iVar2 = *(int *)(*(int *)(this + 4) + 4 + iVar3);
}
}
goto LAB_00068d43;
}
}
LAB_00068bb0:
local_20 = param_1 * 0x1c;
local_2c = local_20;
iVar2 = param_1;
cVar1 = Links(int)::s_Sentinel;
if (Links(int)::s_Sentinel != '\0') goto LAB_00068bc1;
LAB_00068dd0:
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
cVar1 = Links(int)::s_Sentinel;
if (iVar2 != -1) goto LAB_00068bca;
LAB_00068df4:
if (Links(int)::s_Sentinel != -1) goto LAB_00068bd9;
LAB_00068e08:
if ((cVar1 == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), cVar1 = Links(int)::s_Sentinel,
iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
cVar1 = Links(int)::s_Sentinel;
}
if (iVar2 == -1) {
puVar5 = &Links(int)::s_Sentinel;
}
else {
puVar5 = (undefined4 *)(local_20 + *(int *)(this + 4));
}
local_28 = puVar5[1];
}
else {
piVar6 = (int *)(*(int *)(this + 4) + param_1 * 0x1c);
if (*piVar6 == -1) goto LAB_00068bb0;
LAB_00068d2f:
iVar2 = piVar6[1];
if (iVar2 == -1) goto LAB_00068bb0;
LAB_00068d43:
local_2c = param_1 * 0x1c;
cVar1 = Links(int)::s_Sentinel;
if (Links(int)::s_Sentinel == '\0') goto LAB_00068d89;
LAB_00068d50:
if (iVar2 == -1) goto LAB_00068da9;
while (iVar3 = iVar2, *(int *)(iVar2 * 0x1c + *(int *)(this + 4)) != -1) {
while( true ) {
if ((cVar1 == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel), cVar1 = Links(int)::s_Sentinel,
iVar2 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
cVar1 = Links(int)::s_Sentinel;
}
iVar2 = Links(int)::s_Sentinel;
if (iVar3 != -1) {
iVar2 = *(int *)(iVar3 * 0x1c + *(int *)(this + 4));
}
if (cVar1 != '\0') goto LAB_00068d50;
LAB_00068d89:
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
cVar1 = Links(int)::s_Sentinel;
if (iVar2 != -1) break;
LAB_00068da9:
iVar3 = iVar2;
if (Links(int)::s_Sentinel == -1) goto LAB_00068db8;
}
}
LAB_00068db8:
local_20 = iVar2 * 0x1c;
if (cVar1 == '\0') goto LAB_00068dd0;
LAB_00068bc1:
if (iVar2 == -1) goto LAB_00068df4;
LAB_00068bca:
if (*(int *)(local_20 + *(int *)(this + 4)) == -1) goto LAB_00068e08;
LAB_00068bd9:
if ((cVar1 == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), cVar1 = Links(int)::s_Sentinel,
iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
cVar1 = Links(int)::s_Sentinel;
}
if (iVar2 == -1) {
piVar6 = &Links(int)::s_Sentinel;
}
else {
piVar6 = (int *)(local_20 + *(int *)(this + 4));
}
local_28 = *piVar6;
}
if (local_28 != -1) {
if ((cVar1 == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), cVar1 = Links(int)::s_Sentinel,
iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
cVar1 = Links(int)::s_Sentinel;
}
puVar5 = &Links(int)::s_Sentinel;
if (iVar2 != -1) {
puVar5 = (undefined4 *)(local_20 + *(int *)(this + 4));
}
*(undefined4 *)(*(int *)(this + 4) + 8 + local_28 * 0x1c) = puVar5[2];
}
if (iVar2 == *(int *)(this + 0x10)) {
*(int *)(this + 0x10) = local_28;
}
else {
if ((cVar1 == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), cVar1 = Links(int)::s_Sentinel,
iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
cVar1 = Links(int)::s_Sentinel;
}
if (iVar2 == -1) {
puVar5 = &Links(int)::s_Sentinel;
}
else {
puVar5 = (undefined4 *)(local_20 + *(int *)(this + 4));
}
iVar3 = puVar5[2];
if ((cVar1 == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), cVar1 = Links(int)::s_Sentinel,
iVar4 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
cVar1 = Links(int)::s_Sentinel;
}
if (iVar3 == -1) {
piVar6 = &Links(int)::s_Sentinel;
}
else {
piVar6 = (int *)(iVar3 * 0x1c + *(int *)(this + 4));
}
if (iVar2 == *piVar6) {
if ((cVar1 == '\0') && (iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
puVar5 = &Links(int)::s_Sentinel;
if (iVar2 != -1) {
puVar5 = (undefined4 *)(*(int *)(this + 4) + local_20);
}
*(int *)(*(int *)(this + 4) + puVar5[2] * 0x1c) = local_28;
cVar1 = Links(int)::s_Sentinel;
}
else {
if ((cVar1 == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), cVar1 = Links(int)::s_Sentinel,
iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
cVar1 = Links(int)::s_Sentinel;
}
puVar5 = &Links(int)::s_Sentinel;
if (iVar2 != -1) {
puVar5 = (undefined4 *)(*(int *)(this + 4) + local_20);
}
*(int *)(*(int *)(this + 4) + 4 + puVar5[2] * 0x1c) = local_28;
}
}
if ((cVar1 == '\0') && (iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar2 == -1) {
local_30 = DAT_000d2834;
}
else {
local_30 = *(int *)(*(int *)(this + 4) + 0xc + local_20);
if (iVar2 == param_1) goto LAB_00068cc3;
}
if (Links(int)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
bVar7 = Links(int)::s_Sentinel != '\0';
*(undefined4 *)(*(int *)(this + 4) + 8 + local_20) =
*(undefined4 *)(*(int *)(this + 4) + 8 + local_2c);
if (bVar7) goto LAB_00068e56;
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
bVar7 = Links(int)::s_Sentinel == '\0';
*(undefined4 *)(*(int *)(this + 4) + 4 + local_20) =
*(undefined4 *)(*(int *)(this + 4) + 4 + local_2c);
if ((bVar7) && (iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
}
else {
*(undefined4 *)(*(int *)(this + 4) + 8 + local_20) =
*(undefined4 *)(*(int *)(this + 4) + 8 + local_2c);
LAB_00068e56:
*(undefined4 *)(*(int *)(this + 4) + 4 + local_20) =
*(undefined4 *)(*(int *)(this + 4) + 4 + local_2c);
}
*(undefined4 *)(*(int *)(this + 4) + local_20) = *(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') {
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar3 = *(int *)(*(int *)(this + 4) + 8 + local_2c);
if ((Links(int)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
}
else {
iVar3 = *(int *)(*(int *)(this + 4) + 8 + local_2c);
}
if (iVar3 == -1) {
piVar6 = &Links(int)::s_Sentinel;
}
else {
piVar6 = (int *)(iVar3 * 0x1c + *(int *)(this + 4));
}
if (param_1 == *piVar6) {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
*(int *)(*(int *)(this + 4) + *(int *)(*(int *)(this + 4) + 8 + local_2c) * 0x1c) = iVar2;
cVar1 = Links(int)::s_Sentinel;
}
else {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 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) * 0x1c) = iVar2;
}
}
if ((cVar1 == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), cVar1 = Links(int)::s_Sentinel,
iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
cVar1 = Links(int)::s_Sentinel;
}
if (iVar2 == -1) {
piVar6 = &Links(int)::s_Sentinel;
}
else {
piVar6 = (int *)(local_20 + *(int *)(this + 4));
}
if (*piVar6 != -1) {
if ((cVar1 == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), cVar1 = Links(int)::s_Sentinel,
iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
cVar1 = Links(int)::s_Sentinel;
}
piVar6 = &Links(int)::s_Sentinel;
if (iVar2 != -1) {
piVar6 = (int *)(local_20 + *(int *)(this + 4));
}
*(int *)(*(int *)(this + 4) + 8 + *piVar6 * 0x1c) = iVar2;
}
if ((cVar1 == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), cVar1 = Links(int)::s_Sentinel,
iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
cVar1 = Links(int)::s_Sentinel;
}
if (iVar2 == -1) {
puVar5 = &Links(int)::s_Sentinel;
}
else {
puVar5 = (undefined4 *)(local_20 + *(int *)(this + 4));
}
if (puVar5[1] != -1) {
if ((cVar1 == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), cVar1 = Links(int)::s_Sentinel,
iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
cVar1 = Links(int)::s_Sentinel;
}
puVar5 = &Links(int)::s_Sentinel;
if (iVar2 != -1) {
puVar5 = (undefined4 *)(local_20 + *(int *)(this + 4));
}
*(int *)(*(int *)(this + 4) + 8 + puVar5[1] * 0x1c) = iVar2;
}
if ((cVar1 == '\0') && (iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_000d282c = 0xffffffff;
DAT_000d2830 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
*(undefined4 *)(*(int *)(this + 4) + 0xc + local_20) =
*(undefined4 *)(*(int *)(this + 4) + 0xc + local_2c);
LAB_00068cc3:
if ((local_28 != -1) && (local_30 == 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.