//
// MusicDownloadManager::removeMusicDownloadDelegate from 0x10058b1a0 to 0x10058b225 (133 bytes)
//
// 16 xrefs:
// > EditorUI::dEditorUI @ 0x100008e0b
// > sub_1002D2A70 @ 0x1002d2b3a
// > sub_1002D2B60 @ 0x1002d2c2a
// > sub_1002D2C50 @ 0x1002d2d08
// > sub_1002D2D30 @ 0x1002d2dfa
// > sub_1002D2E20 @ 0x1002d2ed8
// > SFXBrowser::dSFXBrowser @ 0x10043e3cc
// > sub_1005E27A0 @ 0x1005e27de
// > sub_1005E2810 @ 0x1005e284e
// > sub_1005E2880 @ 0x1005e28be
// > sub_10060D760 @ 0x10060d82a
// > sub_10060D860 @ 0x10060d92a
// > sub_10060D960 @ 0x10060da18
// > sub_10060DA50 @ 0x10060db1a
// > CustomSongWidget::dCustomSongWidget @ 0x10061a67e
// > AudioAssetsBrowser::dAudioAssetsBrowser @ 0x1007b3c80
//
// 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)
{
unsigned int v2; // r15d
if ( (unsigned int)sub_100720070(a1->m_musicDownloadDelegates) )
{
v2 = 0;
while ( *(MusicDownloadDelegate **)(sub_1007200C0(a1->m_musicDownloadDelegates, v2) + 320) != a2 )
{
if ( ++v2 >= (unsigned int)sub_100720070(a1->m_musicDownloadDelegates) )
return;
}
sub_100720230(a1->m_musicDownloadDelegates, v2, 1);
}
}