//
// sub_100660CF0 from 0x100660cf0 to 0x100660d4d (93 bytes)
//
// 7 xrefs:
// > SFXBrowser::onExitFolder @ 0x10042dfdf
// > SFXBrowser::setupSFXBrowser @ 0x10042fe38
// > SFXBrowser::setupSFXBrowser @ 0x10042ffa0
// > SFXBrowser::setupSFXBrowser @ 0x10042ffb8
// > SFXBrowser::setupSFXBrowser @ 0x10043007b
// > SFXBrowser::setupSFXBrowser @ 0x1004300df
// > sub_1004326B0 @ 0x100432881
//
// 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:56 +0000
//
__int64 __fastcall sub_100660CF0(__int64 a1, int a2)
{
__int64 v2; // rdi
__int64 result; // rax
__int64 v4; // rbx
__int64 v5; // rdi
v2 = *(_QWORD *)(MusicDownloadManager::sharedState() + 400);
if ( !v2 )
return 0;
result = cocos2d::CCDictionary::objectForKey_1(v2, a2);
if ( !result )
return 0;
if ( !*(_BYTE *)(result + 72) )
{
v4 = result;
v5 = *(_QWORD *)(MusicDownloadManager::sharedState() + 400);
if ( !v5 )
return 0;
result = cocos2d::CCDictionary::objectForKey_1(v5, *(int *)(v4 + 60));
if ( !result || !*(_BYTE *)(result + 72) )
return 0;
}
return result;
}