//
// EditorUI::deleteSmartBlocksFromObjects from 0x1003eaea0 to 0x1003eaf50 (176 bytes)
//
// 3 xrefs:
// > EditorUI::spriteFromObjectString @ 0x1003eaa10
// > EditorUI::createSmartObjectsFromTemplate @ 0x1003f1cd0
// > EditorUI::createPrefab @ 0x1003f254c
//
// 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 EditorUI::deleteSmartBlocksFromObjects(EditorUI *a1, cocos2d::CCArray *a2)
{
__int64 v4; // x21
__int64 v5; // x0
GameObject *v6; // x22
int v7; // w1
cocos2d::CCArray *StickyGroup; // x0
if ( (unsigned int)sub_10024A36C((__int64)a2) )
{
v4 = 0;
do
{
v5 = sub_10024A388((__int64)a2, v4);
if ( *(_DWORD *)(v5 + 1248) == 5 )
{
v6 = (GameObject *)v5;
v7 = *(_DWORD *)(v5 + 872);
if ( v7 >= 1 )
{
StickyGroup = GJBaseGameLayer::getStickyGroup(a1->m_editorLayer, v7);
if ( StickyGroup )
sub_10024A444((__int64)StickyGroup);
}
EditorUI::deleteObject(a1, v6, 1);
sub_10024A44C((__int64)a2, v4, 1);
}
else
{
v4 = (unsigned int)(v4 + 1);
}
}
while ( (unsigned int)v4 < (unsigned int)sub_10024A36C((__int64)a2) );
}
}