//
// sub_1001A668C from 0x1001a668c to 0x1001a6778 (236 bytes)
//
// 3 xrefs:
// > EditorUI::onDeleteSelected @ 0x100471138
// > EditorUI::onDelete @ 0x100474214
// > EditorUI::onDelete @ 0x100474478
//
// 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
//
double __fastcall sub_1001A668C(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
double result; // d0
__int64 v5; // x20
__int64 v6; // x21
__int64 v7; // x0
__int64 v8; // x21
__int64 v9; // x0
__n128 v10; // q0
__int64 v11; // x8
v2 = *(_QWORD *)(a1 + 896);
if ( v2 && (v3 = sub_1002E757C(v2), (_DWORD)v3) )
{
v5 = sub_1002E736C(v3);
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 896)) )
{
v6 = 0;
do
{
v7 = sub_1002E75A0(*(_QWORD *)(a1 + 896), v6);
if ( *(_DWORD *)(v7 + 1028) == 749 )
sub_1002E74E0(v5, v7);
v6 = (unsigned int)(v6 + 1);
}
while ( (unsigned int)v6 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 896)) );
}
if ( (unsigned int)sub_1002E757C(v5) )
{
v8 = 0;
do
{
v9 = sub_1002E75A0(v5, v8);
EditorUI::deselectObject(a1, v9, v10);
v8 = (unsigned int)(v8 + 1);
}
while ( (unsigned int)v8 < (unsigned int)sub_1002E757C(v5) );
}
}
else
{
v11 = *(_QWORD *)(a1 + 1496);
if ( v11 && *(_DWORD *)(v11 + 1028) == 749 )
return EditorUI::deselectObject_1(a1);
}
return result;
}