//
// GJEffectManager::hasBeenTriggered from 0x1002e9750 to 0x1002e9795 (69 bytes)
//
// 4 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x1000bd772
// > GJBaseGameLayer::collisionCheckObjects @ 0x100127053
// > GJBaseGameLayer::collisionCheckObjects @ 0x100127a35
// > GJBaseGameLayer::playerTouchedTrigger @ 0x100128886
//
// 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; // rax
left = a1->m_unkMap498.__tree_.__pair1_.__value_.__left_;
if ( left )
{
while ( 1 )
{
if ( *((_DWORD *)left + 7) <= a2 )
{
if ( *((_DWORD *)left + 7) >= a2 )
{
if ( *((_DWORD *)left + 8) > a3 )
goto LABEL_4;
if ( *((_DWORD *)left + 8) >= a3 )
return 1;
}
left = (std::__tree_end_node *>::pointer)((char *)left + 8);
}
LABEL_4:
left = *(std::__tree_end_node *>::pointer *)left;
if ( !left )
return 0;
}
}
return 0;
}