//
// EditorUI::deleteTypeFromObjects from 0x7c2f4c to 0x7c3014 (200 bytes)
//
// 2 xrefs:
// > EditorUI::spriteFromObjectString @ 0xbde1a8
// > ??> @ 0xfdf90
//
// 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::deleteTypeFromObjects(GJBaseGameLayer **this, int a2, cocos2d::CCArray *a3)
{
unsigned int i; // w19
bool v7; // cf
unsigned int v8; // w1
cocos2d::CCArray *result; // x0
cocos2d::CCObject *v10; // x20
int v11; // w1
cocos2d::CCArray *StickyGroup; // x0
for ( i = 0; ; cocos2d::CCArray::removeObjectAtIndex(a3, i, 1) )
{
v7 = i >= (unsigned int)cocos2d::CCArray::count(a3);
v8 = i;
result = a3;
if ( v7 )
break;
while ( 1 )
{
v10 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(result, v8);
if ( *((_DWORD *)v10 + 257) == a2 )
break;
v7 = ++i >= (unsigned int)cocos2d::CCArray::count(a3);
v8 = i;
result = a3;
if ( v7 )
return result;
}
v11 = *((_DWORD *)v10 + 218);
if ( v11 > 0 )
{
StickyGroup = (cocos2d::CCArray *)GJBaseGameLayer::getStickyGroup(*(this + 180), v11);
if ( StickyGroup )
cocos2d::CCArray::removeObject(StickyGroup, v10, 1);
}
EditorUI::deleteObject((EditorUI *)this, v10, 1);
}
return result;
}