//
// GJBaseGameLayer::ungroupStickyObjects from 0x4730f8 to 0x473150 (88 bytes)
//
// 3 xrefs:
// > EditorUI::onUngroupSticky @ 0x39cfcc
// > GJBaseGameLayer::groupStickyObjects @ 0x4731de
// > GJBaseGameLayer::assignNewStickyGroups @ 0x47326a
//
// 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 GJBaseGameLayer::ungroupStickyObjects(GJBaseGameLayer *a1, cocos2d::CCArray *a2)
{
unsigned int i; // r4
cocos2d::CCObject *v5; // r5
cocos2d::CCArray *v6; // r0
cocos2d::CCArray *v7; // r9
for ( i = 0; i < cocos2d::CCArray::count(a2); ++i )
{
v5 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(a2, i);
v6 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1->m_linkedGroupDict, v5[14].m_uID);
v7 = v6;
if ( v6 )
{
cocos2d::CCArray::removeObject(v6, v5, 1);
if ( !cocos2d::CCArray::count(v7) )
cocos2d::CCDictionary::removeObjectForKey(a1->m_linkedGroupDict, v5[14].m_uID);
}
v5[14].m_uID = 0;
}
}