//
// MusicDownloadManager::onGetCustomContentURLCompleted from 0x5746c4 to 0x574750 (140 bytes)
//
// 1 xrefs:
// > MusicDownloadManager::handleIt @ 0x578004
//
// 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:40 +0000
//
int __fastcall MusicDownloadManager::onGetCustomContentURLCompleted(int a1, int a2, int a3, int a4)
{
_BOOL4 v6; // r8
int result; // r0
char *v8; // r1
int v9[4]; // [sp+0h] [bp-10h] BYREF
v9[3] = a4;
MusicDownloadManager::removeDLFromActive((MusicDownloadManager *)a1, "get_c_url");
memset(v9, 0, 12);
std::string::__init(v9, "-1", 2u);
v6 = sub_56B0BE((unsigned __int8 *)a2, (unsigned __int8 *)v9);
std::string::~string((int)v9);
if ( v6 )
return MusicDownloadManager::musicActionFailed(a1, 2);
if ( (*(_BYTE *)a2 & 1) != 0 )
v8 = *(char **)(a2 + 8);
else
v8 = (char *)(a2 + 1);
std::string::assign((int *)(a1 + 288), v8);
result = MusicDownloadManager::musicActionFinished(a1, 2);
if ( *(_BYTE *)(a1 + 562) )
{
*(_BYTE *)(a1 + 562) = 0;
return MusicDownloadManager::tryUpdateNewsFeed((MusicDownloadManager *)a1);
}
return result;
}