//
// EditorUI::selectObject from 0x1001a5ab8 to 0x1001a5ba0 (232 bytes)
//
// 8 xrefs:
// > EditorUI::ccTouchEnded @ 0x100162254
// > EditorUI::pasteObjects @ 0x10018a630
// > EditorUI::selectObjects @ 0x1001a6088
// > sub_1001A6B38 @ 0x1001a6b80
// > EditorUI::clickOnPosition @ 0x1004740ec
// > EditorUI::onCreateObject @ 0x1004773a4
// > EditorUI::onCreateObject @ 0x10047740c
// > EditorUI::createGradientFromSelection @ 0x10047b504
//
// 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
//
void __fastcall EditorUI::selectObject(__int64 a1, unsigned int *a2, char a3)
{
__int64 v5; // x1
__int64 StickyGroup; // x0
__n128 v7; // q0
__int64 v8; // x1
if ( (a3 & 1) != 0 || (unsigned int)EditorUI::canSelectObject(a1, a2) )
{
if ( *(_BYTE *)(a1 + 867) == 1
&& (*(_BYTE *)(a1 + 868) & 1) == 0
&& (v5 = a2[218], (int)v5 >= 1)
&& (StickyGroup = GJBaseGameLayer::getStickyGroup(*(_QWORD *)(a1 + 1440), v5)) != 0
&& (unsigned int)sub_1002E757C(StickyGroup) >= 2 )
{
EditorUI::deselectAll(a1);
v8 = sub_1002E73C8(v7);
EditorUI::selectObjects(a1, v8, 0);
}
else
{
*(_BYTE *)(a1 + 866) = 1;
EditorUI::deselectAll(a1);
*(_QWORD *)(a1 + 1496) = a2;
(*(void (__fastcall **)(unsigned int *, __int64))(*(_QWORD *)a2 + 1528LL))(a2, 65280);
*(_DWORD *)(*(_QWORD *)(a1 + 1496) + 1136LL) = *(_DWORD *)(a1 + 1540);
*(_BYTE *)(a1 + 776) = 1;
EditorUI::checkLiveColorSelect(a1);
}
}
}