CUtlRBTree<CNetChan::SplitPlayer_t,unsigned_short,bool(*)(CNetChan::SplitPlayer_t_const&,CNetChan::SplitPlayer_t_const&),CUtlMemory<UtlRBTreeNode_t<CNetChan::SplitPlayer_t,unsigned_short>,unsigned_short>>::RemoveRebalance
0x001bc3b0 · 5563 bytes · __thiscall
_ZN10CUtlRBTreeIN8CNetChan13SplitPlayer_tEtPFbRKS1_S3_E10CUtlMemoryI15UtlRBTreeNode_tIS1_tEtEE15RemoveRebalanceEt
Decompiled
undefined (2 params)
/* CUtlRBTree<CNetChan::SplitPlayer_t, unsigned short, bool (*)(CNetChan::SplitPlayer_t const&,
CNetChan::SplitPlayer_t const&), CUtlMemory<UtlRBTreeNode_t<CNetChan::SplitPlayer_t, unsigned
short>, unsigned short> >::RemoveRebalance(unsigned short) */
void __thiscall
CUtlRBTree<CNetChan::SplitPlayer_t,unsigned_short,bool(*)(CNetChan::SplitPlayer_t_const&,CNetChan::SplitPlayer_t_const&),CUtlMemory<UtlRBTreeNode_t<CNetChan::SplitPlayer_t,unsigned_short>,unsigned_short>>
::RemoveRebalance(CUtlRBTree<CNetChan::SplitPlayer_t,unsigned_short,bool(*)(CNetChan::SplitPlayer_t_const&,CNetChan::SplitPlayer_t_const&),CUtlMemory<UtlRBTreeNode_t<CNetChan::SplitPlayer_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_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
sVar1 = DAT_00341696;
if (uVar9 != 0xffff) {
sVar1 = *(short *)(uVar10 * 0x10 + *(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) {
DAT_00341692 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar9 != 0xffff) goto LAB_001bc481;
LAB_001bc645:
uVar2 = (uint)DAT_00341694;
uVar11 = DAT_00341694;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_001bc499;
LAB_001bc660:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341694 = 0xffff;
DAT_00341692 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_001bc499;
}
if (uVar11 != 0xffff) goto LAB_001bc4a3;
LAB_001bc68b:
if (uVar9 != Links(unsigned_short)::s_Sentinel) goto LAB_001bc4b4;
LAB_001bc6a0:
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_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_001bc6a8;
}
if (uVar11 != 0xffff) goto LAB_001bc6b2;
LAB_001bcfab:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_001bc6a8:
if (uVar11 == 0xffff) goto LAB_001bcfab;
LAB_001bc6b2:
puVar4 = (undefined2 *)(uVar2 * 0x10 + *(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_00341692 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar6 != 0xffff) goto LAB_001bc6d0;
LAB_001bcf70:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar6 == 0xffff) goto LAB_001bcf70;
LAB_001bc6d0:
puVar4 = (undefined2 *)(uVar8 * 0x10 + *(int *)(this + 4));
}
if (puVar4[3] == 0) {
*(undefined2 *)(uVar8 * 0x10 + *(int *)(this + 4) + 6) = 1;
*(undefined2 *)(uVar2 * 0x10 + *(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_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar9 != 0xffff) goto LAB_001bced8;
LAB_001bd3e8:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar9 == 0xffff) goto LAB_001bd3e8;
LAB_001bced8:
puVar4 = (undefined2 *)(uVar10 * 0x10 + *(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_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar11 != 0xffff) goto LAB_001bcef9;
LAB_001bd3b0:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar11 == 0xffff) goto LAB_001bd3b0;
LAB_001bcef9:
puVar4 = (undefined2 *)((uint)uVar11 * 0x10 + *(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_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_001bc6f8;
}
if (uVar6 != 0xffff) goto LAB_001bc702;
LAB_001bce86:
puVar7 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_001bc6f8:
if (uVar6 == 0xffff) goto LAB_001bce86;
LAB_001bc702:
puVar7 = (ushort *)(uVar8 * 0x10 + *(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_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_001bc718;
}
if (uVar5 != 0xffff) goto LAB_001bc722;
LAB_001bcc5c:
if (DAT_00341696 != 1) goto joined_r0x001bccc3;
LAB_001bcc6c:
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_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar6 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar4 = (undefined2 *)(uVar8 * 0x10 + *(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_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar5 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar4 = (undefined2 *)((uint)uVar5 * 0x10 + *(int *)(this + 4));
}
if (puVar4[3] != 1) goto joined_r0x001bccc3;
LAB_001bd180:
if ((short)uVar8 == -1) {
uVar2 = (uint)*(ushort *)(this + 0x10);
uVar10 = (uint)uVar11;
}
else {
*(undefined2 *)(uVar8 * 0x10 + *(int *)(this + 4) + 6) = 0;
uVar2 = (uint)*(ushort *)(this + 0x10);
uVar10 = (uint)uVar11;
}
}
else {
LAB_001bc718:
if (uVar5 == 0xffff) goto LAB_001bcc5c;
LAB_001bc722:
if (*(short *)((uint)uVar5 * 0x10 + *(int *)(this + 4) + 6) == 1) goto LAB_001bcc6c;
joined_r0x001bccc3:
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_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_001bc740;
}
if (uVar6 != 0xffff) goto LAB_001bc74a;
LAB_001bccfe:
local_24 = 0xffff0;
uVar5 = DAT_00341692;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_001bc768;
LAB_001bcd18:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_001bc768;
}
if (uVar5 != 0xffff) goto LAB_001bc772;
LAB_001bcd4c:
if (DAT_00341696 != 1) goto LAB_001bc786;
LAB_001bcd60:
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
DAT_00341692 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar7 = &Links(unsigned_short)::s_Sentinel;
if (uVar6 != 0xffff) {
puVar7 = (ushort *)(local_24 + *(int *)(this + 4));
}
*(undefined2 *)(*(int *)(this + 4) + 6 + (uint)*puVar7 * 0x10) = 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_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar9 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar4 = (undefined2 *)(uVar10 * 0x10 + *(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_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar11 == 0xffff) {
local_28 = 0xffff0;
puVar4 = &Links(unsigned_short)::s_Sentinel;
uVar9 = 0xffff;
}
else {
local_28 = (uint)uVar11 * 0x10;
puVar4 = (undefined2 *)(*(int *)(this + 4) + local_28);
uVar9 = uVar11;
}
uVar6 = puVar4[1];
local_24 = (uint)uVar6 << 4;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_001bce10;
LAB_001bc79b:
iVar3 = *(int *)(this + 4);
if (uVar11 != 0xffff) goto LAB_001bc7a8;
LAB_001bce47:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_001bc740:
if (uVar6 == 0xffff) goto LAB_001bccfe;
LAB_001bc74a:
local_24 = uVar8 * 0x10;
uVar5 = *(ushort *)(local_24 + *(int *)(this + 4) + 2);
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_001bcd18;
LAB_001bc768:
if (uVar5 == 0xffff) goto LAB_001bcd4c;
LAB_001bc772:
if (*(short *)((uint)uVar5 * 0x10 + *(int *)(this + 4) + 6) == 1) goto LAB_001bcd60;
LAB_001bc786:
local_28 = (uint)uVar11 << 4;
uVar9 = uVar11;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_001bc79b;
LAB_001bce10:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_001bc79b;
}
iVar3 = *(int *)(this + 4);
if (uVar11 == 0xffff) goto LAB_001bce47;
LAB_001bc7a8:
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)) {
DAT_00341692 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar6 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar4 = (undefined2 *)(local_24 + *(int *)(this + 4));
}
*(undefined2 *)(*(int *)(this + 4) + 6 + (uint)(ushort)puVar4[1] * 0x10) = 1;
RotateLeft(this,uVar9);
uVar2 = (uint)*(ushort *)(this + 0x10);
uVar10 = uVar2;
}
}
else {
if (uVar9 == 0xffff) goto LAB_001bc645;
LAB_001bc481:
uVar11 = *(ushort *)(uVar10 * 0x10 + *(int *)(this + 4) + 4);
uVar2 = (uint)uVar11;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_001bc660;
LAB_001bc499:
if (uVar11 == 0xffff) goto LAB_001bc68b;
LAB_001bc4a3:
if (uVar9 == *(ushort *)(uVar2 * 0x10 + *(int *)(this + 4))) goto LAB_001bc6a0;
LAB_001bc4b4:
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_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_001bc4bc;
}
if (uVar11 != 0xffff) goto LAB_001bc4c6;
LAB_001bcb9b:
puVar7 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_001bc4bc:
if (uVar11 == 0xffff) goto LAB_001bcb9b;
LAB_001bc4c6:
puVar7 = (ushort *)(uVar2 * 0x10 + *(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_00341692 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar6 != 0xffff) goto LAB_001bc4e3;
LAB_001bcaa0:
if (DAT_00341696 != 0) goto LAB_001bc4f7;
LAB_001bcab0:
*(undefined2 *)(uVar8 * 0x10 + *(int *)(this + 4) + 6) = 1;
*(undefined2 *)(uVar2 * 0x10 + *(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) {
DAT_00341694 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341692 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar9 != 0xffff) goto LAB_001bcaf8;
LAB_001bd018:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar9 == 0xffff) goto LAB_001bd018;
LAB_001bcaf8:
puVar4 = (undefined2 *)(uVar10 * 0x10 + *(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_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar11 != 0xffff) goto LAB_001bcb19;
LAB_001bcfe0:
puVar7 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar11 == 0xffff) goto LAB_001bcfe0;
LAB_001bcb19:
puVar7 = (ushort *)((uint)uVar11 * 0x10 + *(int *)(this + 4));
}
uVar8 = (uint)*puVar7;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_001bc50b;
LAB_001bcb2f:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_001bc50b;
}
if ((short)uVar8 != -1) goto LAB_001bc515;
LAB_001bcb5d:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar6 == 0xffff) goto LAB_001bcaa0;
LAB_001bc4e3:
if (*(short *)(uVar8 * 0x10 + *(int *)(this + 4) + 6) == 0) goto LAB_001bcab0;
LAB_001bc4f7:
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_001bcb2f;
LAB_001bc50b:
if ((short)uVar8 == -1) goto LAB_001bcb5d;
LAB_001bc515:
puVar4 = (undefined2 *)(uVar8 * 0x10 + *(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_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_001bc52c;
}
if (uVar6 != 0xffff) goto LAB_001bc536;
LAB_001bc844:
if (DAT_00341696 != 1) goto LAB_001bc54a;
LAB_001bc858:
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_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
uVar6 = Links(unsigned_short)::s_Sentinel;
if (uVar5 != 0xffff) {
uVar6 = *(ushort *)(uVar8 * 0x10 + *(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_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar6 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar4 = (undefined2 *)((uint)uVar6 * 0x10 + *(int *)(this + 4));
}
if (puVar4[3] == 1) goto LAB_001bd180;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_001bc8b8;
LAB_001bc554:
if (uVar5 != 0xffff) goto LAB_001bc55e;
LAB_001bc8e6:
local_24 = 0xffff0;
uVar6 = Links(unsigned_short)::s_Sentinel;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_001bc900;
LAB_001bc57b:
if (uVar6 != 0xffff) goto LAB_001bc585;
LAB_001bc934:
if (DAT_00341696 != 1) goto LAB_001bc599;
LAB_001bc948:
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
DAT_00341692 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar4 = &Links(unsigned_short)::s_Sentinel;
if (uVar5 != 0xffff) {
puVar4 = (undefined2 *)(local_24 + *(int *)(this + 4));
}
*(undefined2 *)(*(int *)(this + 4) + 6 + (uint)(ushort)puVar4[1] * 0x10) = 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_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar9 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar4 = (undefined2 *)(uVar10 * 0x10 + *(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_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar11 == 0xffff) {
local_28 = 0xffff0;
puVar7 = &Links(unsigned_short)::s_Sentinel;
uVar9 = 0xffff;
}
else {
local_28 = (uint)uVar11 * 0x10;
puVar7 = (ushort *)(*(int *)(this + 4) + local_28);
uVar9 = uVar11;
}
uVar5 = *puVar7;
local_24 = (uint)uVar5 << 4;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_001bc5ae;
LAB_001bc9f8:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_001bc5ae;
}
iVar3 = *(int *)(this + 4);
if (uVar11 != 0xffff) goto LAB_001bc5bb;
LAB_001bca2f:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_001bc52c:
if (uVar6 == 0xffff) goto LAB_001bc844;
LAB_001bc536:
if (*(short *)((uint)uVar6 * 0x10 + *(int *)(this + 4) + 6) == 1) goto LAB_001bc858;
LAB_001bc54a:
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_001bc554;
LAB_001bc8b8:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_001bc554;
}
if (uVar5 == 0xffff) goto LAB_001bc8e6;
LAB_001bc55e:
local_24 = uVar8 * 0x10;
uVar6 = *(ushort *)(local_24 + *(int *)(this + 4));
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_001bc57b;
LAB_001bc900:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341692 = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_001bc57b;
}
if (uVar6 == 0xffff) goto LAB_001bc934;
LAB_001bc585:
if (*(short *)((uint)uVar6 * 0x10 + *(int *)(this + 4) + 6) == 1) goto LAB_001bc948;
LAB_001bc599:
local_28 = (uint)uVar11 << 4;
uVar9 = uVar11;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_001bc9f8;
LAB_001bc5ae:
iVar3 = *(int *)(this + 4);
if (uVar11 == 0xffff) goto LAB_001bca2f;
LAB_001bc5bb:
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))
{
DAT_00341692 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341694 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
iVar3 = *(int *)(this + 4);
if (uVar5 != 0xffff) goto LAB_001bc5f4;
LAB_001bd170:
puVar7 = &Links(unsigned_short)::s_Sentinel;
}
else {
iVar3 = *(int *)(this + 4);
if (uVar5 == 0xffff) goto LAB_001bd170;
LAB_001bc5f4:
puVar7 = (ushort *)(local_24 + iVar3);
}
*(undefined2 *)(iVar3 + 6 + (uint)*puVar7 * 0x10) = 1;
RotateRight(this,uVar9);
uVar2 = (uint)*(ushort *)(this + 0x10);
uVar10 = uVar2;
}
}
*(undefined2 *)(uVar10 * 0x10 + *(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.