//
// GJEffectManager::removeTriggeredID from 0xa11ba8 to 0xa11cb0 (264 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::activateResetTrigger @ 0x9a7c6c
// > GJBaseGameLayer::activateResetTrigger @ 0x9a7c94
// > GJBaseGameLayer::playerTouchedTrigger @ 0x9c1920
// > ??> @ 0xfd4e0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:59:31 +0000
//
void __fastcall GJEffectManager::removeTriggeredID(GJEffectManager *this, int a2, int a3)
{
char *v3; // x6
__int64 *v4; // x5
char *v5; // x19
char *v6; // x3
int v7; // w4
int v8; // w3
char *v9; // x1
bool v10; // zf
v3 = (char *)this + 1080;
v4 = *((__int64 **)this + 135);
if ( v4 )
{
v5 = (char *)this + 1080;
v6 = *((char **)this + 135);
do
{
while ( 1 )
{
v7 = *((_DWORD *)v6 + 7);
if ( a2 > v7 || a2 >= v7 && a3 > *((_DWORD *)v6 + 8) )
break;
v5 = v6;
v6 = *(char **)v6;
if ( !v6 )
goto LABEL_7;
}
v6 = *((char **)v6 + 1);
}
while ( v6 );
LABEL_7:
if ( v3 != v5 )
{
v8 = *((_DWORD *)v5 + 7);
if ( a2 >= v8 && (a2 > v8 || a3 >= *((_DWORD *)v5 + 8)) && v3 != v5 )
{
v9 = *((char **)v5 + 1);
if ( v9 )
{
while ( *(_QWORD *)v9 )
v9 = *(char **)v9;
if ( *((char **)this + 134) != v5 )
goto LABEL_16;
}
else
{
v9 = v5;
do
{
v10 = v9 == **((char ***)v9 + 2);
v9 = *((char **)v9 + 2);
}
while ( !v10 );
if ( *((char **)this + 134) != v5 )
goto LABEL_16;
}
*((_QWORD *)this + 134) = v9;
LABEL_16:
--*((_QWORD *)this + 136);
std::__tree_remove *>(v4, (__int64 *)v5);
operator delete(v5);
}
}
}
}