//
// GJEffectManager::hasBeenTriggered from 0x100014bec to 0x100014c30 (68 bytes)
//
// 4 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x1001212d4
// > GJBaseGameLayer::collisionCheckObjects @ 0x1001e831c
// > GJBaseGameLayer::collisionCheckObjects @ 0x1001e8b50
// > GJBaseGameLayer::playerTouchedTrigger @ 0x1001e93c4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall GJEffectManager::hasBeenTriggered(GJEffectManager *a1, int a2, int a3)
{
std::__tree_end_node *>::pointer left; // x8
int v4; // w9
int v5; // w9
left = a1->m_unkMap498.__tree_.__pair1_.__value_.__left_;
if ( left )
{
while ( 1 )
{
v4 = *((_DWORD *)left + 7);
if ( v4 <= a2 )
{
if ( v4 < a2 )
goto LABEL_7;
v5 = *((_DWORD *)left + 8);
if ( v5 <= a3 )
break;
}
LABEL_8:
left = *(std::__tree_end_node *>::pointer *)left;
if ( !left )
return 0;
}
if ( v5 >= a3 )
return 1;
LABEL_7:
left = (std::__tree_end_node *>::pointer)((char *)left + 8);
goto LABEL_8;
}
return 0;
}