//
// MusicDownloadManager::tryLoadLibraries from 0x100596640 to 0x1005966ae (110 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::init @ 0x1000daf0b
//
// 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 MusicDownloadManager::tryLoadLibraries(MusicDownloadManager *a1)
{
cocos2d::CCDictionary *m_sfxObjects; // rdi
cocos2d::CCDictionary *m_musicObjects; // rdi
if ( !a1->m_triedToLoadLibraries )
{
a1->m_triedToLoadLibraries = 1;
m_sfxObjects = a1->m_sfxObjects;
if ( m_sfxObjects && cocos2d::CCDictionary::count(m_sfxObjects) )
{
m_musicObjects = a1->m_musicObjects;
if ( !m_musicObjects )
goto LABEL_9;
}
else
{
MusicDownloadManager::parseSFXLibrary(a1);
m_musicObjects = a1->m_musicObjects;
if ( !m_musicObjects )
goto LABEL_9;
}
if ( cocos2d::CCDictionary::count(m_musicObjects) )
return;
LABEL_9:
MusicDownloadManager::parseMusicLibrary(a1);
}
}