CUtlRBTree<CUtlSymbol,unsigned_short,bool(*)(CUtlSymbol_const&,CUtlSymbol_const&),CUtlMemory<UtlRBTreeNode_t<CUtlSymbol,unsigned_short>,unsigned_short>>::InsertRebalance
0x00191500 · 2918 bytes · __thiscall
_ZN10CUtlRBTreeI10CUtlSymboltPFbRKS0_S2_E10CUtlMemoryI15UtlRBTreeNode_tIS0_tEtEE15InsertRebalanceEt
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlSymbol, unsigned short, bool (*)(CUtlSymbol const&, CUtlSymbol const&),
CUtlMemory<UtlRBTreeNode_t<CUtlSymbol, unsigned short>, unsigned short>
>::InsertRebalance(unsigned short) */
void __thiscall
CUtlRBTree<CUtlSymbol,unsigned_short,bool(*)(CUtlSymbol_const&,CUtlSymbol_const&),CUtlMemory<UtlRBTreeNode_t<CUtlSymbol,unsigned_short>,unsigned_short>>
::InsertRebalance(CUtlRBTree<CUtlSymbol,unsigned_short,bool(*)(CUtlSymbol_const&,CUtlSymbol_const&),CUtlMemory<UtlRBTreeNode_t<CUtlSymbol,unsigned_short>,unsigned_short>>
*this,ushort param_1)
{
ushort uVar1;
int iVar2;
undefined2 *puVar3;
ushort uVar4;
ushort *puVar5;
undefined2 *puVar6;
uint uVar7;
ushort local_20;
ushort local_1e;
local_1e = param_1;
do {
uVar1 = *(ushort *)(this + 0x10);
if (local_1e == uVar1) {
LAB_00191575:
*(undefined2 *)(*(int *)(this + 4) + (uint)uVar1 * 10 + 6) = 1;
return;
}
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar2 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003412c6 = 0xffff;
DAT_003412c8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (local_1e != 0xffff) goto LAB_0019153f;
LAB_001918c1:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (local_1e == 0xffff) goto LAB_001918c1;
LAB_0019153f:
puVar3 = (undefined2 *)(*(int *)(this + 4) + (uint)local_1e * 10);
}
uVar1 = puVar3[2];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
DAT_003412c6 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003412c8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar1 != 0xffff) goto LAB_00191561;
LAB_00191888:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar1 == 0xffff) goto LAB_00191888;
LAB_00191561:
puVar3 = (undefined2 *)(*(int *)(this + 4) + (uint)uVar1 * 10);
}
if (puVar3[3] != 0) {
uVar1 = *(ushort *)(this + 0x10);
goto LAB_00191575;
}
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar2 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003412c6 = 0xffff;
DAT_003412c8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (local_1e != 0xffff) goto LAB_001915ad;
LAB_00191829:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (local_1e == 0xffff) goto LAB_00191829;
LAB_001915ad:
puVar3 = (undefined2 *)(*(int *)(this + 4) + (uint)local_1e * 10);
}
uVar1 = puVar3[2];
uVar7 = (uint)uVar1;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar2 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003412c6 = 0xffff;
DAT_003412c8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 != 0xffff) goto LAB_001915d2;
LAB_001917b5:
local_20 = DAT_003412c8;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_001915eb;
LAB_001917d0:
iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar2 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003412c6 = 0xffff;
DAT_003412c8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 != 0xffff) goto LAB_001915f5;
LAB_001917f5:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar1 == 0xffff) goto LAB_001917b5;
LAB_001915d2:
local_20 = *(ushort *)(*(int *)(this + 4) + uVar7 * 10 + 4);
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_001917d0;
LAB_001915eb:
if (uVar1 == 0xffff) goto LAB_001917f5;
LAB_001915f5:
puVar3 = (undefined2 *)(*(int *)(this + 4) + uVar7 * 10);
}
uVar4 = puVar3[2];
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar2 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003412c8 = 0xffff;
DAT_003412c6 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_0019160a;
}
if (uVar4 != 0xffff) goto LAB_00191614;
LAB_00191783:
puVar5 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_0019160a:
if (uVar4 == 0xffff) goto LAB_00191783;
LAB_00191614:
puVar5 = (ushort *)(*(int *)(this + 4) + (uint)uVar4 * 10);
}
if (uVar1 == *puVar5) {
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar2 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003412c6 = 0xffff;
DAT_003412c8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (local_20 != 0xffff) goto LAB_0019163f;
LAB_00191a89:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (local_20 == 0xffff) goto LAB_00191a89;
LAB_0019163f:
puVar3 = (undefined2 *)(*(int *)(this + 4) + (uint)local_20 * 10);
}
uVar4 = puVar3[1];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003412c6 = 0xffff;
DAT_003412c8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar4 != 0xffff) goto LAB_00191661;
LAB_001919b8:
if (DAT_003412ca == 0) goto LAB_00191678;
LAB_001919d0:
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar2 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003412c6 = 0xffff;
DAT_003412c8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (local_1e != 0xffff) goto LAB_001919ed;
LAB_00191d69:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (local_1e == 0xffff) goto LAB_00191d69;
LAB_001919ed:
puVar3 = (undefined2 *)(*(int *)(this + 4) + (uint)local_1e * 10);
}
uVar4 = puVar3[2];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003412c6 = 0xffff;
DAT_003412c8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar4 != 0xffff) goto LAB_00191a0f;
LAB_00191cc0:
if (local_1e != DAT_003412c6) goto LAB_00191a29;
LAB_00191cd8:
RotateLeft(this,uVar1);
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003412c6 = 0xffff;
DAT_003412c8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) {
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar3 = (undefined2 *)(*(int *)(this + 4) + uVar7 * 10);
}
uVar4 = puVar3[2];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003412c6 = 0xffff;
DAT_003412c8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar4 == 0xffff) {
puVar6 = &Links(unsigned_short)::s_Sentinel;
puVar3 = (undefined2 *)(*(int *)(this + 4) + 0x9fff6);
}
else {
puVar3 = (undefined2 *)(*(int *)(this + 4) + (uint)uVar4 * 10);
puVar6 = puVar3;
}
local_20 = puVar6[2];
local_1e = uVar1;
}
else {
if (uVar4 == 0xffff) goto LAB_00191cc0;
LAB_00191a0f:
if (local_1e == *(ushort *)(*(int *)(this + 4) + (uint)uVar4 * 10 + 2)) goto LAB_00191cd8;
LAB_00191a29:
puVar3 = (undefined2 *)(*(int *)(this + 4) + uVar7 * 10);
}
puVar3[3] = 1;
*(undefined2 *)(*(int *)(this + 4) + (uint)local_20 * 10 + 6) = 0;
RotateRight(this,local_20);
}
else {
if (uVar4 == 0xffff) goto LAB_001919b8;
LAB_00191661:
if (*(short *)(*(int *)(this + 4) + (uint)uVar4 * 10 + 6) != 0) goto LAB_001919d0;
LAB_00191678:
*(undefined2 *)(*(int *)(this + 4) + uVar7 * 10 + 6) = 1;
local_1e = local_20;
*(undefined2 *)(*(int *)(this + 4) + (uint)uVar4 * 10 + 6) = 1;
*(undefined2 *)(*(int *)(this + 4) + (uint)local_20 * 10 + 6) = 0;
}
}
else {
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar2 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003412c6 = 0xffff;
DAT_003412c8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (local_20 != 0xffff) goto LAB_001916d6;
LAB_00191b29:
puVar5 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (local_20 == 0xffff) goto LAB_00191b29;
LAB_001916d6:
puVar5 = (ushort *)(*(int *)(this + 4) + (uint)local_20 * 10);
}
uVar4 = *puVar5;
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003412c6 = 0xffff;
DAT_003412c8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar4 != 0xffff) goto LAB_001916f7;
LAB_00191af0:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar4 == 0xffff) goto LAB_00191af0;
LAB_001916f7:
puVar3 = (undefined2 *)(*(int *)(this + 4) + (uint)uVar4 * 10);
}
if (puVar3[3] == 0) {
*(undefined2 *)(*(int *)(this + 4) + uVar7 * 10 + 6) = 1;
*(undefined2 *)(*(int *)(this + 4) + (uint)uVar4 * 10 + 6) = 1;
local_1e = local_20;
*(undefined2 *)(*(int *)(this + 4) + (uint)local_20 * 10 + 6) = 0;
}
else {
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar2 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003412c6 = 0xffff;
DAT_003412c8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (local_1e != 0xffff) goto LAB_001918ed;
LAB_00191dd9:
uVar4 = DAT_003412c8;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00191905;
LAB_00191df0:
iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar2 == 0) goto LAB_00191905;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003412c6 = 0xffff;
DAT_003412c8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar4 != 0xffff) goto LAB_0019190f;
LAB_00191e50:
if (local_1e != Links(unsigned_short)::s_Sentinel) goto LAB_00191928;
LAB_00191e68:
RotateRight(this,uVar1);
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003412c6 = 0xffff;
DAT_003412c8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) {
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar3 = (undefined2 *)(*(int *)(this + 4) + uVar7 * 10);
}
uVar4 = puVar3[2];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_003412c6 = 0xffff;
DAT_003412c8 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar4 == 0xffff) {
puVar6 = &Links(unsigned_short)::s_Sentinel;
puVar3 = (undefined2 *)(*(int *)(this + 4) + 0x9fff6);
}
else {
puVar3 = (undefined2 *)(*(int *)(this + 4) + (uint)uVar4 * 10);
puVar6 = puVar3;
}
local_20 = puVar6[2];
local_1e = uVar1;
}
else {
if (local_1e == 0xffff) goto LAB_00191dd9;
LAB_001918ed:
uVar4 = *(ushort *)(*(int *)(this + 4) + (uint)local_1e * 10 + 4);
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00191df0;
LAB_00191905:
if (uVar4 == 0xffff) goto LAB_00191e50;
LAB_0019190f:
if (local_1e == *(ushort *)(*(int *)(this + 4) + (uint)uVar4 * 10)) goto LAB_00191e68;
LAB_00191928:
puVar3 = (undefined2 *)(*(int *)(this + 4) + uVar7 * 10);
}
puVar3[3] = 1;
*(undefined2 *)(*(int *)(this + 4) + (uint)local_20 * 10 + 6) = 0;
RotateLeft(this,local_20);
}
}
} 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.