//
// MusicDownloadManager::onTryUpdateMusicLibraryCompleted from 0x100157c10 to 0x100157ccc (188 bytes)
//
// 1 xrefs:
// > MusicDownloadManager::tryUpdateMusicLibrary @ 0x100157b0c
//
// 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::onTryUpdateMusicLibraryCompleted(
MusicDownloadManager *a1,
cocos2d::extension::CCHttpClient *a2,
cocos2d::extension::CCHttpResponse *a3)
{
void **v5; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v7; // [xsp+1Fh] [xbp-21h]
MusicDownloadManager::removeDLFromActive(a1, "v_music_l");
if ( a3 && a3->_succeed )
{
GameToolbox::getResponse((__int64)a3, __p);
if ( v7 >= 0 )
v5 = __p;
else
v5 = (void **)__p[0];
if ( atoi((const char *)v5) <= a1->m_musicLibraryVersion )
MusicDownloadManager::musicActionFailed(a1, UpdateMusicLibrary);
else
MusicDownloadManager::downloadMusicLibrary(a1);
if ( v7 < 0 )
operator delete(__p[0]);
}
else
{
MusicDownloadManager::musicActionFailed(a1, (GJMusicAction)5);
}
}