//
// GJEffectManager::hasBeenTriggered from 0x5c3ede to 0x5c3f0a (44 bytes)
//
// 4 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x411b84
// > GJBaseGameLayer::playerTouchedTrigger @ 0x5a411e
// > GJBaseGameLayer::collisionCheckObjects @ 0x5ba95e
// > GJBaseGameLayer::collisionCheckObjects @ 0x5ba9b4
//
// 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:53:51 +0000
//
int __fastcall GJEffectManager::hasBeenTriggered(GJEffectManager *this, int a2, int a3)
{
_DWORD *v3; // r0
int v4; // r3
int v5; // r3
v3 = *((_DWORD **)this + 161);
while ( v3 )
{
v4 = v3[4];
if ( a2 < v4 )
goto LABEL_8;
if ( v4 < a2 )
goto LABEL_9;
v5 = v3[5];
if ( a3 < v5 )
{
LABEL_8:
v3 = (_DWORD *)*v3;
}
else
{
if ( v5 >= a3 )
{
LOBYTE(v3) = 1;
return (unsigned __int8)v3 & 1;
}
LABEL_9:
v3 = (_DWORD *)v3[1];
}
}
return (unsigned __int8)v3 & 1;
}