//
// EditorUI::deselectObject from 0x1001a6608 to 0x1001a668c (132 bytes)
//
// 4 xrefs:
// > sub_1001A668C @ 0x1001a6724
// > LevelEditorLayer::handleAction @ 0x1003fbe44
// > LevelEditorLayer::handleAction @ 0x1003fbea4
// > EditorUI::deleteObject @ 0x1004764e0
//
// 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
//
void __fastcall EditorUI::deselectObject(__int64 a1, __int64 a2, __n128 a3)
{
__int64 v5; // x8
v5 = *(_QWORD *)(a1 + 1496);
if ( v5 && *(_DWORD *)(v5 + 916) == *(_DWORD *)(a2 + 916) )
{
EditorUI::deselectObject_1(a1);
*(_BYTE *)(a1 + 776) = 1;
}
else
{
GameObject::updateObjectEditorColor(a3);
if ( (unsigned int)sub_1002E7638(*(_QWORD *)(a1 + 896)) )
{
*(_BYTE *)(a1 + 776) = 1;
sub_1002E765C(*(_QWORD *)(a1 + 896), a2, 1);
}
}
}