//
// EditorUI::getSelectedObjects from 0x1005b9cb0 to 0x1005b9d59 (169 bytes)
//
// 16 xrefs:
// > EditorUI::clickOnPosition @ 0x10000c7f9
// > EditorUI::onCreate @ 0x10000cf1f
// > EditorUI::createUndoSelectObject @ 0x10000d47c
// > EditorUI::editHSV @ 0x1000199a6
// > LevelEditorLayer::handleAction @ 0x1000b2737
// > EditorUI::handleEditorAction @ 0x10060c420
// > EditorUI::handleEditorAction @ 0x10060c45e
// > EditorUI::handleEditorAction @ 0x10060c6d2
// > EditorUI::handleEditorAction @ 0x10060ca06
// > EditorUI::handleEditorAction @ 0x10060cc5c
// > EditorUI::handleEditorAction @ 0x10060cccc
// > EditorCommandsPopup::onCommand @ 0x1008ded44
// > EditorCommandsPopup::onCommand @ 0x1008ded7b
// > EditorCommandsPopup::onCommand @ 0x1008dedf6
// > EditorCommandsPopup::onCommand @ 0x1008dee50
// > EditorCommandsPopup::onCommand @ 0x1008dee89
//
// 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:43 +0000
//
__int64 __fastcall EditorUI::getSelectedObjects(__int64 a1)
{
__int64 v2; // rdi
__int64 v3; // r14
unsigned int v4; // r15d
__int64 v5; // rax
v2 = *(_QWORD *)(a1 + 1496);
if ( v2 && *(_DWORD *)(v2 + 1028) != 749 )
return sub_1007FE9A0(v2);
v3 = sub_1007FE900(v2);
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 896)) )
{
v4 = 0;
do
{
v5 = sub_1007FEFE0(*(_QWORD *)(a1 + 896), v4);
if ( *(_DWORD *)(v5 + 1028) != 749 )
sub_1007FEBF0(v3, v5);
++v4;
}
while ( v4 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 896)) );
}
return v3;
}