//
// EditorUI::selectAll from 0x1401c7ed0 to 0x1401c8003 (307 bytes)
//
// 3 xrefs:
// > EditorCommandsPopup::onCommand @ 0x14017dc28
// > EditorUI::handleEditorAction @ 0x1401c34ca
// > ??> @ 0x14091a7ec
//
// 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
//
__int64 __fastcall EditorUI::selectAll(__int64 a1)
{
cocos2d::CCArray *v2; // rsi
unsigned int v3; // ebx
cocos2d::CCArray *i; // rbp
struct cocos2d::CCObject *v5; // rax
int v6; // r8d
int v7; // edx
__int64 v8; // rcx
__int64 v9; // rcx
v2 = *(cocos2d::CCArray **)(*(_QWORD *)(a1 + 1512) + 3536LL);
v3 = 0;
for ( i = (cocos2d::CCArray *)cocos2d::CCArray::create(a1); v3 < cocos2d::CCArray::count(v2); ++v3 )
{
v5 = cocos2d::CCArray::objectAtIndex(v2, v3);
v6 = *((__int16 *)v5 + 606);
v7 = *(__int16 *)(*(_QWORD *)(a1 + 1512) + 14866LL);
if ( !*((_WORD *)v5 + 606) )
v6 = -1;
if ( (_WORD)v7 == 0xFFFF || (_WORD)v7 == *((_WORD *)v5 + 605) || v7 == v6 )
cocos2d::CCArray::addObject(i, v5);
}
EditorUI::processSelectObjects(a1, i);
v8 = *(_QWORD *)(a1 + 808);
*(_DWORD *)(a1 + 744) = -1;
if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v8 + 344LL))(v8) )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 808) + 336LL))(*(_QWORD *)(a1 + 808), 0);
GJRotationControl::finishTouch(*(_QWORD *)(a1 + 808));
v9 = *(_QWORD *)(*(_QWORD *)(a1 + 808) + 464LL);
if ( v9 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 1032LL))(v9, 0);
}
EditorUI::deactivateScaleControl(a1);
return EditorUI::deactivateTransformControl(a1);
}