//
// MusicDownloadManager::onGetCustomContentURLCompleted from 0x100153c64 to 0x100153d0c (168 bytes)
//
// 1 xrefs:
// > MusicDownloadManager::handleIt @ 0x100153a4c
//
// 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::onGetCustomContentURLCompleted(__int64 a1, std::string::value_type *a2)
{
_BOOL4 v4; // w0
_BOOL4 v5; // w21
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v7; // [xsp+1Fh] [xbp-21h]
MusicDownloadManager::removeDLFromActive((MusicDownloadManager *)a1, "get_c_url");
sub_100009900(__p, "-1");
v4 = sub_1000045BC(a2, __p);
v5 = v4;
if ( v7 < 0 )
{
operator delete(__p[0]);
if ( v5 )
goto LABEL_3;
}
else if ( v4 )
{
LABEL_3:
MusicDownloadManager::musicActionFailed((MusicDownloadManager *)a1, DownloadOrUpdate);
return;
}
if ( a2[23] < 0 )
a2 = *(std::string::value_type **)a2;
std::string::assign((std::string *)(a1 + 368), a2);
MusicDownloadManager::musicActionFinished((MusicDownloadManager *)a1, DownloadOrUpdate);
}