//
// GJBaseGameLayer::ungroupStickyObjects from 0x86070c to 0x8607c4 (184 bytes)
//
// 4 xrefs:
// > EditorUI::onUngroupSticky @ 0x6b5818
// > GJBaseGameLayer::groupStickyObjects @ 0x8608d8
// > GJBaseGameLayer::assignNewStickyGroups @ 0x8609a8
// > ??> @ 0xaa778
//
// 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)
{
bool v4; // cf
unsigned int v5; // w1
cocos2d::CCArray *v6; // x0
unsigned int i; // w19
cocos2d::CCObject *v8; // x20
cocos2d::CCArray *v9; // x0
cocos2d::CCArray *v10; // x21
v4 = (unsigned int)cocos2d::CCArray::count(a2) == 0;
v5 = 0;
v6 = a2;
for ( i = 1; !v4; ++i )
{
v8 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v6, v5);
v9 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1->m_linkedGroupDict, v8[15].m_nTag);
v10 = v9;
if ( v9 && (cocos2d::CCArray::removeObject(v9, v8, 1), !(unsigned int)cocos2d::CCArray::count(v10)) )
{
cocos2d::CCDictionary::removeObjectForKey(a1->m_linkedGroupDict, v8[15].m_nTag);
v8[15].m_nTag = 0;
}
else
{
v8[15].m_nTag = 0;
}
v4 = i >= (unsigned int)cocos2d::CCArray::count(a2);
v5 = i;
v6 = a2;
}
}