//
// GameObject::isStoppableTrigger from 0x100259c04 to 0x100259d60 (348 bytes)
//
// 1 xrefs:
// > GameObject::customSetup @ 0x100257dc8
//
// 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 GameObject::isStoppableTrigger(GameObject *a1)
{
int m_objectID; // w8
bool result; // w0
bool v3; // zf
bool v4; // zf
bool v5; // zf
unsigned int v6; // w8
m_objectID = a1->m_objectID;
result = 1;
if ( m_objectID > 1912 )
{
if ( m_objectID > 2902 )
{
v4 = (unsigned int)(m_objectID - 2999) > 0x22
|| ((1LL << ((unsigned __int8)m_objectID + 73)) & 0x400020F81LL) == 0;
if ( v4
&& ((unsigned int)(m_objectID - 3602) > 0xD || ((1 << (m_objectID - 18)) & 0x3005) == 0)
&& m_objectID != 2903 )
{
return 0;
}
return result;
}
if ( m_objectID > 2014 )
{
if ( m_objectID == 2015 || m_objectID == 2067 )
return result;
}
else if ( m_objectID == 1913 || m_objectID == 1916 )
{
return result;
}
return 0;
}
if ( m_objectID > 1267 )
{
if ( m_objectID > 1811 )
{
v6 = m_objectID - 1812;
if ( v6 > 3 || v6 == 1 )
return 0;
}
else
{
v5 = (unsigned int)(m_objectID - 1595) > 0x14 || ((1 << (m_objectID - 59)) & 0x110001) == 0;
if ( v5 && (unsigned int)(m_objectID - 1346) >= 2 && m_objectID != 1268 )
return 0;
}
return result;
}
if ( m_objectID <= 898 )
{
if ( (unsigned int)(m_objectID - 29) < 2 || m_objectID == 105 || m_objectID == 744 )
return result;
return 0;
}
v3 = (unsigned int)(m_objectID - 899) > 0x10 || ((1 << (m_objectID + 125)) & 0x10007) == 0;
if ( v3 && (unsigned int)(m_objectID - 1006) >= 2 )
return 0;
return result;
}