//
// EditorUI::deleteSmartBlocksFromObjects from 0x7c2e90 to 0x7c2f4c (188 bytes)
//
// 4 xrefs:
// > EditorUI::createPrefab @ 0x7c9e40
// > EditorUI::createSmartObjectsFromTemplate @ 0x7cb5c4
// > EditorUI::spriteFromObjectString @ 0xbde198
// > ??> @ 0xfbcb0
//
// 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 12:54:07 +0000
//
cocos2d::CCArray *__fastcall EditorUI::deleteSmartBlocksFromObjects(GJBaseGameLayer **this, cocos2d::CCArray *a2)
{
unsigned int i; // w19
bool v5; // cf
unsigned int v6; // w1
cocos2d::CCArray *result; // x0
cocos2d::CCObject *v8; // x20
int v9; // w1
cocos2d::CCArray *StickyGroup; // x0
for ( i = 0; ; cocos2d::CCArray::removeObjectAtIndex(a2, i, 1) )
{
v5 = i >= (unsigned int)cocos2d::CCArray::count(a2);
v6 = i;
result = a2;
if ( v5 )
break;
while ( 1 )
{
v8 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(result, v6);
if ( *((_DWORD *)v8 + 312) == 5 )
break;
v5 = ++i >= (unsigned int)cocos2d::CCArray::count(a2);
v6 = i;
result = a2;
if ( v5 )
return result;
}
v9 = *((_DWORD *)v8 + 218);
if ( v9 > 0 )
{
StickyGroup = (cocos2d::CCArray *)GJBaseGameLayer::getStickyGroup(*(this + 180), v9);
if ( StickyGroup )
cocos2d::CCArray::removeObject(StickyGroup, v8, 1);
}
EditorUI::deleteObject((EditorUI *)this, v8, 1);
}
return result;
}