//
// EditorUI::deselectAll from 0x1005b88f0 to 0x1005b89d3 (227 bytes)
//
// 20 xrefs:
// > EditorUI::onPlaytest @ 0x1000087ff
// > EditorUI::onDeleteAll @ 0x10000ff59
// > EditorUI::onDeleteSelectedType @ 0x10000ffc0
// > EditorUI::onDeleteStartPos @ 0x10001002d
// > EditorUI::FLAlert_Clicked @ 0x10001020d
// > EditorUI::createSmartObjectsFromTemplate @ 0x100013c95
// > EditorUI::createSmartObjectsFromTemplate @ 0x100014448
// > EditorUI::createSmartObjectsFromType @ 0x100014e43
// > EditorUI::createSmartObjectsFromType @ 0x100015213
// > EditorUI::createNewKeyframeAnim @ 0x100016632
// > EditorUI::createGradientFromSelection @ 0x1000177c7
// > LevelEditorLayer::removeAllObjects @ 0x1000b1f61
// > LevelEditorLayer::breakApartTextObject @ 0x1000c4e54
// > SetupKeyframePopup::onCustomButton @ 0x1001e434a
// > SetupKeyframePopup::onCustomButton @ 0x1001e4518
// > EditorUI::pasteObjects @ 0x1005b79b5
// > EditorUI::selectObject @ 0x1005b87bf
// > EditorUI::selectObject @ 0x1005b87e7
// > EditorUI::changeSelectedObjects @ 0x1005b9c63
// > EditorUI::onDeselectAll @ 0x1005b9e28
//
// 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:42 +0000
//
__int64 __fastcall EditorUI::deselectAll(__int64 a1)
{
__int64 v2; // rdi
__int64 v3; // rsi
unsigned int v4; // r14d
__int64 v5; // rax
__int64 v6; // rdx
cocos2d::CCNode::stopActionByTag(a1, 124);
v2 = *(_QWORD *)(a1 + 1496);
if ( v2 )
GameObject::deselectObject(v2);
*(_QWORD *)(a1 + 1496) = 0;
EditorUI::toggleEditObjectButton(a1);
*(_BYTE *)(a1 + 776) = 1;
v3 = (__int64)&qword_100BE58D0;
sub_100278300((_QWORD *)(a1 + 1472), &qword_100BE58D0);
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 896)) && (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 896)) )
{
v4 = 0;
do
{
v3 = v4;
v5 = sub_1007FEFE0(*(_QWORD *)(a1 + 896), v4);
GameObject::deselectObject(v5);
++v4;
}
while ( v4 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 896)) );
}
sub_1007FF190(*(_QWORD *)(a1 + 896));
EditorUI::updateButtons(a1);
EditorUI::deactivateRotationControl(a1);
EditorUI::deactivateScaleControl(a1);
sub_100611790(a1);
return EditorUI::updateObjectInfoLabel(a1, v3, v6);
}