CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::RemoveRebalance
0x00081620 · 5434 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapI8CSteamIDPN5GCSDK12CGCGSSessionEtE6Node_tEtNS5_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS6_tEtEE15RemoveRebalanceEt
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlMap<CSteamID, GCSDK::CGCGSSession*, unsigned short>::Node_t, unsigned short,
CUtlMap<CSteamID, GCSDK::CGCGSSession*, unsigned short>::CKeyLess,
CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID, GCSDK::CGCGSSession*, unsigned short>::Node_t,
unsigned short>, unsigned short> >::RemoveRebalance(unsigned short) */
void __thiscall
CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::RemoveRebalance(CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,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_000d2874 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2872 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
sVar1 = DAT_000d2876;
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_000d2872 = 0xffff;
DAT_000d2874 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 != 0xffff) goto LAB_0008170d;
LAB_000818f9:
local_24 = (uint)DAT_000d2874;
uVar2 = DAT_000d2874;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_0008172b;
LAB_00081910:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2872 = 0xffff;
DAT_000d2874 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_00081735;
LAB_00081935:
if (param_1 != Links(unsigned_short)::s_Sentinel) goto LAB_0008174e;
LAB_00081950:
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_000d2872 = 0xffff;
DAT_000d2874 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_00081962;
LAB_0008222d:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar2 == 0xffff) goto LAB_0008222d;
LAB_00081962:
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_000d2872 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2874 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar6 != 0xffff) goto LAB_00081984;
LAB_000821f8:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar6 == 0xffff) goto LAB_000821f8;
LAB_00081984:
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_000d2872 = 0xffff;
DAT_000d2874 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 != 0xffff) goto LAB_00082168;
LAB_00082619:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (param_1 == 0xffff) goto LAB_00082619;
LAB_00082168:
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_000d2872 = 0xffff;
DAT_000d2874 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_0008218a;
LAB_000825dd:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar2 == 0xffff) goto LAB_000825dd;
LAB_0008218a:
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_000d2872 = 0xffff;
DAT_000d2874 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_000819aa;
}
if (uVar6 != 0xffff) goto LAB_000819b4;
LAB_0008210b:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_000819aa:
if (uVar6 == 0xffff) goto LAB_0008210b;
LAB_000819b4:
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_000d2872 = 0xffff;
DAT_000d2874 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_000819cb;
}
if (uVar5 != 0xffff) goto LAB_000819d5;
LAB_00081eeb:
if (DAT_000d2876 != 1) goto joined_r0x00081f4c;
LAB_00081efb:
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_000d2872 = 0xffff;
DAT_000d2874 = 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_000d2872 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2874 = 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_r0x00081f4c;
LAB_000823e0:
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_000819cb:
if (uVar5 == 0xffff) goto LAB_00081eeb;
LAB_000819d5:
if (*(short *)(*(int *)(this + 4) + (uint)uVar5 * 0x14 + 6) == 1) goto LAB_00081efb;
joined_r0x00081f4c:
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_000d2872 = 0xffff;
DAT_000d2874 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_000819f1;
}
if (uVar6 != 0xffff) goto LAB_000819fb;
LAB_00081f83:
local_28 = 0x13ffec;
uVar7 = (uint)DAT_000d2872;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00081a1c;
LAB_00081f9b:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2872 = 0xffff;
DAT_000d2874 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00081a1c;
}
if ((short)uVar7 != -1) goto LAB_00081a26;
LAB_00081fc6:
if (DAT_000d2876 != 1) goto LAB_00081a3a;
LAB_00081fe0:
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_000d2872 = 0xffff;
DAT_000d2874 = 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_000d2872 = 0xffff;
DAT_000d2874 = 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_000d2872 = 0xffff;
DAT_000d2874 = 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_000820a0;
LAB_00081a55:
iVar4 = *(int *)(this + 4);
if (uVar2 != 0xffff) goto LAB_00081a62;
LAB_000820ce:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_000819f1:
if (uVar6 == 0xffff) goto LAB_00081f83;
LAB_000819fb:
local_28 = uVar7 * 0x14;
uVar7 = (uint)*(ushort *)(*(int *)(this + 4) + local_28 + 2);
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00081f9b;
LAB_00081a1c:
if ((short)uVar7 == -1) goto LAB_00081fc6;
LAB_00081a26:
if (*(short *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) == 1) goto LAB_00081fe0;
LAB_00081a3a:
local_20 = (uint)uVar2 * 0x14;
local_24._0_2_ = uVar2;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00081a55;
LAB_000820a0:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2872 = 0xffff;
DAT_000d2874 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00081a55;
}
iVar4 = *(int *)(this + 4);
if (uVar2 == 0xffff) goto LAB_000820ce;
LAB_00081a62:
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_000d2872 = 0xffff;
DAT_000d2874 = 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_000818f9;
LAB_0008170d:
uVar2 = *(ushort *)(*(int *)(this + 4) + (uint)param_1 * 0x14 + 4);
local_24 = (uint)uVar2;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00081910;
LAB_0008172b:
if (uVar2 == 0xffff) goto LAB_00081935;
LAB_00081735:
if (param_1 == *(ushort *)(*(int *)(this + 4) + local_24 * 0x14)) goto LAB_00081950;
LAB_0008174e:
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_000d2872 = 0xffff;
DAT_000d2874 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_00081760;
LAB_00081e45:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar2 == 0xffff) goto LAB_00081e45;
LAB_00081760:
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_000d2872 = 0xffff;
DAT_000d2874 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar6 != 0xffff) goto LAB_00081781;
LAB_00081d50:
if (DAT_000d2876 != 0) goto LAB_00081798;
LAB_00081d60:
*(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_000d2872 = 0xffff;
DAT_000d2874 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 != 0xffff) goto LAB_00081db0;
LAB_00082299:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (param_1 == 0xffff) goto LAB_00082299;
LAB_00081db0:
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_000d2872 = 0xffff;
DAT_000d2874 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_00081dd2;
LAB_00082265:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar2 == 0xffff) goto LAB_00082265;
LAB_00081dd2:
puVar3 = (ushort *)(*(int *)(this + 4) + (uint)uVar2 * 0x14);
}
uVar7 = (uint)*puVar3;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_000817a7;
LAB_00081de9:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2872 = 0xffff;
DAT_000d2874 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_000817a7;
}
if ((short)uVar7 != -1) goto LAB_000817b1;
LAB_00081e14:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar6 == 0xffff) goto LAB_00081d50;
LAB_00081781:
if (*(short *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) == 0) goto LAB_00081d60;
LAB_00081798:
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00081de9;
LAB_000817a7:
if ((short)uVar7 == -1) goto LAB_00081e14;
LAB_000817b1:
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_000d2874 = 0xffff;
DAT_000d2872 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_000817c9;
}
if (uVar6 != 0xffff) goto LAB_000817d3;
LAB_00081afb:
if (DAT_000d2876 != 1) goto LAB_000817e7;
LAB_00081b10:
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_000d2872 = 0xffff;
DAT_000d2874 = 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_000d2872 = 0xffff;
DAT_000d2874 = 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_000823e0;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00081b70;
LAB_000817ef:
if (uVar5 != 0xffff) goto LAB_000817f9;
LAB_00081b9b:
local_28 = 0x13ffec;
uVar7 = (uint)Links(unsigned_short)::s_Sentinel;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00081bb8;
LAB_00081819:
if ((short)uVar7 != -1) goto LAB_00081823;
LAB_00081be3:
if (DAT_000d2876 != 1) goto LAB_00081837;
LAB_00081bf8:
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_000d2872 = 0xffff;
DAT_000d2874 = 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_000d2872 = 0xffff;
DAT_000d2874 = 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_000d2872 = 0xffff;
DAT_000d2874 = 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_00081852;
LAB_00081cb8:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2872 = 0xffff;
DAT_000d2874 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00081852;
}
iVar4 = *(int *)(this + 4);
if (uVar2 != 0xffff) goto LAB_0008185f;
LAB_00081ce6:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_000817c9:
if (uVar6 == 0xffff) goto LAB_00081afb;
LAB_000817d3:
if (*(short *)(*(int *)(this + 4) + (uint)uVar6 * 0x14 + 6) == 1) goto LAB_00081b10;
LAB_000817e7:
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_000817ef;
LAB_00081b70:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2872 = 0xffff;
DAT_000d2874 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_000817ef;
}
if (uVar5 == 0xffff) goto LAB_00081b9b;
LAB_000817f9:
local_28 = uVar7 * 0x14;
uVar7 = (uint)*(ushort *)(*(int *)(this + 4) + local_28);
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00081819;
LAB_00081bb8:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2872 = 0xffff;
DAT_000d2874 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00081819;
}
if ((short)uVar7 == -1) goto LAB_00081be3;
LAB_00081823:
if (*(short *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) == 1) goto LAB_00081bf8;
LAB_00081837:
local_20 = (uint)uVar2 * 0x14;
local_24._0_2_ = uVar2;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00081cb8;
LAB_00081852:
iVar4 = *(int *)(this + 4);
if (uVar2 == 0xffff) goto LAB_00081ce6;
LAB_0008185f:
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_000d2872 = 0xffff;
DAT_000d2874 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
iVar4 = *(int *)(this + 4);
if (uVar5 != 0xffff) goto LAB_00081895;
LAB_000823d0:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
iVar4 = *(int *)(this + 4);
if (uVar5 == 0xffff) goto LAB_000823d0;
LAB_00081895:
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.