//
// sub_100667040 from 0x100667040 to 0x100667093 (83 bytes)
//
// 1 xrefs:
// > MusicBrowser::setupMusicBrowser @ 0x1006e9785
//
// 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_100667040(__int64 a1)
{
__int64 v2; // rax
__int64 AllMusicTags; // rax
_DWORD *v4; // rdi
__int64 v5; // r14
if ( !*(_QWORD *)(a1 + 72) )
{
v2 = MusicDownloadManager::sharedState();
AllMusicTags = MusicDownloadManager::getAllMusicTags(v2, a1 + 56);
v4 = *(_DWORD **)(a1 + 72);
if ( v4 != (_DWORD *)AllMusicTags )
{
v5 = AllMusicTags;
if ( AllMusicTags )
{
cocos2d::CCObject::retain(AllMusicTags);
v4 = *(_DWORD **)(a1 + 72);
}
if ( v4 )
cocos2d::CCObject::release(v4);
*(_QWORD *)(a1 + 72) = v5;
}
}
}