//
// MusicDownloadManager::onTryUpdateMusicLibraryCompleted from 0x5705f4 to 0x570674 (128 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:52:37 +0000
//
unsigned int __fastcall MusicDownloadManager::onTryUpdateMusicLibraryCompleted(
MusicDownloadManager *this,
cocos2d::extension::CCHttpClient *a2,
cocos2d::extension::CCHttpResponse *a3)
{
char *v5; // r0
char v7; // [sp+0h] [bp-14h] BYREF
char v8; // [sp+1h] [bp-13h] BYREF
char *v9; // [sp+8h] [bp-Ch]
MusicDownloadManager::removeDLFromActive(this, "v_music_l");
if ( !a3 || !*((_BYTE *)a3 + 56) )
return MusicDownloadManager::musicActionFailed((int)this, 5);
GameToolbox::getResponse((GameToolbox *)&v7, a3);
if ( (v7 & 1) != 0 )
v5 = v9;
else
v5 = &v8;
if ( atoi(v5) <= *((_DWORD *)this + 92) )
MusicDownloadManager::musicActionFailed((int)this, 6);
else
MusicDownloadManager::downloadMusicLibrary((int)this);
return std::string::~string((int)&v7);
}