//
// MusicDownloadManager::handleIt from 0x45c790 to 0x45c832 (162 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::onProcessHttpRequestCompleted @ 0x45c884
// > MusicDownloadManager::handleItND @ 0x45c90a
//
// 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
//
int __fastcall MusicDownloadManager::handleIt(int result, char *a2, const char *a3, const char *a4, int a5)
{
MusicDownloadManager *v5; // r7
int v6; // r3
int v7; // r3
char *v8; // [sp+4h] [bp-Ch] BYREF
const char *v9[2]; // [sp+8h] [bp-8h] BYREF
v8 = a2;
v9[0] = a3;
v9[1] = a4;
v5 = (MusicDownloadManager *)result;
if ( !a2 )
result = sub_7753D4((int)a3, "-1");
if ( a5 == 19 )
{
sub_775C20(&v8);
sub_775C20(v9);
MusicDownloadManager::onGetSongInfoCompleted(v5, (int)&v8, v9, v6);
LABEL_8:
sub_774008(v9);
return sub_774008(&v8);
}
if ( a5 == 59 )
{
sub_775C20(&v8);
sub_775C20(v9);
MusicDownloadManager::onGetCustomContentURLCompleted(v5, &v8, (int)v9, v7);
goto LABEL_8;
}
return result;
}