//
// EditorUI::deleteTypeFromObjects from 0x696b24 to 0x696bec (200 bytes)
//
// 2 xrefs:
// > EditorUI::spriteFromObjectString @ 0x696ce8
// > ??> @ 0xc30d8
//
// 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 EditorUI::deleteTypeFromObjects(EditorUI *a1, int a2, cocos2d::CCArray *a3)
{
unsigned int i; // w19
bool v7; // cf
unsigned int v8; // w1
cocos2d::CCArray *v9; // x0
GameObject *v10; // x20
int m_linkedGroup; // w1
cocos2d::CCArray *StickyGroup; // x0
for ( i = 0; ; cocos2d::CCArray::removeObjectAtIndex(a3, i, 1) )
{
v7 = i >= (unsigned int)cocos2d::CCArray::count(a3);
v8 = i;
v9 = a3;
if ( v7 )
break;
while ( 1 )
{
v10 = (GameObject *)cocos2d::CCArray::objectAtIndex(v9, v8);
if ( v10->m_objectID == a2 )
break;
v7 = ++i >= (unsigned int)cocos2d::CCArray::count(a3);
v8 = i;
v9 = a3;
if ( v7 )
return;
}
m_linkedGroup = v10->m_linkedGroup;
if ( m_linkedGroup > 0 )
{
StickyGroup = GJBaseGameLayer::getStickyGroup(a1->m_editorLayer, m_linkedGroup);
if ( StickyGroup )
cocos2d::CCArray::removeObject(StickyGroup, v10, 1);
}
EditorUI::deleteObject(a1, v10, 1);
}
}