CUtlRBTree<CUtlMap<unsigned_long_long,UGCFileRequest_t_const*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long_long,UGCFileRequest_t_const*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,UGCFileRequest_t_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::RemoveRebalance
0x00224a20 · 5434 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIyPK16UGCFileRequest_ttE6Node_tEtNS4_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS5_tEtEE15RemoveRebalanceEt
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlMap<unsigned long long, UGCFileRequest_t const*, unsigned short>::Node_t, unsigned
short, CUtlMap<unsigned long long, UGCFileRequest_t const*, unsigned short>::CKeyLess,
CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned long long, UGCFileRequest_t const*, unsigned
short>::Node_t, unsigned short>, unsigned short> >::RemoveRebalance(unsigned short) */
void __thiscall
CUtlRBTree<CUtlMap<unsigned_long_long,UGCFileRequest_t_const*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long_long,UGCFileRequest_t_const*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,UGCFileRequest_t_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::RemoveRebalance(CUtlRBTree<CUtlMap<unsigned_long_long,UGCFileRequest_t_const*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long_long,UGCFileRequest_t_const*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,UGCFileRequest_t_const*,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_00341aa4 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341aa2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
sVar1 = DAT_00341aa6;
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_00341aa2 = 0xffff;
DAT_00341aa4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 != 0xffff) goto LAB_00224b0d;
LAB_00224cf9:
local_24 = (uint)DAT_00341aa4;
uVar2 = DAT_00341aa4;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00224b2b;
LAB_00224d10:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341aa2 = 0xffff;
DAT_00341aa4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_00224b35;
LAB_00224d35:
if (param_1 != Links(unsigned_short)::s_Sentinel) goto LAB_00224b4e;
LAB_00224d50:
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_00341aa2 = 0xffff;
DAT_00341aa4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_00224d62;
LAB_0022562d:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar2 == 0xffff) goto LAB_0022562d;
LAB_00224d62:
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_00341aa2 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341aa4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar6 != 0xffff) goto LAB_00224d84;
LAB_002255f8:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar6 == 0xffff) goto LAB_002255f8;
LAB_00224d84:
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_00341aa2 = 0xffff;
DAT_00341aa4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 != 0xffff) goto LAB_00225568;
LAB_00225a19:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (param_1 == 0xffff) goto LAB_00225a19;
LAB_00225568:
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_00341aa2 = 0xffff;
DAT_00341aa4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_0022558a;
LAB_002259dd:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar2 == 0xffff) goto LAB_002259dd;
LAB_0022558a:
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_00341aa2 = 0xffff;
DAT_00341aa4 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00224daa;
}
if (uVar6 != 0xffff) goto LAB_00224db4;
LAB_0022550b:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_00224daa:
if (uVar6 == 0xffff) goto LAB_0022550b;
LAB_00224db4:
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_00341aa2 = 0xffff;
DAT_00341aa4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00224dcb;
}
if (uVar5 != 0xffff) goto LAB_00224dd5;
LAB_002252eb:
if (DAT_00341aa6 != 1) goto joined_r0x0022534c;
LAB_002252fb:
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_00341aa2 = 0xffff;
DAT_00341aa4 = 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_00341aa2 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341aa4 = 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_r0x0022534c;
LAB_002257e0:
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_00224dcb:
if (uVar5 == 0xffff) goto LAB_002252eb;
LAB_00224dd5:
if (*(short *)(*(int *)(this + 4) + (uint)uVar5 * 0x14 + 6) == 1) goto LAB_002252fb;
joined_r0x0022534c:
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_00341aa2 = 0xffff;
DAT_00341aa4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00224df1;
}
if (uVar6 != 0xffff) goto LAB_00224dfb;
LAB_00225383:
local_28 = 0x13ffec;
uVar7 = (uint)DAT_00341aa2;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00224e1c;
LAB_0022539b:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341aa2 = 0xffff;
DAT_00341aa4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00224e1c;
}
if ((short)uVar7 != -1) goto LAB_00224e26;
LAB_002253c6:
if (DAT_00341aa6 != 1) goto LAB_00224e3a;
LAB_002253e0:
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_00341aa2 = 0xffff;
DAT_00341aa4 = 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_00341aa2 = 0xffff;
DAT_00341aa4 = 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_00341aa2 = 0xffff;
DAT_00341aa4 = 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_002254a0;
LAB_00224e55:
iVar4 = *(int *)(this + 4);
if (uVar2 != 0xffff) goto LAB_00224e62;
LAB_002254ce:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_00224df1:
if (uVar6 == 0xffff) goto LAB_00225383;
LAB_00224dfb:
local_28 = uVar7 * 0x14;
uVar7 = (uint)*(ushort *)(*(int *)(this + 4) + local_28 + 2);
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_0022539b;
LAB_00224e1c:
if ((short)uVar7 == -1) goto LAB_002253c6;
LAB_00224e26:
if (*(short *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) == 1) goto LAB_002253e0;
LAB_00224e3a:
local_20 = (uint)uVar2 * 0x14;
local_24._0_2_ = uVar2;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00224e55;
LAB_002254a0:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341aa2 = 0xffff;
DAT_00341aa4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00224e55;
}
iVar4 = *(int *)(this + 4);
if (uVar2 == 0xffff) goto LAB_002254ce;
LAB_00224e62:
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_00341aa2 = 0xffff;
DAT_00341aa4 = 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_00224cf9;
LAB_00224b0d:
uVar2 = *(ushort *)(*(int *)(this + 4) + (uint)param_1 * 0x14 + 4);
local_24 = (uint)uVar2;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00224d10;
LAB_00224b2b:
if (uVar2 == 0xffff) goto LAB_00224d35;
LAB_00224b35:
if (param_1 == *(ushort *)(*(int *)(this + 4) + local_24 * 0x14)) goto LAB_00224d50;
LAB_00224b4e:
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_00341aa2 = 0xffff;
DAT_00341aa4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_00224b60;
LAB_00225245:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar2 == 0xffff) goto LAB_00225245;
LAB_00224b60:
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_00341aa2 = 0xffff;
DAT_00341aa4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar6 != 0xffff) goto LAB_00224b81;
LAB_00225150:
if (DAT_00341aa6 != 0) goto LAB_00224b98;
LAB_00225160:
*(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_00341aa2 = 0xffff;
DAT_00341aa4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (param_1 != 0xffff) goto LAB_002251b0;
LAB_00225699:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (param_1 == 0xffff) goto LAB_00225699;
LAB_002251b0:
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_00341aa2 = 0xffff;
DAT_00341aa4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar2 != 0xffff) goto LAB_002251d2;
LAB_00225665:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar2 == 0xffff) goto LAB_00225665;
LAB_002251d2:
puVar3 = (ushort *)(*(int *)(this + 4) + (uint)uVar2 * 0x14);
}
uVar7 = (uint)*puVar3;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00224ba7;
LAB_002251e9:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341aa2 = 0xffff;
DAT_00341aa4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00224ba7;
}
if ((short)uVar7 != -1) goto LAB_00224bb1;
LAB_00225214:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar6 == 0xffff) goto LAB_00225150;
LAB_00224b81:
if (*(short *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) == 0) goto LAB_00225160;
LAB_00224b98:
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_002251e9;
LAB_00224ba7:
if ((short)uVar7 == -1) goto LAB_00225214;
LAB_00224bb1:
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_00341aa4 = 0xffff;
DAT_00341aa2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00224bc9;
}
if (uVar6 != 0xffff) goto LAB_00224bd3;
LAB_00224efb:
if (DAT_00341aa6 != 1) goto LAB_00224be7;
LAB_00224f10:
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_00341aa2 = 0xffff;
DAT_00341aa4 = 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_00341aa2 = 0xffff;
DAT_00341aa4 = 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_002257e0;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00224f70;
LAB_00224bef:
if (uVar5 != 0xffff) goto LAB_00224bf9;
LAB_00224f9b:
local_28 = 0x13ffec;
uVar7 = (uint)Links(unsigned_short)::s_Sentinel;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00224fb8;
LAB_00224c19:
if ((short)uVar7 != -1) goto LAB_00224c23;
LAB_00224fe3:
if (DAT_00341aa6 != 1) goto LAB_00224c37;
LAB_00224ff8:
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_00341aa2 = 0xffff;
DAT_00341aa4 = 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_00341aa2 = 0xffff;
DAT_00341aa4 = 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_00341aa2 = 0xffff;
DAT_00341aa4 = 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_00224c52;
LAB_002250b8:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341aa2 = 0xffff;
DAT_00341aa4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00224c52;
}
iVar4 = *(int *)(this + 4);
if (uVar2 != 0xffff) goto LAB_00224c5f;
LAB_002250e6:
puVar8 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_00224bc9:
if (uVar6 == 0xffff) goto LAB_00224efb;
LAB_00224bd3:
if (*(short *)(*(int *)(this + 4) + (uint)uVar6 * 0x14 + 6) == 1) goto LAB_00224f10;
LAB_00224be7:
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00224bef;
LAB_00224f70:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341aa2 = 0xffff;
DAT_00341aa4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00224bef;
}
if (uVar5 == 0xffff) goto LAB_00224f9b;
LAB_00224bf9:
local_28 = uVar7 * 0x14;
uVar7 = (uint)*(ushort *)(*(int *)(this + 4) + local_28);
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00224c19;
LAB_00224fb8:
iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar4 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341aa2 = 0xffff;
DAT_00341aa4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00224c19;
}
if ((short)uVar7 == -1) goto LAB_00224fe3;
LAB_00224c23:
if (*(short *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) == 1) goto LAB_00224ff8;
LAB_00224c37:
local_20 = (uint)uVar2 * 0x14;
local_24._0_2_ = uVar2;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_002250b8;
LAB_00224c52:
iVar4 = *(int *)(this + 4);
if (uVar2 == 0xffff) goto LAB_002250e6;
LAB_00224c5f:
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_00341aa2 = 0xffff;
DAT_00341aa4 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
iVar4 = *(int *)(this + 4);
if (uVar5 != 0xffff) goto LAB_00224c95;
LAB_002257d0:
puVar3 = &Links(unsigned_short)::s_Sentinel;
}
else {
iVar4 = *(int *)(this + 4);
if (uVar5 == 0xffff) goto LAB_002257d0;
LAB_00224c95:
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.