//
// sub_10047632C from 0x10047632c to 0x1004763e0 (180 bytes)
//
// 3 xrefs:
// > EditorUI::ccTouchEnded @ 0x100161ea8
// > EditorUI::ccTouchEnded @ 0x100161f74
// > EditorUI::onDelete @ 0x1004741a8
//
// 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:05:41 +0000
//
__int64 __fastcall sub_10047632C(__int64 a1, __int64 a2, int a3)
{
__int64 v6; // x22
unsigned int v7; // w23
__int64 v8; // x0
__int64 v10; // x24
v6 = 0;
if ( (unsigned int)sub_1002E757C(a2) )
{
v7 = 0;
do
{
v8 = sub_1002E75A0(a2, v7);
if ( *(_BYTE *)(v8 + 1133) != 1 || a3 != 0 )
{
v10 = v8;
if ( !v6 || *(_DWORD *)(v8 + 1136) < *(_DWORD *)(v6 + 1136) )
{
if ( (unsigned int)EditorUI::canSelectObject(a1, v8) )
v6 = v10;
}
}
++v7;
}
while ( v7 < (unsigned int)sub_1002E757C(a2) );
if ( v6 )
*(_DWORD *)(v6 + 1136) = *(_DWORD *)(a1 + 1540);
}
return v6;
}