//
// MusicDownloadManager::removeMusicDownloadDelegate from 0x100153f6c to 0x100153fec (128 bytes)
//
// 7 xrefs:
// > CustomSongWidget::dCustomSongWidget @ 0x1000f97dc
// > SFXBrowser::dSFXBrowser @ 0x100168798
// > sub_1001C27B0 @ 0x1001c282c
// > AudioAssetsBrowser::dAudioAssetsBrowser @ 0x1001d143c
// > sub_1002EFAD8 @ 0x1002efb08
// > sub_1003C0D48 @ 0x1003c0dc4
// > EditorUI::dEditorUI @ 0x1003c4d0c
//
// 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
//
void __fastcall MusicDownloadManager::removeMusicDownloadDelegate(MusicDownloadManager *a1, MusicDownloadDelegate *a2)
{
__int64 v4; // x21
if ( (unsigned int)sub_10024A36C(a1->m_musicDownloadDelegates) )
{
v4 = 0;
while ( *(MusicDownloadDelegate **)(sub_10024A388(a1->m_musicDownloadDelegates, v4) + 320) != a2 )
{
v4 = (unsigned int)(v4 + 1);
if ( (unsigned int)v4 >= (unsigned int)sub_10024A36C(a1->m_musicDownloadDelegates) )
return;
}
sub_10024A44C(a1->m_musicDownloadDelegates, v4, 1);
}
}