CUtlRBTree<CUtlMap<char_const*,CDecalEmitterSystem::DecalEntry,int>::Node_t,int,CUtlMap<char_const*,CDecalEmitterSystem::DecalEntry,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CDecalEmitterSystem::DecalEntry,int>::Node_t,int>,int>>::InsertRebalance
0x00448980 · 2562 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIPKcN19CDecalEmitterSystem10DecalEntryEiE6Node_tEiNS5_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS6_iEiEE15InsertRebalanceEi
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlMap<char const*, CDecalEmitterSystem::DecalEntry, int>::Node_t, int, CUtlMap<char
const*, CDecalEmitterSystem::DecalEntry, int>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<char
const*, CDecalEmitterSystem::DecalEntry, int>::Node_t, int>, int> >::InsertRebalance(int) */
void __thiscall
CUtlRBTree<CUtlMap<char_const*,CDecalEmitterSystem::DecalEntry,int>::Node_t,int,CUtlMap<char_const*,CDecalEmitterSystem::DecalEntry,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CDecalEmitterSystem::DecalEntry,int>::Node_t,int>,int>>
::InsertRebalance(CUtlRBTree<CUtlMap<char_const*,CDecalEmitterSystem::DecalEntry,int>::Node_t,int,CUtlMap<char_const*,CDecalEmitterSystem::DecalEntry,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CDecalEmitterSystem::DecalEntry,int>::Node_t,int>,int>>
*this,int param_1)
{
int iVar1;
int *piVar2;
int iVar3;
int iVar4;
int iVar5;
undefined4 *puVar6;
undefined4 *puVar7;
do {
iVar1 = *(int *)(this + 0x10);
if (param_1 == iVar1) {
LAB_004489e4:
*(undefined4 *)(*(int *)(this + 4) + iVar1 * 0x28 + 0xc) = 1;
return;
}
if (Links(int)::s_Sentinel == '\0') {
iVar1 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar1 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f158c8 = -1;
DAT_00f158cc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) goto LAB_00448d15;
LAB_004489b1:
puVar6 = (undefined4 *)(*(int *)(this + 4) + param_1 * 0x28);
}
else {
if (param_1 != -1) goto LAB_004489b1;
LAB_00448d15:
puVar6 = &Links(int)::s_Sentinel;
}
iVar1 = puVar6[2];
if ((Links(int)::s_Sentinel == '\0') &&
(iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar5 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f158c8 = -1;
DAT_00f158cc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar1 == -1) goto LAB_00448ce0;
LAB_004489d1:
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x28);
}
else {
if (iVar1 != -1) goto LAB_004489d1;
LAB_00448ce0:
puVar6 = &Links(int)::s_Sentinel;
}
if (puVar6[3] != 0) {
iVar1 = *(int *)(this + 0x10);
goto LAB_004489e4;
}
if (Links(int)::s_Sentinel == '\0') {
iVar1 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar1 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f158c8 = -1;
DAT_00f158cc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) goto LAB_00448c85;
LAB_00448a19:
puVar6 = (undefined4 *)(*(int *)(this + 4) + param_1 * 0x28);
}
else {
if (param_1 != -1) goto LAB_00448a19;
LAB_00448c85:
puVar6 = &Links(int)::s_Sentinel;
}
iVar1 = puVar6[2];
if (Links(int)::s_Sentinel == '\0') {
iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar5 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f158c8 = -1;
DAT_00f158cc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar1 == -1) goto LAB_00448c54;
LAB_00448a39:
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x28);
}
else {
if (iVar1 != -1) goto LAB_00448a39;
LAB_00448c54:
puVar6 = &Links(int)::s_Sentinel;
}
iVar5 = puVar6[2];
if (Links(int)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f158c8 = -1;
DAT_00f158cc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar1 == -1) goto LAB_00448c1c;
LAB_00448a56:
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x28);
}
else {
if (iVar1 != -1) goto LAB_00448a56;
LAB_00448c1c:
puVar6 = &Links(int)::s_Sentinel;
}
iVar4 = puVar6[2];
if (Links(int)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f158c8 = -1;
DAT_00f158cc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_00448a6a;
}
if (iVar4 == -1) goto LAB_00448bea;
LAB_00448a73:
piVar2 = (int *)(*(int *)(this + 4) + iVar4 * 0x28);
}
else {
LAB_00448a6a:
if (iVar4 != -1) goto LAB_00448a73;
LAB_00448bea:
piVar2 = &Links(int)::s_Sentinel;
}
if (iVar1 == *piVar2) {
if (Links(int)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f158c8 = -1;
DAT_00f158cc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar5 == -1) goto LAB_00448e24;
LAB_00448a95:
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar5 * 0x28);
}
else {
if (iVar5 != -1) goto LAB_00448a95;
LAB_00448e24:
puVar6 = &Links(int)::s_Sentinel;
}
iVar4 = puVar6[1];
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f158c8 = -1;
DAT_00f158cc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar3 = DAT_00f158d0;
if (iVar4 != -1) {
iVar3 = *(int *)(*(int *)(this + 4) + iVar4 * 0x28 + 0xc);
}
if (iVar3 == 0) {
LAB_00448ac6:
*(undefined4 *)(*(int *)(this + 4) + iVar1 * 0x28 + 0xc) = 1;
*(undefined4 *)(*(int *)(this + 4) + iVar4 * 0x28 + 0xc) = 1;
*(undefined4 *)(*(int *)(this + 4) + iVar5 * 0x28 + 0xc) = 0;
param_1 = iVar5;
}
else {
if (Links(int)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f158c8 = -1;
DAT_00f158cc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) goto LAB_00449115;
LAB_00448d99:
iVar4 = *(int *)(*(int *)(this + 4) + param_1 * 0x28 + 8);
if (Links(int)::s_Sentinel != '\0') goto LAB_00448db0;
LAB_00449128:
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 == 0) goto LAB_00448db0;
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f158c8 = -1;
DAT_00f158cc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar4 == -1) goto LAB_00449180;
LAB_00448db9:
if (param_1 != *(int *)(*(int *)(this + 4) + iVar4 * 0x28 + 4)) goto LAB_00448dce;
LAB_00449198:
RotateLeft(this,iVar1);
if ((Links(int)::s_Sentinel == '\0') &&
(iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar5 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f158c8 = -1;
DAT_00f158cc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar1 == -1) {
puVar6 = &Links(int)::s_Sentinel;
}
else {
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x28);
}
iVar5 = puVar6[2];
if ((Links(int)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f158c8 = -1;
DAT_00f158cc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar5 == -1) {
puVar7 = &Links(int)::s_Sentinel;
puVar6 = (undefined4 *)(*(int *)(this + 4) + -0x28);
}
else {
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar5 * 0x28);
puVar7 = puVar6;
}
iVar5 = puVar7[2];
param_1 = iVar1;
}
else {
if (param_1 != -1) goto LAB_00448d99;
LAB_00449115:
iVar4 = DAT_00f158cc;
if (Links(int)::s_Sentinel == '\0') goto LAB_00449128;
LAB_00448db0:
if (iVar4 != -1) goto LAB_00448db9;
LAB_00449180:
if (param_1 == DAT_00f158c8) goto LAB_00449198;
LAB_00448dce:
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x28);
}
puVar6[3] = 1;
*(undefined4 *)(*(int *)(this + 4) + iVar5 * 0x28 + 0xc) = 0;
RotateRight(this,iVar5);
}
}
else {
if (Links(int)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f158c8 = -1;
DAT_00f158cc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar5 == -1) goto LAB_00448eb4;
LAB_00448b11:
piVar2 = (int *)(*(int *)(this + 4) + iVar5 * 0x28);
}
else {
if (iVar5 != -1) goto LAB_00448b11;
LAB_00448eb4:
piVar2 = &Links(int)::s_Sentinel;
}
iVar4 = *piVar2;
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f158c8 = -1;
DAT_00f158cc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar4 == -1) goto LAB_00448e80;
LAB_00448b2d:
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar4 * 0x28);
}
else {
if (iVar4 != -1) goto LAB_00448b2d;
LAB_00448e80:
puVar6 = &Links(int)::s_Sentinel;
}
if (puVar6[3] == 0) goto LAB_00448ac6;
if (Links(int)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f158c8 = -1;
DAT_00f158cc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) goto LAB_00449075;
LAB_00448b56:
iVar4 = *(int *)(*(int *)(this + 4) + param_1 * 0x28 + 8);
if (Links(int)::s_Sentinel != '\0') goto LAB_00448b6d;
LAB_00449088:
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 == 0) goto LAB_00448b6d;
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f158c8 = -1;
DAT_00f158cc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar4 == -1) goto LAB_004490e0;
LAB_00448b76:
piVar2 = (int *)(*(int *)(this + 4) + iVar4 * 0x28);
}
else {
if (param_1 != -1) goto LAB_00448b56;
LAB_00449075:
iVar4 = DAT_00f158cc;
if (Links(int)::s_Sentinel == '\0') goto LAB_00449088;
LAB_00448b6d:
if (iVar4 != -1) goto LAB_00448b76;
LAB_004490e0:
piVar2 = &Links(int)::s_Sentinel;
}
if (param_1 == *piVar2) {
RotateRight(this,iVar1);
if ((Links(int)::s_Sentinel == '\0') &&
(iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar5 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f158c8 = -1;
DAT_00f158cc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar1 == -1) {
puVar6 = &Links(int)::s_Sentinel;
}
else {
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x28);
}
iVar5 = puVar6[2];
if ((Links(int)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f158c8 = -1;
DAT_00f158cc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar5 == -1) {
puVar7 = &Links(int)::s_Sentinel;
puVar6 = (undefined4 *)(*(int *)(this + 4) + -0x28);
}
else {
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar5 * 0x28);
puVar7 = puVar6;
}
iVar5 = puVar7[2];
param_1 = iVar1;
}
else {
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x28);
}
puVar6[3] = 1;
*(undefined4 *)(*(int *)(this + 4) + iVar5 * 0x28 + 0xc) = 0;
RotateLeft(this,iVar5);
}
} 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.