//
// GJBaseGameLayer::ungroupStickyObjects from 0x10028eec4 to 0x10028ef64 (160 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::groupStickyObjects @ 0x10028ee40
// > GJBaseGameLayer::assignNewStickyGroups @ 0x10028f02c
// > EditorUI::onUngroupSticky @ 0x100471718
//
// 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 11:02:02 +0000
//
__int64 __fastcall GJBaseGameLayer::ungroupStickyObjects(__int64 a1, __int64 a2)
{
__int64 result; // x0
__int64 v5; // x21
__int64 v6; // x22
__int64 v7; // x0
__int64 v8; // x23
result = sub_1002E757C(a2);
if ( (_DWORD)result )
{
v5 = 0;
do
{
v6 = sub_1002E75A0(a2, v5);
cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 3880), *(int *)(v6 + 872));
if ( v7 )
{
v8 = v7;
sub_1002E765C(v7, v6, 1);
if ( !(unsigned int)sub_1002E757C(v8) )
cocos2d::CCDictionary::removeObjectForKey_1(*(_QWORD *)(a1 + 3880), *(int *)(v6 + 872));
}
*(_DWORD *)(v6 + 872) = 0;
v5 = (unsigned int)(v5 + 1);
result = sub_1002E757C(a2);
}
while ( (unsigned int)v5 < (unsigned int)result );
}
return result;
}