//
// EffectGameObject::canSpawnTriggers from 0x1001bb270 to 0x1001bb318 (168 bytes)
//
// 4 xrefs:
// > sub_1000F5470 @ 0x1000f54ff
// > sub_1000F5470 @ 0x1000f5bd6
// > sub_1000F78E0 @ 0x1000f7b0a
// > sub_1000F78E0 @ 0x1000f8480
//
// 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 EffectGameObject::canSpawnTriggers(EffectGameObject *a1)
{
int m_objectID; // ecx
bool result; // al
unsigned int v3; // ecx
int v4; // edx
unsigned __int64 v5; // rdx
__int64 v6; // rsi
m_objectID = a1->m_objectID;
result = 1;
if ( m_objectID > 2062 )
{
v5 = (unsigned int)(m_objectID - 3604);
if ( (unsigned int)v5 > 0x27 || (v6 = 0x9000010029LL, !_bittest64(&v6, v5)) )
{
if ( m_objectID != 2063 && m_objectID != 2068 )
return a1->m_objectType == Collectible;
}
}
else if ( m_objectID <= 1593 )
{
if ( m_objectID != 142 && m_objectID != 1268 && m_objectID != 1329 )
return a1->m_objectType == Collectible;
}
else if ( m_objectID > 1810 )
{
if ( m_objectID != 1811 && m_objectID != 1815 && m_objectID != 1912 )
return a1->m_objectType == Collectible;
}
else
{
v3 = m_objectID - 1594;
if ( v3 > 0x11 )
return a1->m_objectType == Collectible;
v4 = 131075;
if ( !_bittest(&v4, v3) )
return a1->m_objectType == Collectible;
}
return result;
}