//
// compEnterEffectSort from 0x8547f8 to 0x85482c (52 bytes)
//
// 4 xrefs:
// > ??> @ 0xaf470
// > GJBaseGameLayer::processAreaEffects @ 0x89cd00
// > GJBaseGameLayer::processAreaEffects @ 0x89cd50
// > ??> @ 0x122e108
//
// 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 compEnterEffectSort(const EnterEffectInstance *a1, const EnterEffectInstance *a2)
{
EnterEffectObject *m_gameObject; // x2
EnterEffectObject *v3; // x0
int m_priority; // w3
int v5; // w1
m_gameObject = a1->m_gameObject;
v3 = a2->m_gameObject;
m_priority = m_gameObject->m_priority;
v5 = v3->m_priority;
if ( m_priority == v5 )
return m_gameObject->m_unk7d8 < v3->m_unk7d8;
else
return m_priority > v5;
}