//
// MusicDownloadManager::removeMusicDownloadDelegate from 0x457dc0 to 0x457dfc (60 bytes)
//
// 7 xrefs:
// > EditorUI::~EditorUI @ 0x39d9f8
// > CustomSongWidget::~CustomSongWidget @ 0x3e041c
// > SetupSongTriggerPopup::~SetupSongTriggerPopup @ 0x524cec
// > CustomSFXWidget::~CustomSFXWidget @ 0x56db48
// > MusicBrowser::~MusicBrowser @ 0x58104c
// > SFXBrowser::~SFXBrowser @ 0x582d3c
// > AudioAssetsBrowser::~AudioAssetsBrowser @ 0x59b5e8
//
// 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 MusicDownloadManager::removeMusicDownloadDelegate(MusicDownloadManager *a1, MusicDownloadDelegate *a2)
{
unsigned int i; // r4
for ( i = 0; i < cocos2d::CCArray::count(a1->m_musicDownloadDelegates); ++i )
{
if ( *(MusicDownloadDelegate **)(cocos2d::CCArray::objectAtIndex(a1->m_musicDownloadDelegates, i) + 264) == a2 )
{
cocos2d::CCArray::removeObjectAtIndex(a1->m_musicDownloadDelegates, i, 1);
return;
}
}
}