//
// GJBaseGameLayer::ungroupStickyObjects from 0x592ba6 to 0x592bfe (88 bytes)
//
// 3 xrefs:
// > EditorUI::onUngroupSticky @ 0x486562
// > GJBaseGameLayer::groupStickyObjects @ 0x592c8c
// > GJBaseGameLayer::assignNewStickyGroups @ 0x592d18
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:53:07 +0000
//
unsigned int __fastcall GJBaseGameLayer::ungroupStickyObjects(cocos2d::CCDictionary **this, cocos2d::CCArray *a2)
{
unsigned int i; // r4
unsigned int result; // r0
int *v6; // r5
cocos2d::CCArray *v7; // r0
cocos2d::CCArray *v8; // r9
for ( i = 0; ; ++i )
{
result = cocos2d::CCArray::count(a2);
if ( i >= result )
break;
v6 = (int *)cocos2d::CCArray::objectAtIndex(a2, i);
v7 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(this + 604), v6[185]);
v8 = v7;
if ( v7 )
{
cocos2d::CCArray::removeObject(v7, (cocos2d::CCObject *)v6, 1);
if ( !cocos2d::CCArray::count(v8) )
cocos2d::CCDictionary::removeObjectForKey(*(this + 604), v6[185]);
}
v6[185] = 0;
}
return result;
}