//
// BrowseSmartKeyLayer::deletedSelectedItems from 0x1000735e4 to 0x100073730 (332 bytes)
//
// 1 xrefs:
// > BrowseSmartKeyLayer::onButton @ 0x1000733f4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall BrowseSmartKeyLayer::deletedSelectedItems(BrowseSmartKeyLayer *a1)
{
__int64 v2; // x20
__int64 v3; // x21
__int64 v4; // x22
__int64 v5; // x23
__int64 v6; // x0
__int64 v7; // x25
GJSmartTemplate *m_template; // x24
int v9; // w0
void *__p[2]; // [xsp+0h] [xbp-60h] BYREF
char *longStorage; // [xsp+10h] [xbp-50h]
if ( (unsigned int)sub_10024A36C(a1->m_pages) )
{
v2 = 0;
do
{
v3 = sub_10024A388(a1->m_pages, v2);
if ( (unsigned int)sub_10024A36C(v3) )
{
v4 = 0;
do
{
v5 = sub_10024A388(v3, v4);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1056LL))(v5);
if ( *(_BYTE *)(v6 + 360) == 1 )
{
v7 = v6;
m_template = a1->m_template;
if ( a1->m_prefabKey.m_data.m_short.shortStorage.__elems_[22] < 0 )
{
sub_1000097D0(__p, (void *)a1->m_prefabKey.m_data.m_long.capacitym1, a1->m_prefabKey.m_data.m_long.size);
}
else
{
*(_OWORD *)__p = *(_OWORD *)&a1->m_prefabKey.m_data.m_short.sizex2;
longStorage = a1->m_prefabKey.m_data.m_long.longStorage;
}
v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 64LL))(v7);
GJSmartTemplate::removePrefab((__int64)m_template, (__int64)__p, v9);
if ( SHIBYTE(longStorage) < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 520LL))(v5);
sub_10024A44C(v3, v4, 1);
}
else
{
v4 = (unsigned int)(v4 + 1);
}
}
while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(v3) );
}
v2 = (unsigned int)(v2 + 1);
}
while ( (unsigned int)v2 < (unsigned int)sub_10024A36C(a1->m_pages) );
}
BrowseSmartKeyLayer::updateChanceValues(a1);
}