CUtlRBTree<CUtlMap<CBaseEntity*,CPhysSaveRestoreBlockHandler::CEntityRestoreSet*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CBaseEntity*,CPhysSaveRestoreBlockHandler::CEntityRestoreSet*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CBaseEntity*,CPhysSaveRestoreBlockHandler::CEntityRestoreSet*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::RemoveRebalance
0x00484920 · 5563 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIP11CBaseEntityPN28CPhysSaveRestoreBlockHandler17CEntityRestoreSetEtE6Node_tEtNS6_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS7_tEtEE15RemoveRebalanceEt
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlMap<CBaseEntity*, CPhysSaveRestoreBlockHandler::CEntityRestoreSet*, unsigned
short>::Node_t, unsigned short, CUtlMap<CBaseEntity*,
CPhysSaveRestoreBlockHandler::CEntityRestoreSet*, unsigned short>::CKeyLess,
CUtlMemory<UtlRBTreeNode_t<CUtlMap<CBaseEntity*,
CPhysSaveRestoreBlockHandler::CEntityRestoreSet*, unsigned short>::Node_t, unsigned short>,
unsigned short> >::RemoveRebalance(unsigned short) */
void __thiscall
CUtlRBTree<CUtlMap<CBaseEntity*,CPhysSaveRestoreBlockHandler::CEntityRestoreSet*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CBaseEntity*,CPhysSaveRestoreBlockHandler::CEntityRestoreSet*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CBaseEntity*,CPhysSaveRestoreBlockHandler::CEntityRestoreSet*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::RemoveRebalance(CUtlRBTree<CUtlMap<CBaseEntity*,CPhysSaveRestoreBlockHandler::CEntityRestoreSet*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CBaseEntity*,CPhysSaveRestoreBlockHandler::CEntityRestoreSet*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CBaseEntity*,CPhysSaveRestoreBlockHandler::CEntityRestoreSet*,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_00f165f0 = 0xffff;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
sVar1 = DAT_00f165f4;
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_00f165f0 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar9 != 0xffff) goto LAB_004849f1;
LAB_00484bb5:
uVar2 = (uint)DAT_00f165f2;
uVar11 = DAT_00f165f2;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00484a09;
LAB_00484bd0:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f165f2 = 0xffff;
DAT_00f165f0 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00484a09;
}
if (uVar11 != 0xffff) goto LAB_00484a13;
LAB_00484bfb:
if (uVar9 != Links(unsigned_short)::s_Sentinel) goto LAB_00484a24;
LAB_00484c10:
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_00f165f0 = 0xffff;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00484c18;
}
if (uVar11 != 0xffff) goto LAB_00484c22;
LAB_0048551b:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_00484c18:
if (uVar11 == 0xffff) goto LAB_0048551b;
LAB_00484c22:
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_00f165f0 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar6 != 0xffff) goto LAB_00484c40;
LAB_004854e0:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar6 == 0xffff) goto LAB_004854e0;
LAB_00484c40:
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_00f165f0 = 0xffff;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar9 != 0xffff) goto LAB_00485448;
LAB_00485958:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar9 == 0xffff) goto LAB_00485958;
LAB_00485448:
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_00f165f0 = 0xffff;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar11 != 0xffff) goto LAB_00485469;
LAB_00485920:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar11 == 0xffff) goto LAB_00485920;
LAB_00485469:
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_00f165f0 = 0xffff;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00484c68;
}
if (uVar6 != 0xffff) goto LAB_00484c72;
LAB_004853f6:
puVar7 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_00484c68:
if (uVar6 == 0xffff) goto LAB_004853f6;
LAB_00484c72:
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_00f165f0 = 0xffff;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00484c88;
}
if (uVar5 != 0xffff) goto LAB_00484c92;
LAB_004851cc:
if (DAT_00f165f4 != 1) goto joined_r0x00485233;
LAB_004851dc:
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_00f165f0 = 0xffff;
DAT_00f165f2 = 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_00f165f0 = 0xffff;
DAT_00f165f2 = 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_r0x00485233;
LAB_004856f0:
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_00484c88:
if (uVar5 == 0xffff) goto LAB_004851cc;
LAB_00484c92:
if (*(short *)((uint)uVar5 * 0x10 + *(int *)(this + 4) + 6) == 1) goto LAB_004851dc;
joined_r0x00485233:
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_00f165f0 = 0xffff;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00484cb0;
}
if (uVar6 != 0xffff) goto LAB_00484cba;
LAB_0048526e:
local_24 = 0xffff0;
uVar5 = DAT_00f165f0;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00484cd8;
LAB_00485288:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f165f0 = 0xffff;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00484cd8;
}
if (uVar5 != 0xffff) goto LAB_00484ce2;
LAB_004852bc:
if (DAT_00f165f4 != 1) goto LAB_00484cf6;
LAB_004852d0:
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
DAT_00f165f0 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f165f2 = 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_00f165f0 = 0xffff;
DAT_00f165f2 = 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_00f165f0 = 0xffff;
DAT_00f165f2 = 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_00485380;
LAB_00484d0b:
iVar3 = *(int *)(this + 4);
if (uVar11 != 0xffff) goto LAB_00484d18;
LAB_004853b7:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_00484cb0:
if (uVar6 == 0xffff) goto LAB_0048526e;
LAB_00484cba:
local_24 = uVar8 * 0x10;
uVar5 = *(ushort *)(local_24 + *(int *)(this + 4) + 2);
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00485288;
LAB_00484cd8:
if (uVar5 == 0xffff) goto LAB_004852bc;
LAB_00484ce2:
if (*(short *)((uint)uVar5 * 0x10 + *(int *)(this + 4) + 6) == 1) goto LAB_004852d0;
LAB_00484cf6:
local_28 = (uint)uVar11 << 4;
uVar9 = uVar11;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00484d0b;
LAB_00485380:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f165f0 = 0xffff;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00484d0b;
}
iVar3 = *(int *)(this + 4);
if (uVar11 == 0xffff) goto LAB_004853b7;
LAB_00484d18:
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_00f165f0 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f165f2 = 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_00484bb5;
LAB_004849f1:
uVar11 = *(ushort *)(uVar10 * 0x10 + *(int *)(this + 4) + 4);
uVar2 = (uint)uVar11;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00484bd0;
LAB_00484a09:
if (uVar11 == 0xffff) goto LAB_00484bfb;
LAB_00484a13:
if (uVar9 == *(ushort *)(uVar2 * 0x10 + *(int *)(this + 4))) goto LAB_00484c10;
LAB_00484a24:
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_00f165f0 = 0xffff;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00484a2c;
}
if (uVar11 != 0xffff) goto LAB_00484a36;
LAB_0048510b:
puVar7 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_00484a2c:
if (uVar11 == 0xffff) goto LAB_0048510b;
LAB_00484a36:
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_00f165f0 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar6 != 0xffff) goto LAB_00484a53;
LAB_00485010:
if (DAT_00f165f4 != 0) goto LAB_00484a67;
LAB_00485020:
*(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_00f165f2 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f165f0 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar9 != 0xffff) goto LAB_00485068;
LAB_00485588:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar9 == 0xffff) goto LAB_00485588;
LAB_00485068:
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_00f165f0 = 0xffff;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar11 != 0xffff) goto LAB_00485089;
LAB_00485550:
puVar7 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar11 == 0xffff) goto LAB_00485550;
LAB_00485089:
puVar7 = (ushort *)((uint)uVar11 * 0x10 + *(int *)(this + 4));
}
uVar8 = (uint)*puVar7;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00484a7b;
LAB_0048509f:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f165f0 = 0xffff;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00484a7b;
}
if ((short)uVar8 != -1) goto LAB_00484a85;
LAB_004850cd:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar6 == 0xffff) goto LAB_00485010;
LAB_00484a53:
if (*(short *)(uVar8 * 0x10 + *(int *)(this + 4) + 6) == 0) goto LAB_00485020;
LAB_00484a67:
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_0048509f;
LAB_00484a7b:
if ((short)uVar8 == -1) goto LAB_004850cd;
LAB_00484a85:
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_00f165f0 = 0xffff;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00484a9c;
}
if (uVar6 != 0xffff) goto LAB_00484aa6;
LAB_00484db4:
if (DAT_00f165f4 != 1) goto LAB_00484aba;
LAB_00484dc8:
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_00f165f0 = 0xffff;
DAT_00f165f2 = 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_00f165f0 = 0xffff;
DAT_00f165f2 = 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_004856f0;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00484e28;
LAB_00484ac4:
if (uVar5 != 0xffff) goto LAB_00484ace;
LAB_00484e56:
local_24 = 0xffff0;
uVar6 = Links(unsigned_short)::s_Sentinel;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00484e70;
LAB_00484aeb:
if (uVar6 != 0xffff) goto LAB_00484af5;
LAB_00484ea4:
if (DAT_00f165f4 != 1) goto LAB_00484b09;
LAB_00484eb8:
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
DAT_00f165f0 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f165f2 = 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_00f165f0 = 0xffff;
DAT_00f165f2 = 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_00f165f0 = 0xffff;
DAT_00f165f2 = 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_00484b1e;
LAB_00484f68:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f165f0 = 0xffff;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00484b1e;
}
iVar3 = *(int *)(this + 4);
if (uVar11 != 0xffff) goto LAB_00484b2b;
LAB_00484f9f:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
LAB_00484a9c:
if (uVar6 == 0xffff) goto LAB_00484db4;
LAB_00484aa6:
if (*(short *)((uint)uVar6 * 0x10 + *(int *)(this + 4) + 6) == 1) goto LAB_00484dc8;
LAB_00484aba:
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00484ac4;
LAB_00484e28:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f165f0 = 0xffff;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00484ac4;
}
if (uVar5 == 0xffff) goto LAB_00484e56;
LAB_00484ace:
local_24 = uVar8 * 0x10;
uVar6 = *(ushort *)(local_24 + *(int *)(this + 4));
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00484aeb;
LAB_00484e70:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f165f0 = 0xffff;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_00484aeb;
}
if (uVar6 == 0xffff) goto LAB_00484ea4;
LAB_00484af5:
if (*(short *)((uint)uVar6 * 0x10 + *(int *)(this + 4) + 6) == 1) goto LAB_00484eb8;
LAB_00484b09:
local_28 = (uint)uVar11 << 4;
uVar9 = uVar11;
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00484f68;
LAB_00484b1e:
iVar3 = *(int *)(this + 4);
if (uVar11 == 0xffff) goto LAB_00484f9f;
LAB_00484b2b:
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_00f165f0 = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
iVar3 = *(int *)(this + 4);
if (uVar5 != 0xffff) goto LAB_00484b64;
LAB_004856e0:
puVar7 = &Links(unsigned_short)::s_Sentinel;
}
else {
iVar3 = *(int *)(this + 4);
if (uVar5 == 0xffff) goto LAB_004856e0;
LAB_00484b64:
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.