CUtlRBTree<CUtlMap<studiohdr_t_const*,StudioHdrToActivityMapEntry_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<studiohdr_t_const*,StudioHdrToActivityMapEntry_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<studiohdr_t_const*,StudioHdrToActivityMapEntry_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::InsertRebalance
0x005a4640 · 2919 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIPK11studiohdr_t29StudioHdrToActivityMapEntry_ttE6Node_tEtNS5_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS6_tEtEE15InsertRebalanceEt
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlMap<studiohdr_t const*, StudioHdrToActivityMapEntry_t, unsigned short>::Node_t,
unsigned short, CUtlMap<studiohdr_t const*, StudioHdrToActivityMapEntry_t, unsigned
short>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<studiohdr_t const*,
StudioHdrToActivityMapEntry_t, unsigned short>::Node_t, unsigned short>, unsigned short>
>::InsertRebalance(unsigned short) */
void __thiscall
CUtlRBTree<CUtlMap<studiohdr_t_const*,StudioHdrToActivityMapEntry_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<studiohdr_t_const*,StudioHdrToActivityMapEntry_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<studiohdr_t_const*,StudioHdrToActivityMapEntry_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::InsertRebalance(CUtlRBTree<CUtlMap<studiohdr_t_const*,StudioHdrToActivityMapEntry_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<studiohdr_t_const*,StudioHdrToActivityMapEntry_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<studiohdr_t_const*,StudioHdrToActivityMapEntry_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*this,ushort param_1)
{
ushort uVar1;
ushort uVar2;
short sVar3;
undefined2 *puVar4;
undefined2 *puVar5;
int iVar6;
ushort uVar7;
ushort *puVar8;
uint uVar9;
uint uVar10;
uint uVar11;
ushort uVar12;
uint uVar13;
uVar13 = (uint)param_1;
do {
uVar1 = *(ushort *)(this + 0x10);
uVar12 = (ushort)uVar13;
if (uVar12 == uVar1) {
LAB_005a46af:
*(undefined2 *)((uint)uVar1 * 0x58 + *(int *)(this + 4) + 6) = 1;
return;
}
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
DAT_00f21322 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar12 == 0xffff) goto LAB_005a4a35;
LAB_005a4672:
puVar4 = (undefined2 *)(uVar13 * 0x58 + *(int *)(this + 4));
}
else {
if (uVar12 != 0xffff) goto LAB_005a4672;
LAB_005a4a35:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
uVar1 = puVar4[2];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar6 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar1 == 0xffff) goto LAB_005a4a00;
LAB_005a4696:
puVar4 = (undefined2 *)((uint)uVar1 * 0x58 + *(int *)(this + 4));
}
else {
if (uVar1 != 0xffff) goto LAB_005a4696;
LAB_005a4a00:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
if (puVar4[3] != 0) {
uVar1 = *(ushort *)(this + 0x10);
goto LAB_005a46af;
}
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
DAT_00f21322 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar12 == 0xffff) goto LAB_005a49a5;
LAB_005a46e9:
puVar4 = (undefined2 *)(uVar13 * 0x58 + *(int *)(this + 4));
}
else {
if (uVar12 != 0xffff) goto LAB_005a46e9;
LAB_005a49a5:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
uVar1 = puVar4[2];
uVar11 = (uint)uVar1;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) goto LAB_005a496d;
LAB_005a4713:
puVar4 = (undefined2 *)(uVar11 * 0x58 + *(int *)(this + 4));
}
else {
if (uVar1 != 0xffff) goto LAB_005a4713;
LAB_005a496d:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
uVar7 = puVar4[2];
uVar10 = (uint)uVar7;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005a472d;
}
if (uVar1 == 0xffff) goto LAB_005a493b;
LAB_005a4737:
puVar4 = (undefined2 *)(uVar11 * 0x58 + *(int *)(this + 4));
}
else {
LAB_005a472d:
if (uVar1 != 0xffff) goto LAB_005a4737;
LAB_005a493b:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
uVar2 = puVar4[2];
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005a474a;
}
if (uVar2 == 0xffff) goto LAB_005a4901;
LAB_005a4754:
puVar8 = (ushort *)((uint)uVar2 * 0x58 + *(int *)(this + 4));
}
else {
LAB_005a474a:
if (uVar2 != 0xffff) goto LAB_005a4754;
LAB_005a4901:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
if (uVar1 == *puVar8) {
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005a476e;
}
if (uVar7 == 0xffff) goto LAB_005a4b6b;
LAB_005a4778:
puVar4 = (undefined2 *)(uVar10 * 0x58 + *(int *)(this + 4));
}
else {
LAB_005a476e:
if (uVar7 != 0xffff) goto LAB_005a4778;
LAB_005a4b6b:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
uVar7 = puVar4[1];
uVar9 = (uint)uVar7;
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar6 != 0)) {
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
sVar3 = DAT_00f21326;
if (uVar7 != 0xffff) {
sVar3 = *(short *)(uVar9 * 0x58 + *(int *)(this + 4) + 6);
}
if (sVar3 == 0) {
LAB_005a47ab:
*(undefined2 *)(uVar11 * 0x58 + *(int *)(this + 4) + 6) = 1;
*(undefined2 *)(uVar9 * 0x58 + *(int *)(this + 4) + 6) = 1;
*(undefined2 *)(uVar10 * 0x58 + *(int *)(this + 4) + 6) = 0;
uVar13 = uVar10;
}
else {
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005a4abf;
}
if (uVar12 == 0xffff) goto LAB_005a4ef3;
LAB_005a4ac9:
uVar7 = *(ushort *)(uVar13 * 0x58 + *(int *)(this + 4) + 4);
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_005a4ade;
LAB_005a4f08:
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 == 0) goto LAB_005a4ade;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar7 == 0xffff) goto LAB_005a4f68;
LAB_005a4ae8:
if (uVar12 != *(ushort *)((uint)uVar7 * 0x58 + *(int *)(this + 4) + 2)) goto LAB_005a4b00;
LAB_005a4f80:
RotateLeft(this,uVar1);
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar6 != 0)) {
DAT_00f21322 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar4 = (undefined2 *)(uVar11 * 0x58 + *(int *)(this + 4));
}
uVar1 = puVar4[2];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar6 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
puVar5 = (undefined2 *)(*(int *)(this + 4) + 0x57ffa8);
}
else {
puVar5 = (undefined2 *)((uint)uVar1 * 0x58 + *(int *)(this + 4));
puVar4 = puVar5;
}
uVar10 = (uint)(ushort)puVar4[2];
}
else {
LAB_005a4abf:
if (uVar12 != 0xffff) goto LAB_005a4ac9;
LAB_005a4ef3:
uVar7 = DAT_00f21324;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_005a4f08;
LAB_005a4ade:
if (uVar7 != 0xffff) goto LAB_005a4ae8;
LAB_005a4f68:
if (uVar12 == DAT_00f21322) goto LAB_005a4f80;
LAB_005a4b00:
puVar5 = (undefined2 *)(uVar11 * 0x58 + *(int *)(this + 4));
uVar11 = uVar13;
}
puVar5[3] = 1;
*(undefined2 *)(uVar10 * 0x58 + *(int *)(this + 4) + 6) = 0;
RotateRight(this,(ushort)uVar10);
uVar13 = uVar11;
}
}
else {
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005a4800;
}
if (uVar7 == 0xffff) goto LAB_005a4c1b;
LAB_005a480a:
puVar8 = (ushort *)(uVar10 * 0x58 + *(int *)(this + 4));
}
else {
LAB_005a4800:
if (uVar7 != 0xffff) goto LAB_005a480a;
LAB_005a4c1b:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
uVar7 = *puVar8;
uVar9 = (uint)uVar7;
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar6 != 0)) {
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar7 == 0xffff) goto LAB_005a4be0;
LAB_005a4828:
puVar4 = (undefined2 *)(uVar9 * 0x58 + *(int *)(this + 4));
}
else {
if (uVar7 != 0xffff) goto LAB_005a4828;
LAB_005a4be0:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
if (puVar4[3] == 0) goto LAB_005a47ab;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005a484b;
}
if (uVar12 == 0xffff) goto LAB_005a4e43;
LAB_005a4855:
uVar7 = *(ushort *)(uVar13 * 0x58 + *(int *)(this + 4) + 4);
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_005a486a;
LAB_005a4e58:
iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar6 == 0) goto LAB_005a486a;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar7 == 0xffff) goto LAB_005a4eb8;
LAB_005a4874:
puVar8 = (ushort *)((uint)uVar7 * 0x58 + *(int *)(this + 4));
}
else {
LAB_005a484b:
if (uVar12 != 0xffff) goto LAB_005a4855;
LAB_005a4e43:
uVar7 = DAT_00f21324;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_005a4e58;
LAB_005a486a:
if (uVar7 != 0xffff) goto LAB_005a4874;
LAB_005a4eb8:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
if (uVar12 == *puVar8) {
RotateRight(this,uVar1);
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar6 != 0)) {
DAT_00f21322 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar4 = (undefined2 *)(uVar11 * 0x58 + *(int *)(this + 4));
}
uVar1 = puVar4[2];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar6 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
puVar5 = (undefined2 *)(*(int *)(this + 4) + 0x57ffa8);
}
else {
puVar5 = (undefined2 *)((uint)uVar1 * 0x58 + *(int *)(this + 4));
puVar4 = puVar5;
}
uVar10 = (uint)(ushort)puVar4[2];
}
else {
puVar5 = (undefined2 *)(uVar11 * 0x58 + *(int *)(this + 4));
uVar11 = uVar13;
}
puVar5[3] = 1;
*(undefined2 *)(uVar10 * 0x58 + *(int *)(this + 4) + 6) = 0;
RotateLeft(this,(ushort)uVar10);
uVar13 = uVar11;
}
} 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.