//
// GameObject::isSpawnableTrigger from 0x64b160 to 0x64b3f8 (664 bytes)
//
// 6 xrefs:
// > EditorUI::editButtonUsable @ 0x68bf38
// > EditorUI::editObject @ 0x68d614
// > EditorUI::createLoop @ 0x6b6760
// > GJBaseGameLayer::spawnObjectsInOrder @ 0x85b930
// > GJBaseGameLayer::spawnObject @ 0x8868c8
// > ??> @ 0xc83e8
//
// 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 GameObject::isSpawnableTrigger(GameObject *a1)
{
int m_objectID; // w0
m_objectID = a1->m_objectID;
if ( m_objectID <= 1935 )
{
if ( m_objectID >= 1934 || m_objectID == 1585 )
return 1;
if ( m_objectID > 1585 )
{
if ( m_objectID > 1815 )
{
if ( m_objectID <= 1914 )
return m_objectID >= 1912 || (unsigned int)(m_objectID - 1817) <= 2;
if ( m_objectID >= 1916 )
return m_objectID <= 1917 || (unsigned int)(m_objectID - 1931) <= 1;
}
else
{
if ( m_objectID >= 1814 )
return 1;
if ( m_objectID <= 1613 )
return m_objectID >= 1611 || m_objectID == 1595;
if ( m_objectID == 1616 )
return 1;
if ( m_objectID >= 1616 )
return (unsigned int)(m_objectID - 1811) <= 1;
}
}
else
{
if ( m_objectID <= 901 )
{
if ( m_objectID < 899 )
{
if ( m_objectID > 33 )
{
if ( m_objectID != 105 && m_objectID != 744 )
return 0;
}
else if ( m_objectID < 32 && (unsigned int)(m_objectID - 29) > 1 )
{
return 0;
}
}
return 1;
}
if ( m_objectID == 1049 )
return 1;
if ( m_objectID > 1049 )
{
if ( m_objectID <= 1347 )
return m_objectID >= 1346 || m_objectID == 1268;
return m_objectID == 1520;
}
if ( m_objectID == 915 )
return 1;
if ( m_objectID >= 915 )
return (unsigned int)(m_objectID - 1006) <= 1;
}
return 0;
}
if ( m_objectID > 3024 )
{
if ( m_objectID > 3615 )
{
if ( m_objectID > 3641 )
{
if ( m_objectID != 3655 && (m_objectID < 3655 || (unsigned int)(m_objectID - 3660) > 2) )
return 0;
}
else if ( m_objectID < 3640 && (unsigned int)(m_objectID - 3617) > 3 )
{
return 0;
}
return 1;
}
if ( m_objectID >= 3612 || m_objectID == 3033 )
return 1;
if ( m_objectID > 3033 )
{
if ( m_objectID == 3600 )
return 1;
if ( m_objectID >= 3600 )
return (unsigned int)(m_objectID - 3602) <= 7;
return 0;
}
return (unsigned int)(m_objectID - 3029) <= 2;
}
else
{
if ( m_objectID >= 3006 )
return 1;
if ( m_objectID > 2905 )
{
if ( m_objectID <= 2917 )
return m_objectID >= 2909 || m_objectID == 2907;
if ( m_objectID >= 2919 )
return m_objectID <= 2925 || m_objectID == 2999;
return 0;
}
if ( m_objectID >= 2903 )
return 1;
if ( m_objectID <= 2068 )
{
if ( m_objectID >= 2066 || m_objectID == 2015 )
return 1;
if ( m_objectID >= 2015 )
return (unsigned int)(m_objectID - 2062) <= 1;
return 0;
}
return (unsigned int)(m_objectID - 2899) <= 2;
}
}