//
// GJBaseGameLayer::assignNewStickyGroups from 0x10013e060 to 0x10013e168 (264 bytes)
//
// 2 xrefs:
// > EditorUI::pasteObjects @ 0x10003b9a7
// > LevelEditorLayer::duplicateKeyframeAnimation @ 0x1000f44ff
//
// 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::assignNewStickyGroups(GJBaseGameLayer *a1, cocos2d::CCArray *a2)
{
cocos2d::CCDictionary *v3; // r15
unsigned int v4; // r12d
__int64 v5; // r13
int v6; // eax
__int64 v7; // rsi
cocos2d::CCObject *v8; // rbx
cocos2d::CCDictElement *m_pElements; // r14
cocos2d::CCArray *m_pObject; // rbx
if ( a2 && (unsigned int)sub_100720070(a2) )
{
v3 = nullptr;
v4 = 0;
do
{
v5 = sub_1007200C0(a2, v4);
v6 = *(_DWORD *)(v5 + 872);
if ( v6 > 0 )
{
if ( !v3 )
{
v3 = cocos2d::CCDictionary::create();
v6 = *(_DWORD *)(v5 + 872);
}
v7 = v6;
v8 = cocos2d::CCDictionary::objectForKey(v3, v6);
if ( !v8 )
{
v8 = (cocos2d::CCObject *)sub_10071F9E0(v3, v7);
cocos2d::CCDictionary::setObject(v3, v8, *(int *)(v5 + 872));
}
sub_10071FCD0(v8, v5);
}
++v4;
}
while ( v4 < (unsigned int)sub_100720070(a2) );
if ( v3 )
{
m_pElements = v3->m_pElements;
while ( m_pElements )
{
m_pObject = (cocos2d::CCArray *)m_pElements->m_pObject;
m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next;
GJBaseGameLayer::ungroupStickyObjects(a1, m_pObject);
GJBaseGameLayer::groupStickyObjects(a1, m_pObject);
}
}
}
}