//
// EditorUI::deselectAll from 0x1001a5c6c to 0x1001a5cf8 (140 bytes)
//
// 19 xrefs:
// > EditorUI::pasteObjects @ 0x10018a604
// > EditorUI::selectObject @ 0x1001a5b1c
// > EditorUI::selectObject @ 0x1001a5b50
// > sub_1001A6BC4 @ 0x1001a6be0
// > EditorUI::onDeselectAll @ 0x1001a6d80
// > SetupKeyframePopup::onCustomButton @ 0x10024a8a0
// > SetupKeyframePopup::onCustomButton @ 0x10024a9ac
// > sub_1003FB8F0 @ 0x1003fb91c
// > sub_100403E28 @ 0x100403e68
// > EditorUI::onPlaytest @ 0x10047146c
// > sub_10047651C @ 0x10047652c
// > EditorUI::onDeleteSelectedType @ 0x100476588
// > EditorUI::onDeleteStartPos @ 0x1004765fc
// > EditorUI::createSmartObjectsFromTemplate @ 0x100478e44
// > EditorUI::createSmartObjectsFromTemplate @ 0x100479460
// > EditorUI::createSmartObjectsFromType @ 0x100479b30
// > EditorUI::createSmartObjectsFromType @ 0x100479db4
// > sub_10047AA1C @ 0x10047aa80
// > EditorUI::createGradientFromSelection @ 0x10047b4f4
//
// 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::deselectAll(__int64 a1, double a2)
{
__int64 v3; // x20
__n128 v4; // q0
EditorUI::deselectObject_1(a1, a2);
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 896)) && (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 896)) )
{
v3 = 0;
do
{
sub_1002E75A0(*(_QWORD *)(a1 + 896), v3);
GameObject::updateObjectEditorColor(v4);
v3 = (unsigned int)(v3 + 1);
}
while ( (unsigned int)v3 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 896)) );
}
sub_1002E7674(*(_QWORD *)(a1 + 896));
EditorUI::updateButtons(a1);
EditorUI::deactivateRotationControl(a1);
EditorUI::deactivateScaleControl(a1);
EditorUI::deactivateTransformControl(a1);
return EditorUI::updateObjectInfoLabel(a1);
}