//
// EffectGameObject::canSpawnTriggers from 0x10038680c to 0x1003868d4 (200 bytes)
//
// 5 xrefs:
// > sub_100364844 @ 0x1003648c4
// > sub_100364844 @ 0x100364c2c
// > sub_100365890 @ 0x1003659d4
// > sub_100365890 @ 0x100365dcc
// > EffectGameObject::customSetup @ 0x100377448
//
// 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; // w9
bool result; // w0
unsigned int v4; // w9
bool v5; // cc
int v6; // w9
bool v8; // zf
m_objectID = a1->m_objectID;
result = 1;
if ( m_objectID <= 2062 )
{
if ( m_objectID <= 1593 )
{
if ( m_objectID == 142 || m_objectID == 1268 || m_objectID == 1329 )
return result;
}
else if ( m_objectID > 1810 )
{
if ( m_objectID == 1811 || m_objectID == 1815 || m_objectID == 1912 )
return result;
}
else
{
v4 = m_objectID - 1594;
v5 = v4 > 0x11;
v6 = (1 << v4) & 0x20003;
if ( !v5 && v6 != 0 )
return result;
}
return a1->m_objectType == Collectible;
}
v8 = (unsigned int)(m_objectID - 3604) > 0x27 || ((1LL << ((unsigned __int8)m_objectID - 20)) & 0x9000010029LL) == 0;
if ( v8 && m_objectID != 2063 && m_objectID != 2068 )
return a1->m_objectType == Collectible;
return result;
}