//
// MusicDownloadManager::handleIt from 0x140482210 to 0x140482341 (305 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::onProcessHttpRequestCompleted @ 0x1404821c9
// > ??> @ 0x140928988
//
// This function is hookable on this platform (idp: pc, 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:32:45 +0000
//
// Hidden C++ exception states: #wind=4
void __fastcall MusicDownloadManager::handleIt(__int64 a1, __int64 a2, char *a3, __int64 a4, int a5)
{
__int64 v8; // rbx
__int64 v9; // rax
__int64 v10; // rbx
__int64 v11; // rax
__int64 v12; // rbx
__int64 v13; // rax
_BYTE v14[32]; // [rsp+30h] [rbp-78h] BYREF
_BYTE v15[32]; // [rsp+50h] [rbp-58h] BYREF
char *v16; // [rsp+70h] [rbp-38h]
__int64 v17; // [rsp+78h] [rbp-30h]
v16 = a3;
v17 = a4;
GameToolbox::extractServerPopup(a3);
switch ( a5 )
{
case 21:
v12 = sub_14003F4F0((__int64)v15, a4);
v13 = sub_14003F4F0((__int64)v14, (__int64)a3);
MusicDownloadManager::onGetSongInfoCompleted(a1, v13, v12);
break;
case 65:
v10 = sub_14003F4F0((__int64)v15, a4);
v11 = sub_14003F4F0((__int64)v14, (__int64)a3);
MusicDownloadManager::onGetCustomContentURLCompleted(a1, v11, v10);
break;
case 107:
v8 = sub_14003F4F0((__int64)v14, a4);
v9 = sub_14003F4F0((__int64)v15, (__int64)a3);
MusicDownloadManager::onGetAudioFilesizeCompleted(a1, v9, v8);
break;
}
sub_14003D310((__int64)a3);
sub_14003D310(a4);
}