//
// GJBaseGameLayer::ungroupStickyObjects from 0x10011c330 to 0x10011c3e6 (182 bytes)
//
// 3 xrefs:
// > EditorUI::onUngroupSticky @ 0x100008c40
// > GJBaseGameLayer::groupStickyObjects @ 0x10011c290
// > GJBaseGameLayer::assignNewStickyGroups @ 0x10011c4d4
//
// 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 12:24:36 +0000
//
__int64 __fastcall GJBaseGameLayer::ungroupStickyObjects(__int64 a1, __int64 a2)
{
__int64 result; // rax
unsigned int v3; // r15d
__int64 v4; // r12
__int64 v5; // rax
__int64 v6; // r13
result = sub_1007FEF90(a2);
if ( (_DWORD)result )
{
v3 = 0;
do
{
v4 = sub_1007FEFE0(a2, v3);
v5 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 3880));
if ( v5 )
{
v6 = v5;
sub_1007FF140(v5, v4, 1);
if ( !(unsigned int)sub_1007FEF90(v6) )
cocos2d::CCDictionary::removeObjectForKey_1(*(_QWORD *)(a1 + 3880), *(int *)(v4 + 872));
}
*(_DWORD *)(v4 + 872) = 0;
++v3;
result = sub_1007FEF90(a2);
}
while ( v3 < (unsigned int)result );
}
return result;
}