//
// GJBaseGameLayer::assignNewStickyGroups from 0x10028ef64 to 0x10028f058 (244 bytes)
//
// 2 xrefs:
// > EditorUI::pasteObjects @ 0x10018a654
// > LevelEditorLayer::duplicateKeyframeAnimation @ 0x1004063dc
//
// 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
//
void __fastcall GJBaseGameLayer::assignNewStickyGroups(__int64 a1, __int64 a2)
{
__int64 v4; // x21
__int64 v5; // x22
__int64 v6; // x0
int v7; // w8
__int64 v8; // x23
__int64 v9; // x0
__int64 v10; // x24
__int64 v11; // x8
__int64 v12; // x21
__int64 v13; // x20
if ( a2 && (unsigned int)sub_1002E757C(a2) )
{
v4 = 0;
v5 = 0;
do
{
v6 = sub_1002E75A0(a2, v5);
v7 = *(_DWORD *)(v6 + 872);
if ( v7 >= 1 )
{
v8 = v6;
if ( !v4 )
{
v4 = cocos2d::CCDictionary::create(v6);
v7 = *(_DWORD *)(v8 + 872);
}
cocos2d::CCDictionary::objectForKey_1(v4, v7);
v10 = v9;
if ( !v9 )
{
v10 = sub_1002E736C(0);
cocos2d::CCDictionary::setObject_1(v4, v10, *(int *)(v8 + 872));
}
sub_1002E74E0(v10, v8);
}
v5 = (unsigned int)(v5 + 1);
}
while ( (unsigned int)v5 < (unsigned int)sub_1002E757C(a2) );
if ( v4 )
{
v11 = *(_QWORD *)(v4 + 56);
if ( v11 )
{
do
{
v12 = *(_QWORD *)(v11 + 288);
v13 = *(_QWORD *)(v11 + 264);
GJBaseGameLayer::ungroupStickyObjects(a1, v13);
GJBaseGameLayer::groupStickyObjects(a1, v13);
v11 = v12;
}
while ( v12 );
}
}
}
}