// // MusicSearchResult::applyViewFilter from 0x5718a6 to 0x57194e (168 bytes) // // 1 xrefs: // > MusicSearchResult::updateObjects @ 0x5753ac // // 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:52:38 +0000 // cocos2d::CCArray *__fastcall MusicSearchResult::applyViewFilter(MusicSearchResult *this, cocos2d::CCArray *a2) { MusicSearchResult *v2; // r8 int v3; // r3 MusicDownloadManager *isMusicFavorite; // r0 cocos2d::CCArray *v6; // r4 _DWORD *v7; // r2 unsigned int **v8; // r6 unsigned int **v9; // r5 unsigned int *v10; // r7 unsigned int *v11; // t1 char *v12; // r7 cocos2d::CCDictionary *MusicObject; // r0 int v14; // r6 int v15; // r5 MusicDownloadManager *v16; // r0 int v17; // r3 MusicDownloadManager *v19; // r0 unsigned int v20; // r2 v2 = this; v3 = *((_DWORD *)this + 26); if ( v3 == 1 ) { isMusicFavorite = (MusicDownloadManager *)cocos2d::CCArray::create(this); v6 = isMusicFavorite; if ( a2 ) { v7 = *((_DWORD **)a2 + 13); if ( *v7 ) { v8 = (unsigned int **)v7[3]; v9 = &(&v8[*v7])[-1]; while ( v8 <= v9 ) { v11 = *v8++; v10 = v11; if ( !v11 ) break; v19 = (MusicDownloadManager *)MusicDownloadManager::sharedState(isMusicFavorite); isMusicFavorite = (MusicDownloadManager *)MusicDownloadManager::isMusicFavorite(v19, v10[66], v20); if ( isMusicFavorite ) isMusicFavorite = (MusicDownloadManager *)cocos2d::CCArray::addObject(v6, (cocos2d::CCObject *)v10); } } } } else { if ( v3 == 2 ) { this = (MusicSearchResult *)MusicDownloadManager::sharedState(this); v12 = (char *)this + 496; } else { v12 = (char *)this + 108; } MusicObject = (cocos2d::CCDictionary *)cocos2d::CCArray::create(this); v14 = 0; v15 = (*((_DWORD *)v12 + 1) - *(_DWORD *)v12) >> 2; v6 = MusicObject; while ( v14 != v15 ) { v16 = (MusicDownloadManager *)MusicDownloadManager::sharedState(MusicObject); MusicObject = MusicDownloadManager::getMusicObject(v16, *(_DWORD *)(*(_DWORD *)v12 + 4 * v14)); if ( MusicObject ) { v17 = *((_DWORD *)v2 + 25); if ( v17 == -1 || *((_DWORD *)MusicObject + 78) == v17 ) MusicObject = (cocos2d::CCDictionary *)cocos2d::CCArray::addObject(v6, MusicObject); } ++v14; } } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source