// // GameLevelManager::getAllUsedSongIDs from 0x804f68 to 0x805084 (284 bytes) // // 2 xrefs: // > MusicDownloadManager::clearUnusedSongs @ 0x96d3a8 // > @ 0xf0e38 // // 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 12:54:45 +0000 // cocos2d::CCDictionary *__fastcall GameLevelManager::getAllUsedSongIDs(GameLevelManager *this) { cocos2d::CCDictionary *v2; // x22 __int64 v3; // x0 __int64 i; // x19 __int64 v5; // x20 __int64 v6; // x1 cocos2d::CCArray *v7; // x21 unsigned int v8; // w19 bool v9; // cf unsigned int v10; // w1 cocos2d::CCArray *j; // x0 __int64 v12; // x20 __int64 v13; // x1 cocos2d::CCObject *v15; // x0 cocos2d::CCObject *v16; // x0 v2 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(this); v3 = *((_QWORD *)this + 95); if ( v3 ) { v3 = *(_QWORD *)(v3 + 56); if ( v3 ) { for ( i = *(_QWORD *)(v3 + 288); ; i = *(_QWORD *)(i + 288) ) { v5 = *(_QWORD *)(v3 + 264); v3 = *(unsigned __int8 *)(v5 + 1105); if ( !*(_BYTE *)(v5 + 1105) ) { v3 = (__int64)v2; v6 = *(int *)(v5 + 608); if ( (int)v6 > 0 ) { v3 = cocos2d::CCDictionary::objectForKey(v2, v6); if ( !v3 ) { v16 = (cocos2d::CCObject *)cocos2d::CCNode::create(nullptr); v3 = cocos2d::CCDictionary::setObject(v2, v16, *(int *)(v5 + 608)); } } } if ( !i ) break; v3 = i; } } } v7 = *(cocos2d::CCArray **)(LocalLevelManager::sharedState((LocalLevelManager *)v3) + 360); v8 = 0; v9 = (unsigned int)cocos2d::CCArray::count(v7) == 0; v10 = 0; for ( j = v7; !v9; j = v7 ) { v12 = cocos2d::CCArray::objectAtIndex(j, v10); if ( *(_BYTE *)(v12 + 1105) || (v13 = *(int *)(v12 + 608), (int)v13 <= 0) || cocos2d::CCDictionary::objectForKey(v2, v13) ) { ++v8; } else { v15 = (cocos2d::CCObject *)cocos2d::CCNode::create(nullptr); ++v8; cocos2d::CCDictionary::setObject(v2, v15, *(int *)(v12 + 608)); } v9 = v8 >= (unsigned int)cocos2d::CCArray::count(v7); v10 = v8; } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source