// // GJBaseGameLayer::assignNewStickyGroups from 0x592c9e to 0x592d3c (158 bytes) // // 2 xrefs: // > LevelEditorLayer::duplicateKeyframeAnimation @ 0x46ea88 // > EditorUI::pasteObjects @ 0x6f2ef0 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:53:07 +0000 // unsigned int __fastcall GJBaseGameLayer::assignNewStickyGroups(unsigned int this, cocos2d::CCArray *a2) { cocos2d::CCDictionary **v2; // r9 unsigned int v4; // r5 cocos2d::CCDictionary *v5; // r4 int *v6; // r0 int *v7; // r6 cocos2d::CCObject *v8; // r7 int v9; // r3 int v10; // r4 cocos2d::CCArray *v11; // r5 int v12; // r2 v2 = (cocos2d::CCDictionary **)this; if ( a2 ) { v4 = 0; v5 = nullptr; while ( 1 ) { this = cocos2d::CCArray::count(a2); if ( v4 >= this ) break; v6 = (int *)cocos2d::CCArray::objectAtIndex(a2, v4); v7 = v6; if ( v6[185] > 0 ) { if ( !v5 ) v5 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create((cocos2d::CCDictionary *)v6); v8 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(v5, v7[185]); if ( !v8 ) { v8 = (cocos2d::CCObject *)cocos2d::CCArray::create(nullptr); cocos2d::CCDictionary::setObject(v5, v8, v7[185]); } cocos2d::CCArray::addObject(v8, (cocos2d::CCObject *)v7); } ++v4; } if ( v5 ) { v9 = *((_DWORD *)v5 + 13); if ( v9 ) v10 = *(_DWORD *)(v9 + 272); else v10 = 0; while ( v9 ) { v11 = *(cocos2d::CCArray **)(v9 + 260); GJBaseGameLayer::ungroupStickyObjects(v2, v11); this = GJBaseGameLayer::groupStickyObjects(v2, v11); if ( v10 ) v12 = *(_DWORD *)(v10 + 272); else v12 = 0; v9 = v10; v10 = v12; } } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source