CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::RemoveRebalance
0x0007e730 · 5434 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapI8CSteamIDPN5GCSDK14CGCUserSessionEtE6Node_tEtNS5_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS6_tEtEE15RemoveRebalanceEt
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlMap<CSteamID, GCSDK::CGCUserSession*, unsigned short>::Node_t, unsigned short,
CUtlMap<CSteamID, GCSDK::CGCUserSession*, unsigned short>::CKeyLess,
CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID, GCSDK::CGCUserSession*, unsigned short>::Node_t,
unsigned short>, unsigned short> >::RemoveRebalance(unsigned short) */
void __thiscall
CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::RemoveRebalance(CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*this,ushort param_1)
{
short sVar1;
ushort uVar2;
ushort *puVar3;
int iVar4;
ushort uVar5;
ushort uVar6;
uint uVar7;
undefined2 *puVar8;
bool bVar9;
int local_28;
uint local_24;
int local_20;
uVar2 = *(ushort *)(this + 0x10);
while (param_1 != uVar2) {
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
DAT_000d286c = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
sVar1 = DAT_000d286e;
if (param_1 != 0xffff) {
sVar1 = *(short *)(*(int *)(this + 4) + (uint)param_1 * 0x14 + 6);
}
if (sVar1 != 1) break;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 != 0xffff) goto LAB_0007e81d;
LAB_0007ea09:
local_24 = (uint)DAT_000d286c;
uVar2 = DAT_000d286c;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_0007e83b;
LAB_0007ea20:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_0007e845;
LAB_0007ea45:
if (param_1 != Links(unsigned_short)::s_Sentinel) goto LAB_0007e85e;
LAB_0007ea60:
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_0007ea72;
LAB_0007f33d:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar2 == 0xffff) goto LAB_0007f33d;
LAB_0007ea72:
puVar8 = (undefined2 *)(*(int *)(this + 4) + local_24 * 0x14);
}
uVar6 = puVar8[1];
uVar7 = (uint)uVar6;
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
DAT_000d286a = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar6 != 0xffff) goto LAB_0007ea94;
LAB_0007f308:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar6 == 0xffff) goto LAB_0007f308;
LAB_0007ea94:
puVar8 = (undefined2 *)(*(int *)(this + 4) + uVar7 * 0x14);
}
if (puVar8[3] == 0) {
*(undefined2 *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) = 1;
*(undefined2 *)(*(int *)(this + 4) + local_24 * 0x14 + 6) = 0;
RotateLeft(this,(ushort)local_24);
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 != 0xffff) goto LAB_0007f278;
LAB_0007f729:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (param_1 == 0xffff) goto LAB_0007f729;
LAB_0007f278:
puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)param_1 * 0x14);
}
uVar2 = puVar8[2];
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_0007f29a;
LAB_0007f6ed:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar2 == 0xffff) goto LAB_0007f6ed;
LAB_0007f29a:
puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)uVar2 * 0x14);
}
uVar7 = (uint)(ushort)puVar8[1];
}
uVar6 = (ushort)uVar7;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_0007eaba;
}
if (uVar6 != 0xffff) goto LAB_0007eac4;
LAB_0007f21b:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_0007eaba:
if (uVar6 == 0xffff) goto LAB_0007f21b;
LAB_0007eac4:
puVar3 = (ushort *)(*(int *)(this + 4) + uVar7 * 0x14);
}
uVar5 = *puVar3;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_0007eadb;
}
if (uVar5 != 0xffff) goto LAB_0007eae5;
LAB_0007effb:
if (DAT_000d286e != 1) goto joined_r0x0007f05c;
LAB_0007f00b:
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar6 == 0xffff) {
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar8 = (undefined2 *)(*(int *)(this + 4) + uVar7 * 0x14);
}
uVar5 = puVar8[1];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
DAT_000d286a = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar5 == 0xffff) {
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)uVar5 * 0x14);
}
if (puVar8[3] != 1) goto joined_r0x0007f05c;
LAB_0007f4f0:
param_1 = uVar2;
if ((short)uVar7 == -1) {
uVar2 = *(ushort *)(this + 0x10);
}
else {
*(undefined2 *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) = 0;
uVar2 = *(ushort *)(this + 0x10);
}
}
else {
LAB_0007eadb:
if (uVar5 == 0xffff) goto LAB_0007effb;
LAB_0007eae5:
if (*(short *)(*(int *)(this + 4) + (uint)uVar5 * 0x14 + 6) == 1) goto LAB_0007f00b;
joined_r0x0007f05c:
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_0007eb01;
}
if (uVar6 != 0xffff) goto LAB_0007eb0b;
LAB_0007f093:
local_28 = 0x13ffec;
uVar7 = (uint)DAT_000d286a;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_0007eb2c;
LAB_0007f0ab:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_0007eb2c;
}
if ((short)uVar7 != -1) goto LAB_0007eb36;
LAB_0007f0d6:
if (DAT_000d286e != 1) goto LAB_0007eb4a;
LAB_0007f0f0:
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar3 = &Links(unsigned_short)::s_Sentinel;
if (uVar6 != 0xffff) {
puVar3 = (ushort *)(local_28 + *(int *)(this + 4));
}
*(undefined2 *)(*(int *)(this + 4) + 6 + (uint)*puVar3 * 0x14) = 1;
*(undefined2 *)(*(int *)(this + 4) + 6 + local_28) = 0;
RotateRight(this,uVar6);
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 == 0xffff) {
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)param_1 * 0x14);
}
uVar2 = puVar8[2];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 == 0xffff) {
local_20 = 0x13ffec;
puVar8 = &Links(unsigned_short)::s_Sentinel;
local_24._0_2_ = 0xffff;
}
else {
local_20 = (uint)uVar2 * 0x14;
puVar8 = (undefined2 *)(*(int *)(this + 4) + local_20);
local_24._0_2_ = uVar2;
}
uVar6 = puVar8[1];
local_28 = (uint)uVar6 * 0x14;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_0007f1b0;
LAB_0007eb65:
iVar4 = *(int *)(this + 4);
if (uVar2 != 0xffff) goto LAB_0007eb72;
LAB_0007f1de:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_0007eb01:
if (uVar6 == 0xffff) goto LAB_0007f093;
LAB_0007eb0b:
local_28 = uVar7 * 0x14;
uVar7 = (uint)*(ushort *)(*(int *)(this + 4) + local_28 + 2);
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_0007f0ab;
LAB_0007eb2c:
if ((short)uVar7 == -1) goto LAB_0007f0d6;
LAB_0007eb36:
if (*(short *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) == 1) goto LAB_0007f0f0;
LAB_0007eb4a:
local_20 = (uint)uVar2 * 0x14;
local_24._0_2_ = uVar2;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_0007eb65;
LAB_0007f1b0:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_0007eb65;
}
iVar4 = *(int *)(this + 4);
if (uVar2 == 0xffff) goto LAB_0007f1de;
LAB_0007eb72:
puVar8 = (undefined2 *)(local_20 + iVar4);
}
bVar9 = Links(unsigned_short)::s_Sentinel == '\0';
*(undefined2 *)(iVar4 + 6 + local_28) = puVar8[3];
*(undefined2 *)(*(int *)(this + 4) + 6 + local_20) = 1;
if ((bVar9) && (iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)
) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar6 == 0xffff) {
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar8 = (undefined2 *)(local_28 + *(int *)(this + 4));
}
*(undefined2 *)(*(int *)(this + 4) + 6 + (uint)(ushort)puVar8[1] * 0x14) = 1;
RotateLeft(this,(ushort)local_24);
uVar2 = *(ushort *)(this + 0x10);
param_1 = uVar2;
}
}
else {
if (param_1 == 0xffff) goto LAB_0007ea09;
LAB_0007e81d:
uVar2 = *(ushort *)(*(int *)(this + 4) + (uint)param_1 * 0x14 + 4);
local_24 = (uint)uVar2;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_0007ea20;
LAB_0007e83b:
if (uVar2 == 0xffff) goto LAB_0007ea45;
LAB_0007e845:
if (param_1 == *(ushort *)(*(int *)(this + 4) + local_24 * 0x14)) goto LAB_0007ea60;
LAB_0007e85e:
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_0007e870;
LAB_0007ef55:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar2 == 0xffff) goto LAB_0007ef55;
LAB_0007e870:
puVar3 = (ushort *)(*(int *)(this + 4) + local_24 * 0x14);
}
uVar6 = *puVar3;
uVar7 = (uint)uVar6;
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar6 != 0xffff) goto LAB_0007e891;
LAB_0007ee60:
if (DAT_000d286e != 0) goto LAB_0007e8a8;
LAB_0007ee70:
*(undefined2 *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) = 1;
*(undefined2 *)(*(int *)(this + 4) + local_24 * 0x14 + 6) = 0;
RotateRight(this,(ushort)local_24);
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 != 0xffff) goto LAB_0007eec0;
LAB_0007f3a9:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (param_1 == 0xffff) goto LAB_0007f3a9;
LAB_0007eec0:
puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)param_1 * 0x14);
}
uVar2 = puVar8[2];
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_0007eee2;
LAB_0007f375:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar2 == 0xffff) goto LAB_0007f375;
LAB_0007eee2:
puVar3 = (ushort *)(*(int *)(this + 4) + (uint)uVar2 * 0x14);
}
uVar7 = (uint)*puVar3;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_0007e8b7;
LAB_0007eef9:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_0007e8b7;
}
if ((short)uVar7 != -1) goto LAB_0007e8c1;
LAB_0007ef24:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar6 == 0xffff) goto LAB_0007ee60;
LAB_0007e891:
if (*(short *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) == 0) goto LAB_0007ee70;
LAB_0007e8a8:
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_0007eef9;
LAB_0007e8b7:
if ((short)uVar7 == -1) goto LAB_0007ef24;
LAB_0007e8c1:
puVar8 = (undefined2 *)(*(int *)(this + 4) + uVar7 * 0x14);
}
uVar6 = puVar8[1];
uVar5 = (ushort)uVar7;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286c = 0xffff;
DAT_000d286a = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_0007e8d9;
}
if (uVar6 != 0xffff) goto LAB_0007e8e3;
LAB_0007ec0b:
if (DAT_000d286e != 1) goto LAB_0007e8f7;
LAB_0007ec20:
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
uVar6 = Links(unsigned_short)::s_Sentinel;
if (uVar5 != 0xffff) {
uVar6 = *(ushort *)(*(int *)(this + 4) + uVar7 * 0x14);
}
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar6 == 0xffff) {
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)uVar6 * 0x14);
}
if (puVar8[3] == 1) goto LAB_0007f4f0;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_0007ec80;
LAB_0007e8ff:
if (uVar5 != 0xffff) goto LAB_0007e909;
LAB_0007ecab:
local_28 = 0x13ffec;
uVar7 = (uint)Links(unsigned_short)::s_Sentinel;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_0007ecc8;
LAB_0007e929:
if ((short)uVar7 != -1) goto LAB_0007e933;
LAB_0007ecf3:
if (DAT_000d286e != 1) goto LAB_0007e947;
LAB_0007ed08:
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar8 = &Links(unsigned_short)::s_Sentinel;
if (uVar5 != 0xffff) {
puVar8 = (undefined2 *)(local_28 + *(int *)(this + 4));
}
*(undefined2 *)(*(int *)(this + 4) + 6 + (uint)(ushort)puVar8[1] * 0x14) = 1;
*(undefined2 *)(*(int *)(this + 4) + 6 + local_28) = 0;
RotateLeft(this,uVar5);
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 == 0xffff) {
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)param_1 * 0x14);
}
uVar2 = puVar8[2];
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 == 0xffff) {
local_20 = 0x13ffec;
puVar3 = &Links(unsigned_short)::s_Sentinel;
local_24._0_2_ = 0xffff;
}
else {
local_20 = (uint)uVar2 * 0x14;
puVar3 = (ushort *)(*(int *)(this + 4) + local_20);
local_24._0_2_ = uVar2;
}
uVar5 = *puVar3;
local_28 = (uint)uVar5 * 0x14;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_0007e962;
LAB_0007edc8:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_0007e962;
}
iVar4 = *(int *)(this + 4);
if (uVar2 != 0xffff) goto LAB_0007e96f;
LAB_0007edf6:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_0007e8d9:
if (uVar6 == 0xffff) goto LAB_0007ec0b;
LAB_0007e8e3:
if (*(short *)(*(int *)(this + 4) + (uint)uVar6 * 0x14 + 6) == 1) goto LAB_0007ec20;
LAB_0007e8f7:
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_0007e8ff;
LAB_0007ec80:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_0007e8ff;
}
if (uVar5 == 0xffff) goto LAB_0007ecab;
LAB_0007e909:
local_28 = uVar7 * 0x14;
uVar7 = (uint)*(ushort *)(*(int *)(this + 4) + local_28);
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_0007e929;
LAB_0007ecc8:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_0007e929;
}
if ((short)uVar7 == -1) goto LAB_0007ecf3;
LAB_0007e933:
if (*(short *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) == 1) goto LAB_0007ed08;
LAB_0007e947:
local_20 = (uint)uVar2 * 0x14;
local_24._0_2_ = uVar2;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_0007edc8;
LAB_0007e962:
iVar4 = *(int *)(this + 4);
if (uVar2 == 0xffff) goto LAB_0007edf6;
LAB_0007e96f:
puVar8 = (undefined2 *)(local_20 + iVar4);
}
bVar9 = Links(unsigned_short)::s_Sentinel == '\0';
*(undefined2 *)(iVar4 + 6 + local_28) = puVar8[3];
*(undefined2 *)(*(int *)(this + 4) + 6 + local_20) = 1;
if ((bVar9) && (iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0))
{
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d286a = 0xffff;
DAT_000d286c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
iVar4 = *(int *)(this + 4);
if (uVar5 != 0xffff) goto LAB_0007e9a5;
LAB_0007f4e0:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
iVar4 = *(int *)(this + 4);
if (uVar5 == 0xffff) goto LAB_0007f4e0;
LAB_0007e9a5:
puVar3 = (ushort *)(local_28 + iVar4);
}
*(undefined2 *)(iVar4 + 6 + (uint)*puVar3 * 0x14) = 1;
RotateRight(this,(ushort)local_24);
uVar2 = *(ushort *)(this + 0x10);
param_1 = uVar2;
}
}
*(undefined2 *)(*(int *)(this + 4) + (uint)param_1 * 0x14 + 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.