//
// MusicDownloadManager::onGetCustomContentURLCompleted from 0x1001d27a8 to 0x1001d2868 (192 bytes)
//
// 1 xrefs:
// > MusicDownloadManager::handleIt @ 0x1001d24a0
//
// This function is hookable on this platform (idp: arm, 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 11:00:23 +0000
//
__int64 __fastcall MusicDownloadManager::onGetCustomContentURLCompleted(__int64 a1, std::string::value_type *a2)
{
_BOOL4 v4; // w0
_BOOL4 v5; // w21
__int64 result; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v8; // [xsp+1Fh] [xbp-21h]
sub_1001D2EE4(a1, "get_c_url");
sub_100009900(__p, "-1");
v4 = sub_1000045BC(a2, __p);
v5 = v4;
if ( v8 < 0 )
{
operator delete(__p[0]);
if ( v5 )
return MusicDownloadManager::musicActionFailed(a1, 2);
}
else if ( v4 )
{
return MusicDownloadManager::musicActionFailed(a1, 2);
}
if ( a2[23] < 0 )
a2 = *(std::string::value_type **)a2;
std::string::assign((std::string *)(a1 + 368), a2);
result = MusicDownloadManager::downloadSFXFinished(a1, 2);
if ( *(_BYTE *)(a1 + 874) == 1 )
{
*(_BYTE *)(a1 + 874) = 0;
return MusicDownloadManager::tryUpdateNewsFeed(a1);
}
return result;
}