// // MusicSearchResult::applyViewFilter from 0x96b1cc to 0x96b328 (348 bytes) // // 2 xrefs: // > MusicSearchResult::updateObjects @ 0x971f30 // > @ 0x5d148 // // 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:57:38 +0000 // __int64 __fastcall MusicSearchResult::applyViewFilter(MusicSearchResult *this, cocos2d::CCArray *a2) { cocos2d::CCArray *v3; // x0 _QWORD *v4; // x22 MusicDownloadManager *v5; // x0 cocos2d::CCArray *v6; // x21 __int64 v7; // x20 __int64 i; // x19 MusicDownloadManager *v9; // x0 cocos2d::CCObject *MusicObject; // x2 int v11; // w3 __int64 result; // x0 cocos2d::CCArray *v13; // x22 unsigned int *v14; // x2 int **v15; // x19 __int64 v16; // x1 char *v17; // x21 int *v18; // x20 MusicDownloadManager *v19; // x0 v3 = (cocos2d::CCArray *)*((unsigned int *)this + 35); if ( (_DWORD)v3 == 1 ) { result = cocos2d::CCArray::create(v3); v13 = (cocos2d::CCArray *)result; if ( a2 ) { v14 = *((unsigned int **)a2 + 7); if ( !*v14 ) return result; v15 = *((int ***)v14 + 2); v16 = 8LL * *v14 - 8; v17 = (char *)v15 + v16; if ( v15 > (int **)((char *)v15 + v16) ) return result; v18 = *v15; if ( !*v15 ) return result; do { v19 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)result); result = MusicDownloadManager::isMusicFavorite(v19, v18[79]); if ( (_BYTE)result ) result = cocos2d::CCArray::addObject(v13, (cocos2d::CCObject *)v18); if ( v17 < (char *)++v15 ) break; v18 = *v15; } while ( *v15 ); } return (__int64)v13; } v4 = (_QWORD *)((char *)this + 144); if ( (_DWORD)v3 == 2 ) { v3 = (cocos2d::CCArray *)MusicDownloadManager::sharedState(v3); v4 = (_QWORD *)((char *)v3 + 752); } v5 = (MusicDownloadManager *)cocos2d::CCArray::create(v3); v6 = v5; v7 = (__int64)(v4[1] - *v4) >> 2; if ( v7 ) { for ( i = 0; i != v7; ++i ) { while ( 1 ) { v9 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v5); MusicObject = (cocos2d::CCObject *)MusicDownloadManager::getMusicObject(v9, *(_DWORD *)(*v4 + 4 * i)); v5 = v6; if ( MusicObject ) { v11 = *((_DWORD *)this + 34); if ( v11 == -1 || v11 == *((_DWORD *)MusicObject + 100) ) break; } if ( ++i == v7 ) return (__int64)v6; } v5 = (MusicDownloadManager *)cocos2d::CCArray::addObject(v6, MusicObject); } } return (__int64)v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source