//
// GameObject::isSpawnableTrigger from 0x3591b0 to 0x359378 (456 bytes)
//
// 5 xrefs:
// > EditorUI::editButtonUsable @ 0x37f4fe
// > EditorUI::editObject @ 0x37ff72
// > EditorUI::createLoop @ 0x39dc46
// > GJBaseGameLayer::spawnObjectsInOrder @ 0x46fffc
// > GJBaseGameLayer::spawnObject @ 0x48c4c8
//
// 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; // r3
unsigned int v2; // r3
bool v4; // cc
int v5; // r2
unsigned int v6; // r3
m_objectID = a1->m_objectID;
if ( m_objectID >= 1936 )
{
if ( m_objectID > 3024 )
{
if ( m_objectID >= 3616 )
{
if ( m_objectID <= 3641 )
{
if ( m_objectID >= 3640 )
return 1;
v4 = (unsigned int)(m_objectID - 3617) > 3;
return !v4;
}
if ( m_objectID == 3655 )
return 1;
if ( m_objectID < 3655 )
return 0;
v6 = m_objectID - 3660;
}
else
{
if ( m_objectID >= 3612 || m_objectID == 3033 )
return 1;
if ( m_objectID > 3033 )
{
if ( m_objectID != 3600 )
{
if ( m_objectID < 3600 )
return 0;
v4 = (unsigned int)(m_objectID - 3602) > 7;
return !v4;
}
return 1;
}
v6 = m_objectID - 3029;
}
}
else
{
if ( m_objectID >= 3006 )
return 1;
if ( m_objectID > 2905 )
{
if ( m_objectID > 2917 )
{
if ( m_objectID < 2919 )
return 0;
if ( m_objectID <= 2925 )
return 1;
v5 = 2999;
}
else
{
if ( m_objectID >= 2909 )
return 1;
v5 = 2907;
}
return m_objectID == v5;
}
if ( m_objectID >= 2903 )
return 1;
if ( m_objectID <= 2068 )
{
if ( m_objectID >= 2066 || m_objectID == 2015 )
return 1;
if ( m_objectID < 2015 )
return 0;
v2 = m_objectID - 2062;
goto LABEL_17;
}
v6 = m_objectID - 2899;
}
LABEL_70:
v4 = v6 > 2;
return !v4;
}
if ( m_objectID >= 1934 || m_objectID == 1585 )
return 1;
if ( m_objectID <= 1585 )
{
if ( m_objectID <= 901 )
{
if ( m_objectID >= 899 )
return 1;
if ( m_objectID <= 33 )
{
if ( m_objectID < 32 )
{
v2 = m_objectID - 29;
LABEL_17:
v4 = v2 > 1;
return !v4;
}
return 1;
}
if ( m_objectID == 105 )
return 1;
return m_objectID == 744;
}
if ( m_objectID == 1049 )
return 1;
if ( m_objectID <= 1049 )
{
if ( m_objectID != 915 )
{
if ( m_objectID < 915 )
return 0;
v2 = m_objectID - 1006;
goto LABEL_17;
}
return 1;
}
if ( m_objectID > 1347 )
return m_objectID == 1520;
if ( m_objectID >= 1346 )
return 1;
v5 = 1268;
return m_objectID == v5;
}
if ( m_objectID < 1816 )
{
if ( m_objectID >= 1814 )
return 1;
if ( m_objectID > 1613 )
{
if ( m_objectID != 1616 )
{
if ( m_objectID < 1616 )
return 0;
v2 = m_objectID - 1811;
goto LABEL_17;
}
return 1;
}
if ( m_objectID >= 1611 )
return 1;
v5 = 1595;
return m_objectID == v5;
}
if ( m_objectID <= 1914 )
{
if ( m_objectID >= 1912 )
return 1;
v6 = m_objectID - 1817;
goto LABEL_70;
}
if ( m_objectID < 1916 )
return 0;
if ( m_objectID > 1917 )
{
v2 = m_objectID - 1931;
goto LABEL_17;
}
return 1;
}