//
// EditorUI::canSelectObject from 0x10003c090 to 0x10003c150 (192 bytes)
//
// 3 xrefs:
// > EditorUI::selectObject @ 0x10002e794
// > EditorUI::getCycledObject @ 0x100032736
// > EditorUI::getCycledObject @ 0x100032786
//
// 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 *v2; // rax
GameManager *v3; // rax
GameManager *v4; // rax
GameManager *v5; // rax
int IntGameVariable; // eax
GameManager *v7; // rax
int v8; // eax
int v9; // r14d
bool result; // al
v2 = GameManager::sharedState();
result = false;
if ( !GameManager::getGameVariable(v2, "0064")
|| (v3 = GameManager::sharedState(), GameManager::getIntGameVariable(v3, "0005") != 3)
|| (v4 = GameManager::sharedState(), a2->m_objectID == GameManager::getIntGameVariable(v4, "0006")) )
{
v5 = GameManager::sharedState();
IntGameVariable = GameManager::getIntGameVariable(v5, "0133");
if ( !IntGameVariable || GameObject::belongsToGroup(a2, IntGameVariable) )
{
v7 = GameManager::sharedState();
v8 = GameManager::getIntGameVariable(v7, "0139");
if ( !v8 )
return true;
v9 = v8;
if ( GameObject::getMainColorMode(a2) == v8 || GameObject::getSecondaryColorMode(a2) == v9 )
return true;
}
}
return result;
}