//
// EditorUI::deselectAll from 0x1401c82b0 to 0x1401c83a0 (240 bytes)
//
// 21 xrefs:
// > EditorUI::onDeleteAll @ 0x1401b07fd
// > EditorUI::onDeleteAll @ 0x1401b0881
// > EditorUI::onDeleteSelectedType @ 0x1401b0e88
// > EditorUI::onDeleteStartPos @ 0x1401b0f3d
// > EditorUI::onPlaytest @ 0x1401b47f4
// > EditorUI::createSmartObjectsFromTemplate @ 0x1401b6906
// > EditorUI::createSmartObjectsFromTemplate @ 0x1401b704f
// > EditorUI::createSmartObjectsFromType @ 0x1401b78d6
// > EditorUI::createSmartObjectsFromType @ 0x1401b7c42
// > EditorUI::createNewKeyframeAnim @ 0x1401b910e
// > EditorUI::createGradientFromSelection @ 0x1401b9fdc
// > EditorUI::handleEditorAction @ 0x1401c243a
// > EditorUI::pasteObjects @ 0x1401c6e8e
// > EditorUI::selectObject @ 0x1401c74fc
// > EditorUI::selectObject @ 0x1401c752c
// > EditorUI::onDeselectAll @ 0x1401c9918
// > LevelEditorLayer::handleAction @ 0x1403f2dfe
// > LevelEditorLayer::breakApartTextObject @ 0x1403fdf72
// > SetupKeyframePopup::onCustomButton @ 0x1405bbd89
// > SetupKeyframePopup::onCustomButton @ 0x1405bc049
// > ??> @ 0x14091a810
//
// 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 11:28:06 +0000
//
void __fastcall EditorUI::deselectAll(__int64 a1)
{
__int64 v2; // rcx
unsigned int v3; // edi
struct cocos2d::CCObject *v4; // rax
cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)a1, 124);
v2 = *(_QWORD *)(a1 + 1568);
if ( v2 )
{
*(_BYTE *)(v2 + 1141) = 0;
GameObject::updateObjectEditorColor(v2);
}
v3 = 0;
*(_QWORD *)(a1 + 1568) = 0;
EditorUI::toggleEditObjectButton(a1);
*(_BYTE *)(a1 + 824) = 1;
cocos2d::CCPoint::operator=(a1 + 1544, &unk_14090A748);
if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944))
&& cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)) )
{
do
{
v4 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 944), v3);
*((_BYTE *)v4 + 1141) = 0;
GameObject::updateObjectEditorColor(v4);
++v3;
}
while ( v3 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)) );
}
cocos2d::CCArray::removeAllObjects(*(cocos2d::CCArray **)(a1 + 944));
EditorUI::updateButtons(a1);
EditorUI::deactivateRotationControl(a1);
EditorUI::deactivateScaleControl(a1);
EditorUI::deactivateTransformControl(a1);
EditorUI::updateObjectInfoLabel(a1);
}