//
// GJEffectManager::removeTriggeredID from 0x5ced10 to 0x5ced8c (124 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::activateResetTrigger @ 0x5956e2
// > GJBaseGameLayer::activateResetTrigger @ 0x59571e
// > GJBaseGameLayer::playerTouchedTrigger @ 0x5a40f0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:54:03 +0000
//
void __fastcall GJEffectManager::removeTriggeredID(GJEffectManager *this, int a2, int a3)
{
int *v4; // r7
char *v5; // r0
int *v6; // r4
int *i; // r3
int v8; // r6
int v9; // r3
_DWORD *v10; // r0
int *v11; // r3
int *v12; // r6
v4 = *((int **)this + 161);
v5 = (char *)this + 644;
v6 = (int *)v5;
for ( i = v4; i; i = v12 )
{
v8 = i[4];
if ( v8 < a2 || a2 >= v8 && i[5] < a3 )
{
v12 = (int *)i[1];
i = v6;
}
else
{
v12 = (int *)*i;
}
v6 = i;
}
if ( v6 != (int *)v5 )
{
v9 = v6[4];
if ( a2 >= v9 && (v9 < a2 || a3 >= v6[5]) && v6 != (int *)v5 )
{
v10 = std::__tree_next *>(v6);
v11 = *((int **)this + 160);
--*((_DWORD *)this + 162);
if ( v11 == v6 )
*((_DWORD *)this + 160) = v10;
std::__tree_remove *>(v4, v6);
operator delete(v6);
}
}
}