//
// GJEffectManager::hasBeenTriggered from 0x9fa760 to 0x9fa7b0 (80 bytes)
//
// 5 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x70f8b4
// > GJBaseGameLayer::playerTouchedTrigger @ 0x9c1890
// > GJBaseGameLayer::collisionCheckObjects @ 0x9e8bc8
// > GJBaseGameLayer::collisionCheckObjects @ 0x9e8c08
// > ??> @ 0x42868
//
// 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:16 +0000
//
__int64 __fastcall GJEffectManager::hasBeenTriggered(GJEffectManager *this, int a2, int a3)
{
__int64 result; // x0
int v4; // w3
int v5; // w3
result = *((_QWORD *)this + 135);
if ( result )
{
while ( 1 )
{
v4 = *(_DWORD *)(result + 28);
if ( a2 < v4 )
goto LABEL_7;
if ( a2 > v4 )
goto LABEL_9;
v5 = *(_DWORD *)(result + 32);
if ( a3 < v5 )
{
LABEL_7:
result = *(_QWORD *)result;
if ( !result )
return result;
}
else
{
if ( a3 <= v5 )
return 1;
LABEL_9:
result = *(_QWORD *)(result + 8);
if ( !result )
return result;
}
}
}
return 0;
}