//
// EditorUI::getSelectedObjects from 0x1401c9630 to 0x1401c96dd (173 bytes)
//
// 15 xrefs:
// > EditorCommandsPopup::onCommand @ 0x14017db85
// > EditorCommandsPopup::onCommand @ 0x14017dbac
// > EditorCommandsPopup::onCommand @ 0x14017dbd3
// > EditorCommandsPopup::onCommand @ 0x14017dbfa
// > EditorCommandsPopup::onCommand @ 0x14017dcc7
// > EditorUI::createUndoSelectObject @ 0x1401b3a6a
// > EditorUI::editHSV @ 0x1401be456
// > EditorUI::handleEditorAction @ 0x1401c33d6
// > EditorUI::handleEditorAction @ 0x1401c33fb
// > EditorUI::handleEditorAction @ 0x1401c3420
// > EditorUI::handleEditorAction @ 0x1401c3445
// > EditorUI::handleEditorAction @ 0x1401c3513
// > EditorUI::handleEditorAction @ 0x1401c35bc
// > LevelEditorLayer::handleAction @ 0x1403f2de8
// > ??> @ 0x14091a8a0
//
// 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
//
struct cocos2d::CCArray *__fastcall EditorUI::getSelectedObjects(__int64 a1)
{
struct cocos2d::CCObject *v2; // rcx
unsigned int v4; // ebx
cocos2d::CCArray *i; // rsi
struct cocos2d::CCObject *v6; // rax
v2 = *(struct cocos2d::CCObject **)(a1 + 1568);
if ( v2 && *((_DWORD *)v2 + 259) != 749 )
return cocos2d::CCArray::createWithObject(v2);
v4 = 0;
for ( i = (cocos2d::CCArray *)cocos2d::CCArray::create(v2);
v4 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944));
++v4 )
{
v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 944), v4);
if ( *((_DWORD *)v6 + 259) != 749 )
cocos2d::CCArray::addObject(i, v6);
}
return i;
}