//
// MusicDownloadManager::onGetCustomContentURLCompleted from 0x97ccdc to 0x97cdf0 (276 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::handleIt @ 0x97cf68
// > ??> @ 0x744a0
//
// 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 12:57:49 +0000
//
__int64 __fastcall MusicDownloadManager::onGetCustomContentURLCompleted(__int64 a1, __int64 a2)
{
char *v4; // x1
_QWORD v6[3]; // [xsp+30h] [xbp+30h] BYREF
MusicDownloadManager::removeDLFromActive((MusicDownloadManager *)a1, "get_c_url");
v6[0] = 3222788;
v6[1] = 0;
v6[2] = 0;
if ( sub_95A404(a2, (__int64)v6) )
return MusicDownloadManager::musicActionFailed(a1, 2u);
v4 = (char *)(a2 + 1);
if ( (*(_BYTE *)a2 & 1) != 0 )
v4 = *(char **)(a2 + 16);
std::string::assign((__int64 *)(a1 + 368), v4);
MusicDownloadManager::musicActionFinished(a1, 2u);
if ( !*(_BYTE *)(a1 + 874) )
return _stack_chk_guard;
*(_BYTE *)(a1 + 874) = 0;
return MusicDownloadManager::tryUpdateNewsFeed((MusicDownloadManager *)a1);
}