//
// GJSearchObject::isLevelSearchObject from 0x716c68 to 0x716cb4 (76 bytes)
//
// 3 xrefs:
// > LevelBrowserLayer::loadLevelsFinished @ 0x6e8c08
// > LevelBrowserLayer::init @ 0x6eb6ec
// > ??> @ 0x5cf88
//
// 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 GJSearchObject::isLevelSearchObject(GJSearchObject *a1)
{
SearchType m_searchType; // w1
m_searchType = a1->m_searchType;
if ( (unsigned int)m_searchType > MapPackOnClick )
{
if ( m_searchType != Users && ((unsigned int)m_searchType < Users || (unsigned int)(m_searchType - 101) > 1) )
return a1->m_searchMode == 0;
}
else if ( (unsigned int)m_searchType < (Sends|Downloaded) && m_searchType != UsersLevels )
{
return a1->m_searchMode == 0;
}
return 0;
}