//
// GJSearchObject::isLevelSearchObject from 0x1005617f0 to 0x100561821 (49 bytes)
//
// 2 xrefs:
// > LevelBrowserLayer::init @ 0x10048c2b5
// > LevelBrowserLayer::loadLevelsFinished @ 0x1004906bd
//
// 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 GJSearchObject::isLevelSearchObject(GJSearchObject *a1)
{
SearchType m_searchType; // ecx
bool result; // al
int v3; // edx
m_searchType = a1->m_searchType;
result = 0;
if ( (unsigned int)m_searchType > Users || (v3 = 17952, !_bittest(&v3, m_searchType)) )
{
if ( (unsigned int)(m_searchType - 101) >= 2 )
return a1->m_searchMode == 0;
}
return result;
}