// // EditorUI::canSelectObject from 0x1001a5ba0 to 0x1001a5c6c (204 bytes) // // 2 xrefs: // > EditorUI::selectObject @ 0x1001a5ad8 // > sub_10047632C @ 0x10047639c // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:00:03 +0000 // __int64 __fastcall EditorUI::canSelectObject(__int64 a1, __int64 a2) { __int64 v3; // x0 __int64 IntGameVariable; // x0 __int64 v5; // x0 __int64 v6; // x0 __int64 v7; // x0 __int64 result; // x0 __int64 v9; // x0 int v10; // w0 int v11; // w20 int v12; // w0 v3 = GameManager::sharedState(a1); GameManager::getGameVariable(v3, "0064"); if ( (_DWORD)IntGameVariable ) { v5 = GameManager::sharedState(IntGameVariable); IntGameVariable = GameManager::getIntGameVariable(v5, "0005"); if ( (_DWORD)IntGameVariable == 3 ) { v6 = GameManager::sharedState(IntGameVariable); IntGameVariable = GameManager::getIntGameVariable(v6, "0006"); if ( *(_DWORD *)(a2 + 1028) != (_DWORD)IntGameVariable ) return 0; } } v7 = GameManager::sharedState(IntGameVariable); result = GameManager::getIntGameVariable(v7, "0133"); if ( !(_DWORD)result || (result = sub_1002FA758(a2, result), (_DWORD)result) ) { v9 = GameManager::sharedState(result); v10 = GameManager::getIntGameVariable(v9, "0139"); if ( !v10 ) return 1; v11 = v10; if ( (unsigned int)GameObject::getMainColorMode(a2) == v10 ) return 1; sub_1002FB234(a2); return v12 == v11; } return result; }