//
// GJBaseGameLayer::ungroupStickyObjects from 0x10013dfa0 to 0x10013e056 (182 bytes)
//
// 3 xrefs:
// > EditorUI::onUngroupSticky @ 0x10000c947
// > GJBaseGameLayer::groupStickyObjects @ 0x10013df00
// > GJBaseGameLayer::assignNewStickyGroups @ 0x10013e144
//
// 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)
{
unsigned int v2; // r15d
__int64 v3; // r12
cocos2d::CCObject *v4; // rax
cocos2d::CCObject *v5; // r13
if ( (unsigned int)sub_100720070(a2) )
{
v2 = 0;
do
{
v3 = sub_1007200C0(a2, v2);
v4 = cocos2d::CCDictionary::objectForKey(a1->m_linkedGroupDict, *(int *)(v3 + 872));
if ( v4 )
{
v5 = v4;
sub_100720220(v4, v3, 1);
if ( !(unsigned int)sub_100720070(v5) )
cocos2d::CCDictionary::removeObjectForKey(a1->m_linkedGroupDict, *(int *)(v3 + 872));
}
*(_DWORD *)(v3 + 872) = 0;
++v2;
}
while ( v2 < (unsigned int)sub_100720070(a2) );
}
}