// // MusicSearchResult::updateFutureCount from 0x100599950 to 0x100599e00 (1200 bytes) // // 1 xrefs: // > MusicSearchResult::updateObjects_1 @ 0x10059a0ee // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall MusicSearchResult::updateFutureCount(MusicSearchResult *a1, cocos2d::CCArray *a2, cocos2d::CCArray *a3) { __int64 v4; // rdi int v5; // r15d cocos2d::CCArray *m_tagFilterObjects; // rax cocos2d::ccArray *data; // rax __int64 num; // rcx cocos2d::CCObject **arr; // r14 unsigned __int64 v10; // rbx int v11; // eax cocos2d::CCObject *v12; // r12 char *v13; // r13 int v14; // ebx cocos2d::ccArray *v15; // rax cocos2d::CCArray **v16; // r15 unsigned __int64 v17; // r13 __int64 *i; // rax int v19; // eax cocos2d::CCObject *v20; // r12 char *v21; // r13 cocos2d::CCArray *v22; // rdi cocos2d::CCArray *v23; // r14 cocos2d::CCArray *m_artistFilterObjects; // rax cocos2d::ccArray *v25; // rax cocos2d::CCObject **v26; // rbx unsigned __int64 v27; // r15 cocos2d::CCObject *v28; // r12 char *v29; // r13 __int64 v30; // [rsp+8h] [rbp-58h] MusicSearchResult *v31; // [rsp+10h] [rbp-50h] __int64 v33; // [rsp+20h] [rbp-40h] cocos2d::CCArray *v34; // [rsp+28h] [rbp-38h] int v35; // [rsp+34h] [rbp-2Ch] v34 = a2; v4 = (__int64)a2; v5 = sub_100720070(a2); v31 = a1; m_tagFilterObjects = a1->m_tagFilterObjects; if ( m_tagFilterObjects ) { data = m_tagFilterObjects->data; num = data->num; if ( data->num ) { arr = data->arr; v10 = (unsigned __int64)&arr[num - 1]; if ( a2 ) { v35 = v5; v30 = (__int64)&arr[num - 1]; do { v12 = *arr; if ( !*arr ) break; v11 = v5; if ( !BYTE4(v12[1].__vftable) ) { if ( !qword_1009A2C38 ) { v13 = (char *)operator new(0x230u); cocos2d::CCNode::CCNode((__int64)v13); *(_QWORD *)v13 = off_100970158; *((_QWORD *)v13 + 40) = off_1009704D8; *((_OWORD *)v13 + 28) = 0; *(_OWORD *)(v13 + 328) = 0; *(_OWORD *)(v13 + 344) = 0; *((_DWORD *)v13 + 90) = 0; *((_OWORD *)v13 + 23) = 0; *((_OWORD *)v13 + 24) = 0; *((_OWORD *)v13 + 25) = 0; v13[416] = 0; *(_OWORD *)(v13 + 424) = 0; *((_QWORD *)v13 + 55) = v13 + 448; *((_OWORD *)v13 + 30) = 0; *((_OWORD *)v13 + 31) = 0; *((_QWORD *)v13 + 58) = 0; *(_QWORD *)(v13 + 471) = 0; *((_DWORD *)v13 + 128) = 1065353216; *(_OWORD *)(v13 + 520) = 0; *(_OWORD *)(v13 + 536) = 0; *((_DWORD *)v13 + 138) = 1065353216; qword_1009A2C38 = (__int64)v13; v4 = (__int64)v13; MusicDownloadManager::init((MusicDownloadManager *)v13); } v14 = (int)v12[1].__vftable; v33 = sub_10071F9E0(v4, a2); v15 = v34->data; if ( v15->num ) { v16 = (cocos2d::CCArray **)v15->arr; v17 = (unsigned __int64)&v16[v15->num - 1]; do { a2 = *v16; if ( !*v16 ) break; for ( i = *(__int64 **)&a2[9].m_uIndexInArray; i; i = (__int64 *)*i ) { if ( *((_DWORD *)i + 7) <= v14 ) { if ( *((_DWORD *)i + 7) >= v14 ) { sub_10071FCD0(v33, a2); break; } ++i; } } ++v16; } while ( (unsigned __int64)v16 <= v17 ); } v4 = v33; v11 = sub_100720070(v33); v5 = v35; v10 = v30; } v12[1].m_unknown2 = v11; ++arr; } while ( (unsigned __int64)arr <= v10 ); } else { do { v20 = *arr; if ( !*arr ) break; v19 = v5; if ( !BYTE4(v20[1].__vftable) ) { if ( !qword_1009A2C38 ) { v21 = (char *)operator new(0x230u); cocos2d::CCNode::CCNode((__int64)v21); *(_QWORD *)v21 = off_100970158; *((_QWORD *)v21 + 40) = off_1009704D8; *((_OWORD *)v21 + 28) = 0; *(_OWORD *)(v21 + 328) = 0; *(_OWORD *)(v21 + 344) = 0; *((_DWORD *)v21 + 90) = 0; *((_OWORD *)v21 + 23) = 0; *((_OWORD *)v21 + 24) = 0; *((_OWORD *)v21 + 25) = 0; v21[416] = 0; *(_OWORD *)(v21 + 424) = 0; *((_QWORD *)v21 + 55) = v21 + 448; *((_OWORD *)v21 + 30) = 0; *((_OWORD *)v21 + 31) = 0; *((_QWORD *)v21 + 58) = 0; *(_QWORD *)(v21 + 471) = 0; *((_DWORD *)v21 + 128) = 1065353216; *(_OWORD *)(v21 + 520) = 0; *(_OWORD *)(v21 + 536) = 0; *((_DWORD *)v21 + 138) = 1065353216; qword_1009A2C38 = (__int64)v21; v4 = (__int64)v21; MusicDownloadManager::init((MusicDownloadManager *)v21); } v4 = sub_10071F9E0(v4, a2); v19 = sub_100720070(v4); } v20[1].m_unknown2 = v19; ++arr; } while ( (unsigned __int64)arr <= v10 ); } } } v22 = (cocos2d::CCArray *)v31; v23 = MusicSearchResult::applyTagFilters(v31, a3); m_artistFilterObjects = v31->m_artistFilterObjects; if ( m_artistFilterObjects ) { v25 = m_artistFilterObjects->data; if ( v25->num ) { v26 = v25->arr; v27 = (unsigned __int64)&v26[v25->num - 1]; do { v28 = *v26; if ( !*v26 ) break; if ( !qword_1009A2C38 ) { v29 = (char *)operator new(0x230u); cocos2d::CCNode::CCNode((__int64)v29); *(_QWORD *)v29 = off_100970158; *((_QWORD *)v29 + 40) = off_1009704D8; *((_OWORD *)v29 + 28) = 0; *(_OWORD *)(v29 + 328) = 0; *(_OWORD *)(v29 + 344) = 0; *((_DWORD *)v29 + 90) = 0; *((_OWORD *)v29 + 23) = 0; *((_OWORD *)v29 + 24) = 0; *((_OWORD *)v29 + 25) = 0; v29[416] = 0; *(_OWORD *)(v29 + 424) = 0; *((_QWORD *)v29 + 55) = v29 + 448; *((_OWORD *)v29 + 30) = 0; *((_OWORD *)v29 + 31) = 0; *((_QWORD *)v29 + 58) = 0; *(_QWORD *)(v29 + 471) = 0; *((_DWORD *)v29 + 128) = 1065353216; *(_OWORD *)(v29 + 520) = 0; *(_OWORD *)(v29 + 536) = 0; *((_DWORD *)v29 + 138) = 1065353216; qword_1009A2C38 = (__int64)v29; v22 = (cocos2d::CCArray *)v29; MusicDownloadManager::init((MusicDownloadManager *)v29); } v22 = MusicDownloadManager::filterMusicByArtistID((MusicDownloadManager *)v22, (int)v28[1].__vftable, v23); v28[1].m_unknown2 = sub_100720070(v22); ++v26; } while ( (unsigned __int64)v26 <= v27 ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source