//
// GJBaseGameLayer::ungroupStickyObjects from 0x14032d430 to 0x14032d4ee (190 bytes)
//
// 7 xrefs:
// > EditorUI::onUngroupSticky @ 0x1401b5001
// > EditorUI::handleEditorAction @ 0x1401c38c2
// > GJBaseGameLayer::groupStickyObjects @ 0x14032d424
// > GJBaseGameLayer::assignNewStickyGroups @ 0x14032d5d0
// > ??> @ 0x1408b62c4
// > ??> @ 0x1408b62d4
// > ??> @ 0x14091f3dc
//
// This function is hookable on this platform (idp: pc, 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 11:30:30 +0000
//
unsigned int __fastcall GJBaseGameLayer::ungroupStickyObjects(__int64 a1, cocos2d::CCArray *a2)
{
unsigned int v3; // edi
unsigned int result; // eax
int *v6; // rbx
cocos2d::CCArray *v7; // rax
cocos2d::CCArray *v8; // rsi
v3 = 0;
result = cocos2d::CCArray::count(a2);
if ( result )
{
do
{
v6 = (int *)cocos2d::CCArray::objectAtIndex(a2, v3);
v7 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 4256), v6[220]);
v8 = v7;
if ( v7 )
{
cocos2d::CCArray::removeObject(v7, (struct cocos2d::CCObject *)v6, 1);
if ( !cocos2d::CCArray::count(v8) )
cocos2d::CCDictionary::removeObjectForKey(*(cocos2d::CCDictionary **)(a1 + 4256), v6[220]);
}
v6[220] = 0;
++v3;
result = cocos2d::CCArray::count(a2);
}
while ( v3 < result );
}
return result;
}