CUtlRBTree<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int,CUtlMap<char_const*,ConceptHistory_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int>,int>>::Unlink
0x005d8910 · 3205 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIPKc16ConceptHistory_tiE6Node_tEiNS4_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS5_iEiEE6UnlinkEi
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlMap<char const*, ConceptHistory_t, int>::Node_t, int, CUtlMap<char const*,
ConceptHistory_t, int>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<char const*,
ConceptHistory_t, int>::Node_t, int>, int> >::Unlink(int) */
void __thiscall
CUtlRBTree<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int,CUtlMap<char_const*,ConceptHistory_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int>,int>>
::Unlink(CUtlRBTree<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int,CUtlMap<char_const*,ConceptHistory_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,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;
iVar2 = param_1;
if (Links(int)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00f21f78 = 0xffffffff;
DAT_00f21f7c = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
local_20._0_1_ = Links(int)::s_Sentinel;
iVar3 = param_1 * 0xd4;
piVar7 = (int *)(*(int *)(this + 4) + iVar3);
if (*piVar7 != -1) {
if (Links(int)::s_Sentinel != '\0') goto LAB_005d8adf;
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00f21f78 = 0xffffffff;
DAT_00f21f7c = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar4 = *(int *)(*(int *)(this + 4) + iVar3 + 4);
local_20._0_1_ = Links(int)::s_Sentinel;
if (iVar4 != -1) {
if (Links(int)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar2 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00f21f78 = 0xffffffff;
DAT_00f21f7c = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar4 = *(int *)(*(int *)(this + 4) + 4 + iVar3);
}
goto LAB_005d8f03;
}
}
}
else {
piVar7 = (int *)(*(int *)(this + 4) + param_1 * 0xd4);
if (*piVar7 != -1) {
LAB_005d8adf:
iVar4 = piVar7[1];
local_20._0_1_ = Links(int)::s_Sentinel;
if (iVar4 != -1) {
LAB_005d8f03:
local_20._0_1_ = Links(int)::s_Sentinel;
if (Links(int)::s_Sentinel == '\0') goto LAB_005d8f3b;
LAB_005d8f10:
if (iVar4 == -1) goto LAB_005d8f57;
while (iVar2 = iVar4, *(int *)(iVar4 * 0xd4 + *(int *)(this + 4)) != -1) {
while( true ) {
if (((char)local_20 == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel),
local_20._0_1_ = Links(int)::s_Sentinel, iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00f21f78 = 0xffffffff;
DAT_00f21f7c = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
local_20._0_1_ = Links(int)::s_Sentinel;
}
iVar4 = Links(int)::s_Sentinel;
if (iVar2 != -1) {
iVar4 = *(int *)(iVar2 * 0xd4 + *(int *)(this + 4));
}
if ((char)local_20 != '\0') goto LAB_005d8f10;
LAB_005d8f3b:
iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar2 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00f21f78 = 0xffffffff;
DAT_00f21f7c = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
local_20._0_1_ = Links(int)::s_Sentinel;
if (iVar4 != -1) break;
LAB_005d8f57:
iVar2 = iVar4;
if (Links(int)::s_Sentinel == -1) goto LAB_005d895e;
}
}
}
}
}
LAB_005d895e:
iVar3 = iVar2 * 0xd4;
local_2c = param_1 * 0xd4;
if ((char)local_20 == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00f21f78 = 0xffffffff;
DAT_00f21f7c = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
local_20._0_1_ = Links(int)::s_Sentinel;
if (iVar2 != -1) goto LAB_005d8971;
LAB_005d8caf:
if (Links(int)::s_Sentinel != -1) goto LAB_005d897f;
LAB_005d8cc0:
if ((char)local_20 == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00f21f78 = 0xffffffff;
DAT_00f21f7c = 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_005d8caf;
LAB_005d8971:
if (*(int *)(*(int *)(this + 4) + iVar3) == -1) goto LAB_005d8cc0;
LAB_005d897f:
if ((char)local_20 == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00f21f78 = 0xffffffff;
DAT_00f21f7c = 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_00f21f78 = 0xffffffff;
DAT_00f21f7c = 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 * 0xd4) = 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_00f21f78 = 0xffffffff;
DAT_00f21f7c = 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_00f21f78 = 0xffffffff;
DAT_00f21f7c = 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 * 0xd4 + *(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_00f21f78 = 0xffffffff;
DAT_00f21f7c = 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] * 0xd4) = 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_00f21f78 = 0xffffffff;
DAT_00f21f7c = 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] * 0xd4) = local_28;
}
}
if (((char)local_20 == '\0') && (iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)
) {
Links(int)::s_Sentinel = -1;
DAT_00f21f78 = 0xffffffff;
DAT_00f21f7c = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar2 == -1) {
local_20 = DAT_00f21f80;
}
else {
local_20 = *(int *)(*(int *)(this + 4) + 0xc + iVar3);
if (iVar2 == param_1) goto LAB_005d8a6f;
}
if (Links(int)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00f21f78 = 0xffffffff;
DAT_00f21f7c = 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_005d8b1b;
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00f21f78 = 0xffffffff;
DAT_00f21f7c = 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_00f21f78 = 0xffffffff;
DAT_00f21f7c = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
}
else {
*(undefined4 *)(*(int *)(this + 4) + 8 + iVar3) =
*(undefined4 *)(*(int *)(this + 4) + 8 + local_2c);
LAB_005d8b1b:
*(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_00f21f78 = 0xffffffff;
DAT_00f21f7c = 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_00f21f78 = 0xffffffff;
DAT_00f21f7c = 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 * 0xd4 + *(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_00f21f78 = 0xffffffff;
DAT_00f21f7c = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
*(int *)(*(int *)(this + 4) + *(int *)(*(int *)(this + 4) + 8 + local_2c) * 0xd4) = 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_00f21f78 = 0xffffffff;
DAT_00f21f7c = 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) * 0xd4) = 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_00f21f78 = 0xffffffff;
DAT_00f21f7c = 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_00f21f78 = 0xffffffff;
DAT_00f21f7c = 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 * 0xd4) = 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_00f21f78 = 0xffffffff;
DAT_00f21f7c = 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_00f21f78 = 0xffffffff;
DAT_00f21f7c = 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] * 0xd4) = iVar2;
}
if ((cVar1 == '\0') && (iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar2 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00f21f78 = 0xffffffff;
DAT_00f21f7c = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
*(undefined4 *)(*(int *)(this + 4) + 0xc + iVar3) =
*(undefined4 *)(*(int *)(this + 4) + 0xc + local_2c);
LAB_005d8a6f:
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.