//
// GJBaseGameLayer::ungroupStickyObjects from 0x1001f2e60 to 0x1001f2f00 (160 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::groupStickyObjects @ 0x1001f2ddc
// > GJBaseGameLayer::assignNewStickyGroups @ 0x1001f2fc8
// > EditorUI::onUngroupSticky @ 0x1003c7bb8
//
// 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 __fastcall GJBaseGameLayer::ungroupStickyObjects(GJBaseGameLayer *a1, cocos2d::CCArray *a2)
{
__int64 v4; // x21
__int64 v5; // x22
cocos2d::CCObject *v6; // x0
cocos2d::CCObject *v7; // x23
if ( (unsigned int)sub_10024A36C(a2) )
{
v4 = 0;
do
{
v5 = sub_10024A388(a2, v4);
v6 = cocos2d::CCDictionary::objectForKey(a1->m_linkedGroupDict, *(int *)(v5 + 872));
if ( v6 )
{
v7 = v6;
sub_10024A444(v6, v5, 1);
if ( !(unsigned int)sub_10024A36C(v7) )
cocos2d::CCDictionary::removeObjectForKey(a1->m_linkedGroupDict, *(int *)(v5 + 872));
}
*(_DWORD *)(v5 + 872) = 0;
v4 = (unsigned int)(v4 + 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a2) );
}
}