//
// sub_1006670A0 from 0x1006670a0 to 0x1006670f3 (83 bytes)
//
// 1 xrefs:
// > MusicBrowser::setupMusicBrowser @ 0x1006e978d
//
// This function is hookable on this platform (idp: pc, 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:34:58 +0000
//
void __fastcall sub_1006670A0(__int64 a1)
{
__int64 v2; // rax
__int64 AllMusicArtists; // rax
_DWORD *v4; // rdi
__int64 v5; // r14
if ( !*(_QWORD *)(a1 + 80) )
{
v2 = MusicDownloadManager::sharedState();
AllMusicArtists = MusicDownloadManager::getAllMusicArtists(v2, a1 + 56);
v4 = *(_DWORD **)(a1 + 80);
if ( v4 != (_DWORD *)AllMusicArtists )
{
v5 = AllMusicArtists;
if ( AllMusicArtists )
{
cocos2d::CCObject::retain(AllMusicArtists);
v4 = *(_DWORD **)(a1 + 80);
}
if ( v4 )
cocos2d::CCObject::release(v4);
*(_QWORD *)(a1 + 80) = v5;
}
}
}