CUtlRBTree<CIPRateLimit::iprate_s,int,bool(*)(CIPRateLimit::iprate_s_const&,CIPRateLimit::iprate_s_const&),CUtlMemory<UtlRBTreeNode_t<CIPRateLimit::iprate_s,int>,int>>::RemoveRebalance
0x001f6d90 · 4727 bytes · __thiscall
_ZN10CUtlRBTreeIN12CIPRateLimit8iprate_sEiPFbRKS1_S3_E10CUtlMemoryI15UtlRBTreeNode_tIS1_iEiEE15RemoveRebalanceEi
Decompiled
undefined (2 params)
/* WARNING: Type propagation algorithm not settling */
/* CUtlRBTree<CIPRateLimit::iprate_s, int, bool (*)(CIPRateLimit::iprate_s const&,
CIPRateLimit::iprate_s const&), CUtlMemory<UtlRBTreeNode_t<CIPRateLimit::iprate_s, int>, int>
>::RemoveRebalance(int) */
void __thiscall
CUtlRBTree<CIPRateLimit::iprate_s,int,bool(*)(CIPRateLimit::iprate_s_const&,CIPRateLimit::iprate_s_const&),CUtlMemory<UtlRBTreeNode_t<CIPRateLimit::iprate_s,int>,int>>
::RemoveRebalance(CUtlRBTree<CIPRateLimit::iprate_s,int,bool(*)(CIPRateLimit::iprate_s_const&,CIPRateLimit::iprate_s_const&),CUtlMemory<UtlRBTreeNode_t<CIPRateLimit::iprate_s,int>,int>>
*this,int param_1)
{
int *piVar1;
int iVar2;
int iVar3;
int iVar4;
undefined4 *puVar5;
bool bVar6;
int local_28;
int local_24;
int local_20;
iVar4 = *(int *)(this + 0x10);
while (param_1 != iVar4) {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar4 = DAT_0034180c;
if (param_1 != -1) {
iVar4 = *(int *)(param_1 * 0x20 + *(int *)(this + 4) + 0xc);
}
if (iVar4 != 1) break;
if (Links(int)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) goto LAB_001f7165;
LAB_001f6e49:
puVar5 = (undefined4 *)(param_1 * 0x20 + *(int *)(this + 4));
}
else {
if (param_1 != -1) goto LAB_001f6e49;
LAB_001f7165:
puVar5 = &Links(int)::s_Sentinel;
}
iVar4 = puVar5[2];
if (Links(int)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar4 == -1) goto LAB_001f6fe4;
LAB_001f6e66:
if (param_1 != *(int *)(iVar4 * 0x20 + *(int *)(this + 4))) goto LAB_001f6e79;
LAB_001f6ff8:
if (Links(int)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar4 == -1) goto LAB_001f7514;
LAB_001f7009:
local_20 = *(int *)(iVar4 * 0x20 + *(int *)(this + 4) + 4);
if (Links(int)::s_Sentinel != '\0') goto LAB_001f701f;
LAB_001f7530:
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 == 0) goto LAB_001f701f;
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (local_20 == -1) goto LAB_001f7580;
LAB_001f702b:
if (*(int *)(local_20 * 0x20 + *(int *)(this + 4) + 0xc) != 0) goto LAB_001f703c;
LAB_001f7590:
*(undefined4 *)(local_20 * 0x20 + *(int *)(this + 4) + 0xc) = 1;
*(undefined4 *)(iVar4 * 0x20 + *(int *)(this + 4) + 0xc) = 0;
RotateLeft(this,iVar4);
if (Links(int)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) goto LAB_001f7b25;
LAB_001f75d4:
puVar5 = (undefined4 *)(param_1 * 0x20 + *(int *)(this + 4));
}
else {
if (param_1 != -1) goto LAB_001f75d4;
LAB_001f7b25:
puVar5 = &Links(int)::s_Sentinel;
}
iVar4 = puVar5[2];
if (Links(int)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar4 == -1) goto LAB_001f7af4;
LAB_001f75f1:
puVar5 = (undefined4 *)(iVar4 * 0x20 + *(int *)(this + 4));
}
else {
if (iVar4 != -1) goto LAB_001f75f1;
LAB_001f7af4:
puVar5 = &Links(int)::s_Sentinel;
}
local_20 = puVar5[1];
if (Links(int)::s_Sentinel == '\0') goto LAB_001f7607;
LAB_001f704b:
if (local_20 != -1) goto LAB_001f7057;
LAB_001f762e:
iVar3 = Links(int)::s_Sentinel;
if (Links(int)::s_Sentinel == '\0') goto LAB_001f7640;
LAB_001f7069:
if (iVar3 != -1) goto LAB_001f7072;
LAB_001f766a:
if (DAT_0034180c == 1) goto LAB_001f7679;
joined_r0x001f76c2:
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (local_20 == -1) {
local_24 = -0x20;
iVar3 = DAT_00341804;
if (Links(int)::s_Sentinel != '\0') goto LAB_001f70ac;
LAB_001f770e:
iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar2 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_001f70ac;
}
if (iVar3 != -1) goto LAB_001f70b5;
LAB_001f7738:
if (DAT_0034180c == 1) goto LAB_001f7750;
LAB_001f70c5:
local_28 = iVar4 << 5;
}
else {
local_24 = local_20 * 0x20;
iVar3 = *(int *)(*(int *)(this + 4) + local_24 + 4);
if (Links(int)::s_Sentinel == '\0') goto LAB_001f770e;
LAB_001f70ac:
if (iVar3 == -1) goto LAB_001f7738;
LAB_001f70b5:
if (*(int *)(iVar3 * 0x20 + *(int *)(this + 4) + 0xc) != 1) goto LAB_001f70c5;
LAB_001f7750:
if ((Links(int)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
piVar1 = &Links(int)::s_Sentinel;
if (local_20 != -1) {
piVar1 = (int *)(local_24 + *(int *)(this + 4));
}
*(undefined4 *)(*(int *)(this + 4) + 0xc + *piVar1 * 0x20) = 1;
*(undefined4 *)(*(int *)(this + 4) + 0xc + local_24) = 0;
RotateRight(this,local_20);
if ((Links(int)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) {
puVar5 = &Links(int)::s_Sentinel;
}
else {
puVar5 = (undefined4 *)(param_1 * 0x20 + *(int *)(this + 4));
}
iVar4 = puVar5[2];
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar4 == -1) {
local_28 = -0x20;
puVar5 = &Links(int)::s_Sentinel;
}
else {
local_28 = iVar4 * 0x20;
puVar5 = (undefined4 *)(*(int *)(this + 4) + local_28);
}
local_20 = puVar5[1];
local_24 = local_20 << 5;
}
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
puVar5 = &Links(int)::s_Sentinel;
if (iVar4 != -1) {
puVar5 = (undefined4 *)(*(int *)(this + 4) + local_28);
}
bVar6 = Links(int)::s_Sentinel == '\0';
*(undefined4 *)(*(int *)(this + 4) + 0xc + local_24) = puVar5[3];
*(undefined4 *)(*(int *)(this + 4) + 0xc + local_28) = 1;
if ((bVar6) && (iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
puVar5 = &Links(int)::s_Sentinel;
if (local_20 != -1) {
puVar5 = (undefined4 *)(local_24 + *(int *)(this + 4));
}
*(undefined4 *)(*(int *)(this + 4) + 0xc + puVar5[1] * 0x20) = 1;
RotateLeft(this,iVar4);
iVar4 = *(int *)(this + 0x10);
param_1 = iVar4;
}
else {
if (iVar4 != -1) goto LAB_001f7009;
LAB_001f7514:
local_20 = DAT_00341804;
if (Links(int)::s_Sentinel == '\0') goto LAB_001f7530;
LAB_001f701f:
if (local_20 != -1) goto LAB_001f702b;
LAB_001f7580:
if (DAT_0034180c == 0) goto LAB_001f7590;
LAB_001f703c:
if (Links(int)::s_Sentinel != '\0') goto LAB_001f704b;
LAB_001f7607:
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (local_20 == -1) goto LAB_001f762e;
LAB_001f7057:
iVar3 = *(int *)(local_20 * 0x20 + *(int *)(this + 4));
if (Links(int)::s_Sentinel != '\0') goto LAB_001f7069;
LAB_001f7640:
iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar2 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_001f7069;
}
if (iVar3 == -1) goto LAB_001f766a;
LAB_001f7072:
if (*(int *)(iVar3 * 0x20 + *(int *)(this + 4) + 0xc) != 1) goto joined_r0x001f76c2;
LAB_001f7679:
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (local_20 == -1) {
puVar5 = &Links(int)::s_Sentinel;
}
else {
puVar5 = (undefined4 *)(local_20 * 0x20 + *(int *)(this + 4));
}
iVar3 = puVar5[1];
if ((Links(int)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar2 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar3 == -1) {
puVar5 = &Links(int)::s_Sentinel;
}
else {
puVar5 = (undefined4 *)(iVar3 * 0x20 + *(int *)(this + 4));
}
if (puVar5[3] != 1) goto joined_r0x001f76c2;
LAB_001f7960:
param_1 = iVar4;
if (local_20 == -1) {
iVar4 = *(int *)(this + 0x10);
}
else {
*(undefined4 *)(local_20 * 0x20 + *(int *)(this + 4) + 0xc) = 0;
iVar4 = *(int *)(this + 0x10);
}
}
}
else {
if (iVar4 != -1) goto LAB_001f6e66;
LAB_001f6fe4:
if (param_1 == Links(int)::s_Sentinel) goto LAB_001f6ff8;
LAB_001f6e79:
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
local_20 = Links(int)::s_Sentinel;
if (iVar4 != -1) {
local_20 = *(int *)(iVar4 * 0x20 + *(int *)(this + 4));
}
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar3 = DAT_0034180c;
if (local_20 != -1) {
iVar3 = *(int *)(local_20 * 0x20 + *(int *)(this + 4) + 0xc);
}
if (iVar3 == 0) {
*(undefined4 *)(local_20 * 0x20 + *(int *)(this + 4) + 0xc) = 1;
*(undefined4 *)(iVar4 * 0x20 + *(int *)(this + 4) + 0xc) = 0;
RotateRight(this,iVar4);
if (Links(int)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) goto LAB_001f7955;
LAB_001f7454:
puVar5 = (undefined4 *)(param_1 * 0x20 + *(int *)(this + 4));
}
else {
if (param_1 != -1) goto LAB_001f7454;
LAB_001f7955:
puVar5 = &Links(int)::s_Sentinel;
}
iVar4 = puVar5[2];
if (Links(int)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar4 == -1) goto LAB_001f7924;
LAB_001f7471:
piVar1 = (int *)(iVar4 * 0x20 + *(int *)(this + 4));
}
else {
if (iVar4 != -1) goto LAB_001f7471;
LAB_001f7924:
piVar1 = &Links(int)::s_Sentinel;
}
local_20 = *piVar1;
}
if (Links(int)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (local_20 == -1) goto LAB_001f7367;
LAB_001f6ed7:
puVar5 = (undefined4 *)(local_20 * 0x20 + *(int *)(this + 4));
}
else {
if (local_20 != -1) goto LAB_001f6ed7;
LAB_001f7367:
puVar5 = &Links(int)::s_Sentinel;
}
iVar3 = puVar5[1];
if (Links(int)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar2 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_001f6eea;
}
if (iVar3 == -1) goto LAB_001f719a;
LAB_001f6ef3:
if (*(int *)(iVar3 * 0x20 + *(int *)(this + 4) + 0xc) != 1) goto LAB_001f6f03;
LAB_001f71b0:
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar3 = Links(int)::s_Sentinel;
if (local_20 != -1) {
iVar3 = *(int *)(local_20 * 0x20 + *(int *)(this + 4));
}
if ((Links(int)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar2 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar3 == -1) {
puVar5 = &Links(int)::s_Sentinel;
}
else {
puVar5 = (undefined4 *)(iVar3 * 0x20 + *(int *)(this + 4));
}
if (puVar5[3] == 1) goto LAB_001f7960;
if (Links(int)::s_Sentinel == '\0') goto LAB_001f7200;
LAB_001f6f0b:
if (local_20 != -1) goto LAB_001f6f17;
LAB_001f7227:
local_24 = -0x20;
iVar3 = Links(int)::s_Sentinel;
if (Links(int)::s_Sentinel == '\0') goto LAB_001f7240;
LAB_001f6f2c:
if (iVar3 != -1) goto LAB_001f6f35;
LAB_001f726a:
if (DAT_0034180c == 1) goto LAB_001f7280;
LAB_001f6f45:
local_28 = iVar4 << 5;
}
else {
LAB_001f6eea:
if (iVar3 != -1) goto LAB_001f6ef3;
LAB_001f719a:
if (DAT_0034180c == 1) goto LAB_001f71b0;
LAB_001f6f03:
if (Links(int)::s_Sentinel != '\0') goto LAB_001f6f0b;
LAB_001f7200:
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (local_20 == -1) goto LAB_001f7227;
LAB_001f6f17:
local_24 = local_20 * 0x20;
iVar3 = *(int *)(*(int *)(this + 4) + local_24);
if (Links(int)::s_Sentinel != '\0') goto LAB_001f6f2c;
LAB_001f7240:
iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar2 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_001f6f2c;
}
if (iVar3 == -1) goto LAB_001f726a;
LAB_001f6f35:
if (*(int *)(iVar3 * 0x20 + *(int *)(this + 4) + 0xc) != 1) goto LAB_001f6f45;
LAB_001f7280:
if ((Links(int)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
puVar5 = &Links(int)::s_Sentinel;
if (local_20 != -1) {
puVar5 = (undefined4 *)(local_24 + *(int *)(this + 4));
}
*(undefined4 *)(*(int *)(this + 4) + 0xc + puVar5[1] * 0x20) = 1;
*(undefined4 *)(*(int *)(this + 4) + 0xc + local_24) = 0;
RotateLeft(this,local_20);
if ((Links(int)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) {
puVar5 = &Links(int)::s_Sentinel;
}
else {
puVar5 = (undefined4 *)(param_1 * 0x20 + *(int *)(this + 4));
}
iVar4 = puVar5[2];
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar4 == -1) {
local_28 = -0x20;
piVar1 = &Links(int)::s_Sentinel;
}
else {
local_28 = iVar4 * 0x20;
piVar1 = (int *)(*(int *)(this + 4) + local_28);
}
local_20 = *piVar1;
local_24 = local_20 << 5;
}
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
puVar5 = &Links(int)::s_Sentinel;
if (iVar4 != -1) {
puVar5 = (undefined4 *)(*(int *)(this + 4) + local_28);
}
bVar6 = Links(int)::s_Sentinel == '\0';
*(undefined4 *)(*(int *)(this + 4) + 0xc + local_24) = puVar5[3];
*(undefined4 *)(*(int *)(this + 4) + 0xc + local_28) = 1;
if ((bVar6) && (iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00341804 = -1;
DAT_00341808 = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
piVar1 = &Links(int)::s_Sentinel;
if (local_20 != -1) {
piVar1 = (int *)(local_24 + *(int *)(this + 4));
}
*(undefined4 *)(*(int *)(this + 4) + 0xc + *piVar1 * 0x20) = 1;
RotateRight(this,iVar4);
iVar4 = *(int *)(this + 0x10);
param_1 = iVar4;
}
}
*(undefined4 *)(param_1 * 0x20 + *(int *)(this + 4) + 0xc) = 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.