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>>::RemoveRebalance
0x005a1fe0 · 5742 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIPK11studiohdr_t29StudioHdrToActivityMapEntry_ttE6Node_tEtNS5_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS6_tEtEE15RemoveRebalanceEt
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>
>::RemoveRebalance(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>>
::RemoveRebalance(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)
{
short sVar1;
uint uVar2;
int iVar3;
undefined2 *puVar4;
ushort uVar5;
ushort uVar6;
ushort *puVar7;
uint uVar8;
ushort uVar9;
ushort uVar11;
bool bVar12;
int local_28;
int local_24;
uint uVar10;
uVar2 = (uint)*(ushort *)(this + 0x10);
uVar10 = (uint)param_1;
while (uVar9 = (ushort)uVar10, uVar9 != (ushort)uVar2) {
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
sVar1 = DAT_00f21326;
if (uVar9 != 0xffff) {
sVar1 = *(short *)(uVar10 * 0x58 + *(int *)(this + 4) + 6);
}
if (sVar1 != 1) break;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar9 != 0xffff) goto LAB_005a20c1;
LAB_005a22a5:
uVar2 = (uint)DAT_00f21324;
uVar11 = DAT_00f21324;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_005a20de;
LAB_005a22c0:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21324 = 0xffff;
DAT_00f21322 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005a20de;
}
if (uVar11 != 0xffff) goto LAB_005a20e8;
LAB_005a22eb:
if (uVar9 != Links(unsigned_short)::s_Sentinel) goto LAB_005a20f7;
LAB_005a2300:
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21324 = 0xffff;
DAT_00f21322 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005a2308;
}
if (uVar11 != 0xffff) goto LAB_005a2312;
LAB_005a2c9b:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_005a2308:
if (uVar11 == 0xffff) goto LAB_005a2c9b;
LAB_005a2312:
puVar4 = (undefined2 *)(uVar2 * 0x58 + *(int *)(this + 4));
}
uVar6 = puVar4[1];
uVar8 = (uint)uVar6;
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar6 != 0xffff) goto LAB_005a232e;
LAB_005a2c60:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar6 == 0xffff) goto LAB_005a2c60;
LAB_005a232e:
puVar4 = (undefined2 *)(uVar8 * 0x58 + *(int *)(this + 4));
}
if (puVar4[3] == 0) {
*(undefined2 *)(uVar8 * 0x58 + *(int *)(this + 4) + 6) = 1;
*(undefined2 *)(uVar2 * 0x58 + *(int *)(this + 4) + 6) = 0;
RotateLeft(this,(ushort)uVar2);
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar9 != 0xffff) goto LAB_005a2bc2;
LAB_005a30c0:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar9 == 0xffff) goto LAB_005a30c0;
LAB_005a2bc2:
puVar4 = (undefined2 *)(uVar10 * 0x58 + *(int *)(this + 4));
}
uVar11 = puVar4[2];
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar11 != 0xffff) goto LAB_005a2be8;
LAB_005a3088:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar11 == 0xffff) goto LAB_005a3088;
LAB_005a2be8:
puVar4 = (undefined2 *)((uint)uVar11 * 0x58 + *(int *)(this + 4));
}
uVar8 = (uint)(ushort)puVar4[1];
}
uVar6 = (ushort)uVar8;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005a2356;
}
if (uVar6 != 0xffff) goto LAB_005a2360;
LAB_005a2b66:
puVar7 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_005a2356:
if (uVar6 == 0xffff) goto LAB_005a2b66;
LAB_005a2360:
puVar7 = (ushort *)(uVar8 * 0x58 + *(int *)(this + 4));
}
uVar5 = *puVar7;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005a237b;
}
if (uVar5 != 0xffff) goto LAB_005a2385;
LAB_005a291c:
if (DAT_00f21326 != 1) goto joined_r0x005a298d;
LAB_005a292c:
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar6 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar4 = (undefined2 *)(uVar8 * 0x58 + *(int *)(this + 4));
}
uVar5 = puVar4[1];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar5 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar4 = (undefined2 *)((uint)uVar5 * 0x58 + *(int *)(this + 4));
}
if (puVar4[3] != 1) goto joined_r0x005a298d;
LAB_005a2e60:
if ((short)uVar8 == -1) {
uVar2 = (uint)*(ushort *)(this + 0x10);
uVar10 = (uint)uVar11;
}
else {
*(undefined2 *)(uVar8 * 0x58 + *(int *)(this + 4) + 6) = 0;
uVar2 = (uint)*(ushort *)(this + 0x10);
uVar10 = (uint)uVar11;
}
}
else {
LAB_005a237b:
if (uVar5 == 0xffff) goto LAB_005a291c;
LAB_005a2385:
if (*(short *)((uint)uVar5 * 0x58 + *(int *)(this + 4) + 6) == 1) goto LAB_005a292c;
joined_r0x005a298d:
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005a23a8;
}
if (uVar6 != 0xffff) goto LAB_005a23b2;
LAB_005a29c6:
local_24 = 0x57ffa8;
uVar5 = DAT_00f21322;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_005a23d1;
LAB_005a29e0:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005a23d1;
}
if (uVar5 != 0xffff) goto LAB_005a23db;
LAB_005a2a14:
if (DAT_00f21326 != 1) goto LAB_005a23f4;
LAB_005a2a28:
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
DAT_00f21322 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar7 = &Links(unsigned_short)::s_Sentinel;
if (uVar6 != 0xffff) {
puVar7 = (ushort *)(*(int *)(this + 4) + local_24);
}
*(undefined2 *)(*(int *)(this + 4) + 6 + (uint)*puVar7 * 0x58) = 1;
*(undefined2 *)(*(int *)(this + 4) + 6 + local_24) = 0;
RotateRight(this,uVar6);
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar9 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar4 = (undefined2 *)(uVar10 * 0x58 + *(int *)(this + 4));
}
uVar11 = puVar4[2];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar11 == 0xffff) {
local_28 = 0x57ffa8;
puVar4 = &Links(unsigned_short)::s_Sentinel;
uVar9 = 0xffff;
}
else {
local_28 = (uint)uVar11 * 0x58;
puVar4 = (undefined2 *)(*(int *)(this + 4) + local_28);
uVar9 = uVar11;
}
uVar6 = puVar4[1];
local_24 = (uint)uVar6 * 0x58;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_005a2af0;
LAB_005a240e:
iVar3 = *(int *)(this + 4);
if (uVar11 != 0xffff) goto LAB_005a241b;
LAB_005a2b27:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_005a23a8:
if (uVar6 == 0xffff) goto LAB_005a29c6;
LAB_005a23b2:
local_24 = uVar8 * 0x58;
uVar5 = *(ushort *)(local_24 + *(int *)(this + 4) + 2);
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_005a29e0;
LAB_005a23d1:
if (uVar5 == 0xffff) goto LAB_005a2a14;
LAB_005a23db:
if (*(short *)((uint)uVar5 * 0x58 + *(int *)(this + 4) + 6) == 1) goto LAB_005a2a28;
LAB_005a23f4:
local_28 = (uint)uVar11 * 0x58;
uVar9 = uVar11;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_005a240e;
LAB_005a2af0:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005a240e;
}
iVar3 = *(int *)(this + 4);
if (uVar11 == 0xffff) goto LAB_005a2b27;
LAB_005a241b:
puVar4 = (undefined2 *)(iVar3 + local_28);
}
bVar12 = Links(unsigned_short)::s_Sentinel == '\0';
*(undefined2 *)(iVar3 + 6 + local_24) = puVar4[3];
*(undefined2 *)(*(int *)(this + 4) + 6 + local_28) = 1;
if ((bVar12) &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar6 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar4 = (undefined2 *)(*(int *)(this + 4) + local_24);
}
*(undefined2 *)(*(int *)(this + 4) + 6 + (uint)(ushort)puVar4[1] * 0x58) = 1;
RotateLeft(this,uVar9);
uVar2 = (uint)*(ushort *)(this + 0x10);
uVar10 = uVar2;
}
}
else {
if (uVar9 == 0xffff) goto LAB_005a22a5;
LAB_005a20c1:
uVar11 = *(ushort *)(uVar10 * 0x58 + *(int *)(this + 4) + 4);
uVar2 = (uint)uVar11;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_005a22c0;
LAB_005a20de:
if (uVar11 == 0xffff) goto LAB_005a22eb;
LAB_005a20e8:
if (uVar9 == *(ushort *)(uVar2 * 0x58 + *(int *)(this + 4))) goto LAB_005a2300;
LAB_005a20f7:
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21324 = 0xffff;
DAT_00f21322 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005a20ff;
}
if (uVar11 != 0xffff) goto LAB_005a2109;
LAB_005a285b:
puVar7 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_005a20ff:
if (uVar11 == 0xffff) goto LAB_005a285b;
LAB_005a2109:
puVar7 = (ushort *)(uVar2 * 0x58 + *(int *)(this + 4));
}
uVar6 = *puVar7;
uVar8 = (uint)uVar6;
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar6 != 0xffff) goto LAB_005a2124;
LAB_005a2750:
if (DAT_00f21326 != 0) goto LAB_005a2138;
LAB_005a2760:
*(undefined2 *)(uVar8 * 0x58 + *(int *)(this + 4) + 6) = 1;
*(undefined2 *)(uVar2 * 0x58 + *(int *)(this + 4) + 6) = 0;
RotateRight(this,(ushort)uVar2);
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar9 != 0xffff) goto LAB_005a27b2;
LAB_005a2d08:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar9 == 0xffff) goto LAB_005a2d08;
LAB_005a27b2:
puVar4 = (undefined2 *)(uVar10 * 0x58 + *(int *)(this + 4));
}
uVar11 = puVar4[2];
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar11 != 0xffff) goto LAB_005a27d8;
LAB_005a2cd0:
puVar7 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar11 == 0xffff) goto LAB_005a2cd0;
LAB_005a27d8:
puVar7 = (ushort *)((uint)uVar11 * 0x58 + *(int *)(this + 4));
}
uVar8 = (uint)*puVar7;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_005a214c;
LAB_005a27f3:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21324 = 0xffff;
DAT_00f21322 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005a214c;
}
if ((short)uVar8 != -1) goto LAB_005a2156;
LAB_005a2821:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar6 == 0xffff) goto LAB_005a2750;
LAB_005a2124:
if (*(short *)(uVar8 * 0x58 + *(int *)(this + 4) + 6) == 0) goto LAB_005a2760;
LAB_005a2138:
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_005a27f3;
LAB_005a214c:
if ((short)uVar8 == -1) goto LAB_005a2821;
LAB_005a2156:
puVar4 = (undefined2 *)(uVar8 * 0x58 + *(int *)(this + 4));
}
uVar6 = puVar4[1];
uVar5 = (ushort)uVar8;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005a2172;
}
if (uVar6 != 0xffff) goto LAB_005a217c;
LAB_005a24c4:
if (DAT_00f21326 != 1) goto LAB_005a2195;
LAB_005a24d8:
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21324 = 0xffff;
DAT_00f21322 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
uVar6 = Links(unsigned_short)::s_Sentinel;
if (uVar5 != 0xffff) {
uVar6 = *(ushort *)(uVar8 * 0x58 + *(int *)(this + 4));
}
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar6 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar4 = (undefined2 *)((uint)uVar6 * 0x58 + *(int *)(this + 4));
}
if (puVar4[3] == 1) goto LAB_005a2e60;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_005a2540;
LAB_005a219f:
if (uVar5 != 0xffff) goto LAB_005a21a9;
LAB_005a256e:
local_24 = 0x57ffa8;
uVar6 = Links(unsigned_short)::s_Sentinel;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_005a2590;
LAB_005a21c7:
if (uVar6 != 0xffff) goto LAB_005a21d1;
LAB_005a25c4:
if (DAT_00f21326 != 1) goto LAB_005a21ea;
LAB_005a25d8:
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
DAT_00f21322 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar4 = &Links(unsigned_short)::s_Sentinel;
if (uVar5 != 0xffff) {
puVar4 = (undefined2 *)(*(int *)(this + 4) + local_24);
}
*(undefined2 *)(*(int *)(this + 4) + 6 + (uint)(ushort)puVar4[1] * 0x58) = 1;
*(undefined2 *)(*(int *)(this + 4) + 6 + local_24) = 0;
RotateLeft(this,uVar5);
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar9 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar4 = (undefined2 *)(uVar10 * 0x58 + *(int *)(this + 4));
}
uVar11 = puVar4[2];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar11 == 0xffff) {
local_28 = 0x57ffa8;
puVar7 = &Links(unsigned_short)::s_Sentinel;
uVar9 = 0xffff;
}
else {
local_28 = (uint)uVar11 * 0x58;
puVar7 = (ushort *)(*(int *)(this + 4) + local_28);
uVar9 = uVar11;
}
uVar5 = *puVar7;
local_24 = (uint)uVar5 * 0x58;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_005a2204;
LAB_005a26a0:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005a2204;
}
iVar3 = *(int *)(this + 4);
if (uVar11 != 0xffff) goto LAB_005a2211;
LAB_005a26d7:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_005a2172:
if (uVar6 == 0xffff) goto LAB_005a24c4;
LAB_005a217c:
if (*(short *)((uint)uVar6 * 0x58 + *(int *)(this + 4) + 6) == 1) goto LAB_005a24d8;
LAB_005a2195:
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_005a219f;
LAB_005a2540:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005a219f;
}
if (uVar5 == 0xffff) goto LAB_005a256e;
LAB_005a21a9:
local_24 = uVar8 * 0x58;
uVar6 = *(ushort *)(local_24 + *(int *)(this + 4));
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_005a21c7;
LAB_005a2590:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_005a21c7;
}
if (uVar6 == 0xffff) goto LAB_005a25c4;
LAB_005a21d1:
if (*(short *)((uint)uVar6 * 0x58 + *(int *)(this + 4) + 6) == 1) goto LAB_005a25d8;
LAB_005a21ea:
local_28 = (uint)uVar11 * 0x58;
uVar9 = uVar11;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_005a26a0;
LAB_005a2204:
iVar3 = *(int *)(this + 4);
if (uVar11 == 0xffff) goto LAB_005a26d7;
LAB_005a2211:
puVar4 = (undefined2 *)(iVar3 + local_28);
}
bVar12 = Links(unsigned_short)::s_Sentinel == '\0';
*(undefined2 *)(iVar3 + 6 + local_24) = puVar4[3];
*(undefined2 *)(*(int *)(this + 4) + 6 + local_28) = 1;
if ((bVar12) && (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0))
{
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21322 = 0xffff;
DAT_00f21324 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
iVar3 = *(int *)(this + 4);
if (uVar5 != 0xffff) goto LAB_005a224a;
LAB_005a2e50:
puVar7 = &Links(unsigned_short)::s_Sentinel;
}
else {
iVar3 = *(int *)(this + 4);
if (uVar5 == 0xffff) goto LAB_005a2e50;
LAB_005a224a:
puVar7 = (ushort *)(iVar3 + local_24);
}
*(undefined2 *)(iVar3 + 6 + (uint)*puVar7 * 0x58) = 1;
RotateRight(this,uVar9);
uVar2 = (uint)*(ushort *)(this + 0x10);
uVar10 = uVar2;
}
}
*(undefined2 *)(uVar10 * 0x58 + *(int *)(this + 4) + 6) = 1;
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.