// // GJBaseGameLayer::sortStickyGroups from 0x592ae2 to 0x592b9e (188 bytes) // // 2 xrefs: // > LevelEditorLayer::init @ 0x47655a // > GJBaseGameLayer::updateSpecialGroupData @ 0x5c151a // // 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::sortStickyGroups(GJBaseGameLayer *this) { unsigned int v2; // r6 cocos2d::CCDictionary *v3; // r5 unsigned int result; // r0 int *v5; // r0 int v6; // r1 int *v7; // r8 cocos2d::CCObject *v8; // r7 int v9; // r3 int v10; // r5 int v11; // r2 unsigned int v12; // r6 cocos2d::CCArray *v13; // r7 int v14; // r0 v2 = 0; v3 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(this); while ( 1 ) { result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 522)); if ( v2 >= result ) break; v5 = (int *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 522), v2); v6 = v5[185]; v7 = v5; if ( v6 > 0 ) { v8 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(v3, v6); if ( !v8 ) { v8 = (cocos2d::CCObject *)cocos2d::CCArray::create(nullptr); cocos2d::CCDictionary::setObject(v3, v8, v7[185]); } cocos2d::CCArray::addObject(v8, (cocos2d::CCObject *)v7); } ++v2; } *((_DWORD *)this + 605) = 0; if ( v3 ) { v9 = *((_DWORD *)v3 + 13); if ( v9 ) v10 = *(_DWORD *)(v9 + 272); else v10 = 0; while ( v9 ) { v12 = 0; ++*((_DWORD *)this + 605); v13 = *(cocos2d::CCArray **)(v9 + 260); while ( v12 < cocos2d::CCArray::count(v13) ) { v14 = cocos2d::CCArray::objectAtIndex(v13, v12++); *(_DWORD *)(v14 + 740) = *((_DWORD *)this + 605); } result = cocos2d::CCDictionary::setObject(*((cocos2d::CCDictionary **)this + 604), v13, *((_DWORD *)this + 605)); if ( v10 ) v11 = *(_DWORD *)(v10 + 272); else v11 = 0; v9 = v10; v10 = v11; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source