//
// MusicDownloadManager::removeMusicDownloadDelegate from 0x56bc00 to 0x56bc3c (60 bytes)
//
// 13 xrefs:
// > MenuLayer::~MenuLayer @ 0x3f9a14
// > EditorUI::~EditorUI @ 0x4858bc
// > CustomSongWidget::~CustomSongWidget @ 0x4e32c4
// > SetupSongTriggerPopup::~SetupSongTriggerPopup @ 0x65821c
// > CustomSFXWidget::~CustomSFXWidget @ 0x6a5df0
// > MusicBrowser::~MusicBrowser @ 0x6bd0a8
// > NewsPopup::~NewsPopup @ 0x6c2cc4
// > SFXBrowser::~SFXBrowser @ 0x6c4880
// > AudioAssetsBrowser::~AudioAssetsBrowser @ 0x6e1a2c
// > AudioAssetsPopup::onClose @ 0x760dea
// > AudioAssetsPopup::~AudioAssetsPopup @ 0x760e7c
// > EditorSoundConfigInfoLayer::~EditorSoundConfigInfoLayer @ 0x784742
// > EditorSoundConfigInfoLayer::onClose @ 0x784b7e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:33 +0000
//
unsigned int __fastcall MusicDownloadManager::removeMusicDownloadDelegate(
cocos2d::CCArray **this,
MusicDownloadDelegate *a2)
{
unsigned int i; // r4
unsigned int result; // r0
for ( i = 0; ; ++i )
{
result = cocos2d::CCArray::count(*(this + 68));
if ( i >= result )
break;
if ( *(MusicDownloadDelegate **)(cocos2d::CCArray::objectAtIndex(*(this + 68), i) + 264) == a2 )
return cocos2d::CCArray::removeObjectAtIndex(*(this + 68), i, 1);
}
return result;
}