//
// GJBaseGameLayer::ungroupStickyObjects from 0x9a3ae4 to 0x9a3b9c (184 bytes)
//
// 4 xrefs:
// > EditorUI::onUngroupSticky @ 0x7c89b4
// > GJBaseGameLayer::groupStickyObjects @ 0x9a3cb0
// > GJBaseGameLayer::assignNewStickyGroups @ 0x9a3d80
// > ??> @ 0xdf750
//
// 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:58:09 +0000
//
cocos2d::CCArray *__fastcall GJBaseGameLayer::ungroupStickyObjects(cocos2d::CCDictionary **this, cocos2d::CCArray *a2)
{
bool v4; // cf
unsigned int v5; // w1
cocos2d::CCArray *result; // x0
unsigned int i; // w19
int *v8; // x20
cocos2d::CCArray *v9; // x0
cocos2d::CCArray *v10; // x21
v4 = (unsigned int)cocos2d::CCArray::count(a2) == 0;
v5 = 0;
result = a2;
for ( i = 1; !v4; ++i )
{
v8 = (int *)cocos2d::CCArray::objectAtIndex(result, v5);
v9 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(this + 485), v8[218]);
v10 = v9;
if ( v9
&& (cocos2d::CCArray::removeObject(v9, (cocos2d::CCObject *)v8, 1), !(unsigned int)cocos2d::CCArray::count(v10)) )
{
cocos2d::CCDictionary::removeObjectForKey(*(this + 485), v8[218]);
v8[218] = 0;
}
else
{
v8[218] = 0;
}
v4 = i >= (unsigned int)cocos2d::CCArray::count(a2);
v5 = i;
result = a2;
}
return result;
}