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
0x000e6e10 · 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_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
sVar1 = DAT_0034072a;
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_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar9 != 0xffff) goto LAB_000e6ef1;
LAB_000e70d5:
uVar2 = (uint)DAT_00340728;
uVar11 = DAT_00340728;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_000e6f0e;
LAB_000e70f0:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00340728 = 0xffff;
DAT_00340726 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_000e6f0e;
}
if (uVar11 != 0xffff) goto LAB_000e6f18;
LAB_000e711b:
if (uVar9 != Links(unsigned_short)::s_Sentinel) goto LAB_000e6f27;
LAB_000e7130:
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_00340728 = 0xffff;
DAT_00340726 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_000e7138;
}
if (uVar11 != 0xffff) goto LAB_000e7142;
LAB_000e7acb:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_000e7138:
if (uVar11 == 0xffff) goto LAB_000e7acb;
LAB_000e7142:
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_00340726 = 0xffff;
DAT_00340728 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar6 != 0xffff) goto LAB_000e715e;
LAB_000e7a90:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar6 == 0xffff) goto LAB_000e7a90;
LAB_000e715e:
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_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar9 != 0xffff) goto LAB_000e79f2;
LAB_000e7ef0:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar9 == 0xffff) goto LAB_000e7ef0;
LAB_000e79f2:
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_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar11 != 0xffff) goto LAB_000e7a18;
LAB_000e7eb8:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar11 == 0xffff) goto LAB_000e7eb8;
LAB_000e7a18:
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_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_000e7186;
}
if (uVar6 != 0xffff) goto LAB_000e7190;
LAB_000e7996:
puVar7 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_000e7186:
if (uVar6 == 0xffff) goto LAB_000e7996;
LAB_000e7190:
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_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_000e71ab;
}
if (uVar5 != 0xffff) goto LAB_000e71b5;
LAB_000e774c:
if (DAT_0034072a != 1) goto joined_r0x000e77bd;
LAB_000e775c:
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_00340726 = 0xffff;
DAT_00340728 = 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_00340726 = 0xffff;
DAT_00340728 = 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_r0x000e77bd;
LAB_000e7c90:
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_000e71ab:
if (uVar5 == 0xffff) goto LAB_000e774c;
LAB_000e71b5:
if (*(short *)((uint)uVar5 * 0x58 + *(int *)(this + 4) + 6) == 1) goto LAB_000e775c;
joined_r0x000e77bd:
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_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_000e71d8;
}
if (uVar6 != 0xffff) goto LAB_000e71e2;
LAB_000e77f6:
local_24 = 0x57ffa8;
uVar5 = DAT_00340726;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_000e7201;
LAB_000e7810:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_000e7201;
}
if (uVar5 != 0xffff) goto LAB_000e720b;
LAB_000e7844:
if (DAT_0034072a != 1) goto LAB_000e7224;
LAB_000e7858:
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
DAT_00340726 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00340728 = 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_00340726 = 0xffff;
DAT_00340728 = 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_00340726 = 0xffff;
DAT_00340728 = 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_000e7920;
LAB_000e723e:
iVar3 = *(int *)(this + 4);
if (uVar11 != 0xffff) goto LAB_000e724b;
LAB_000e7957:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_000e71d8:
if (uVar6 == 0xffff) goto LAB_000e77f6;
LAB_000e71e2:
local_24 = uVar8 * 0x58;
uVar5 = *(ushort *)(local_24 + *(int *)(this + 4) + 2);
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_000e7810;
LAB_000e7201:
if (uVar5 == 0xffff) goto LAB_000e7844;
LAB_000e720b:
if (*(short *)((uint)uVar5 * 0x58 + *(int *)(this + 4) + 6) == 1) goto LAB_000e7858;
LAB_000e7224:
local_28 = (uint)uVar11 * 0x58;
uVar9 = uVar11;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_000e723e;
LAB_000e7920:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_000e723e;
}
iVar3 = *(int *)(this + 4);
if (uVar11 == 0xffff) goto LAB_000e7957;
LAB_000e724b:
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_00340726 = 0xffff;
DAT_00340728 = 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_000e70d5;
LAB_000e6ef1:
uVar11 = *(ushort *)(uVar10 * 0x58 + *(int *)(this + 4) + 4);
uVar2 = (uint)uVar11;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_000e70f0;
LAB_000e6f0e:
if (uVar11 == 0xffff) goto LAB_000e711b;
LAB_000e6f18:
if (uVar9 == *(ushort *)(uVar2 * 0x58 + *(int *)(this + 4))) goto LAB_000e7130;
LAB_000e6f27:
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_00340728 = 0xffff;
DAT_00340726 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_000e6f2f;
}
if (uVar11 != 0xffff) goto LAB_000e6f39;
LAB_000e768b:
puVar7 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_000e6f2f:
if (uVar11 == 0xffff) goto LAB_000e768b;
LAB_000e6f39:
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_00340726 = 0xffff;
DAT_00340728 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar6 != 0xffff) goto LAB_000e6f54;
LAB_000e7580:
if (DAT_0034072a != 0) goto LAB_000e6f68;
LAB_000e7590:
*(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_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar9 != 0xffff) goto LAB_000e75e2;
LAB_000e7b38:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar9 == 0xffff) goto LAB_000e7b38;
LAB_000e75e2:
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_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar11 != 0xffff) goto LAB_000e7608;
LAB_000e7b00:
puVar7 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar11 == 0xffff) goto LAB_000e7b00;
LAB_000e7608:
puVar7 = (ushort *)((uint)uVar11 * 0x58 + *(int *)(this + 4));
}
uVar8 = (uint)*puVar7;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_000e6f7c;
LAB_000e7623:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00340728 = 0xffff;
DAT_00340726 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_000e6f7c;
}
if ((short)uVar8 != -1) goto LAB_000e6f86;
LAB_000e7651:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar6 == 0xffff) goto LAB_000e7580;
LAB_000e6f54:
if (*(short *)(uVar8 * 0x58 + *(int *)(this + 4) + 6) == 0) goto LAB_000e7590;
LAB_000e6f68:
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_000e7623;
LAB_000e6f7c:
if ((short)uVar8 == -1) goto LAB_000e7651;
LAB_000e6f86:
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_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_000e6fa2;
}
if (uVar6 != 0xffff) goto LAB_000e6fac;
LAB_000e72f4:
if (DAT_0034072a != 1) goto LAB_000e6fc5;
LAB_000e7308:
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_00340728 = 0xffff;
DAT_00340726 = 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_00340726 = 0xffff;
DAT_00340728 = 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_000e7c90;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_000e7370;
LAB_000e6fcf:
if (uVar5 != 0xffff) goto LAB_000e6fd9;
LAB_000e739e:
local_24 = 0x57ffa8;
uVar6 = Links(unsigned_short)::s_Sentinel;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_000e73c0;
LAB_000e6ff7:
if (uVar6 != 0xffff) goto LAB_000e7001;
LAB_000e73f4:
if (DAT_0034072a != 1) goto LAB_000e701a;
LAB_000e7408:
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
DAT_00340726 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00340728 = 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_00340726 = 0xffff;
DAT_00340728 = 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_00340726 = 0xffff;
DAT_00340728 = 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_000e7034;
LAB_000e74d0:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_000e7034;
}
iVar3 = *(int *)(this + 4);
if (uVar11 != 0xffff) goto LAB_000e7041;
LAB_000e7507:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_000e6fa2:
if (uVar6 == 0xffff) goto LAB_000e72f4;
LAB_000e6fac:
if (*(short *)((uint)uVar6 * 0x58 + *(int *)(this + 4) + 6) == 1) goto LAB_000e7308;
LAB_000e6fc5:
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_000e6fcf;
LAB_000e7370:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_000e6fcf;
}
if (uVar5 == 0xffff) goto LAB_000e739e;
LAB_000e6fd9:
local_24 = uVar8 * 0x58;
uVar6 = *(ushort *)(local_24 + *(int *)(this + 4));
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_000e6ff7;
LAB_000e73c0:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_000e6ff7;
}
if (uVar6 == 0xffff) goto LAB_000e73f4;
LAB_000e7001:
if (*(short *)((uint)uVar6 * 0x58 + *(int *)(this + 4) + 6) == 1) goto LAB_000e7408;
LAB_000e701a:
local_28 = (uint)uVar11 * 0x58;
uVar9 = uVar11;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_000e74d0;
LAB_000e7034:
iVar3 = *(int *)(this + 4);
if (uVar11 == 0xffff) goto LAB_000e7507;
LAB_000e7041:
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_00340726 = 0xffff;
DAT_00340728 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
iVar3 = *(int *)(this + 4);
if (uVar5 != 0xffff) goto LAB_000e707a;
LAB_000e7c80:
puVar7 = &Links(unsigned_short)::s_Sentinel;
}
else {
iVar3 = *(int *)(this + 4);
if (uVar5 == 0xffff) goto LAB_000e7c80;
LAB_000e707a:
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.