//
// EditorUI::onDeselectAll from 0x1005b9de0 to 0x1005b9e2d (77 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x10060c584
// > EditorUI::init @ 0x100006e35
//
// This function is hookable on this platform (idp: pc, 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 12:32:43 +0000
//
__int64 __fastcall EditorUI::onDeselectAll(__int64 a1)
{
__int64 v1; // rbx
__int64 v2; // rax
v1 = a1;
if ( *(_QWORD *)(a1 + 1496) || (a1 = *(_QWORD *)(a1 + 896), (unsigned int)sub_1007FEF90(a1)) )
{
v2 = EditorSFXManager::sharedState(a1);
EditorSFXManager::playAction_1(v2, 120);
EditorUI::createUndoSelectObject(v1, 0);
}
return EditorUI::deselectAll(v1);
}