//
// EditorUI::canSelectObject from 0x1003ed510 to 0x1003ed5dc (204 bytes)
//
// 2 xrefs:
// > EditorUI::selectObject @ 0x1003e6e68
// > EditorUI::getCycledObject @ 0x1003e99e0
//
// 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 EditorUI::canSelectObject(EditorUI *a1, GameObject *a2)
{
GameManager *v3; // x0
GameManager *v4; // x0
GameManager *v5; // x0
GameManager *v6; // x0
int IntGameVariable; // w0
_BOOL4 v8; // w0
GameManager *v9; // x0
int v10; // w0
int v11; // w20
v3 = GameManager::sharedState();
if ( GameManager::getGameVariable(v3, "0064") )
{
v4 = GameManager::sharedState();
if ( GameManager::getIntGameVariable(v4, "0005") == 3 )
{
v5 = GameManager::sharedState();
if ( a2->m_objectID != GameManager::getIntGameVariable(v5, "0006") )
goto LABEL_10;
}
}
v6 = GameManager::sharedState();
IntGameVariable = GameManager::getIntGameVariable(v6, "0133");
if ( !IntGameVariable || (v8 = GameObject::belongsToGroup(a2, IntGameVariable)) )
{
v9 = GameManager::sharedState();
v10 = GameManager::getIntGameVariable(v9, "0139");
if ( !v10 || (v11 = v10, GameObject::getMainColorMode(a2) == v10) || GameObject::getSecondaryColorMode(a2) == v11 )
{
LOBYTE(v8) = 1;
return v8;
}
LABEL_10:
LOBYTE(v8) = 0;
}
return v8;
}