//
// EditorUI::getSelectedObjects from 0x1001a6c2c to 0x1001a6cc8 (156 bytes)
//
// 14 xrefs:
// > EditorUI::handleEditorAction @ 0x100162f5c
// > EditorUI::handleEditorAction @ 0x100162f90
// > EditorUI::handleEditorAction @ 0x100163188
// > EditorUI::handleEditorAction @ 0x100163404
// > EditorUI::handleEditorAction @ 0x1001635d4
// > EditorUI::handleEditorAction @ 0x100163630
// > LevelEditorLayer::handleAction @ 0x1003fbdcc
// > EditorUI::createUndoSelectObject @ 0x100474788
// > sub_10047C854 @ 0x10047c8d8
// > EditorCommandsPopup::onCommand @ 0x1004c5a94
// > EditorCommandsPopup::onCommand @ 0x1004c5ac0
// > EditorCommandsPopup::onCommand @ 0x1004c5b20
// > EditorCommandsPopup::onCommand @ 0x1004c5b78
// > EditorCommandsPopup::onCommand @ 0x1004c5ba8
//
// 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::getSelectedObjects(__int64 a1, __n128 a2)
{
__int64 v3; // x0
__int64 v4; // x20
__int64 v5; // x21
__int64 v6; // x0
v3 = *(_QWORD *)(a1 + 1496);
if ( v3 && *(_DWORD *)(v3 + 1028) != 749 )
return sub_1002E73C8(a2);
v4 = sub_1002E736C(v3);
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 896)) )
{
v5 = 0;
do
{
v6 = sub_1002E75A0(*(_QWORD *)(a1 + 896), v5);
if ( *(_DWORD *)(v6 + 1028) != 749 )
sub_1002E74E0(v4, v6);
v5 = (unsigned int)(v5 + 1);
}
while ( (unsigned int)v5 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 896)) );
}
return v4;
}