//
// MusicDownloadManager::removeMusicDownloadDelegate from 0x95bd20 to 0x95bd98 (120 bytes)
//
// 14 xrefs:
// > MenuLayer::~MenuLayer @ 0x6eaf2c
// > EditorUI::~EditorUI @ 0x7c0680
// > CustomSongWidget::~CustomSongWidget @ 0x8697b0
// > SetupSongTriggerPopup::~SetupSongTriggerPopup @ 0xae9fec
// > CustomSFXWidget::~CustomSFXWidget @ 0xb5d720
// > MusicBrowser::~MusicBrowser @ 0xb83618
// > NewsPopup::~NewsPopup @ 0xb8ab70
// > SFXBrowser::~SFXBrowser @ 0xb901d8
// > AudioAssetsBrowser::~AudioAssetsBrowser @ 0xbc1bd0
// > AudioAssetsPopup::onClose @ 0xc8e098
// > AudioAssetsPopup::~AudioAssetsPopup @ 0xc8e150
// > EditorSoundConfigInfoLayer::~EditorSoundConfigInfoLayer @ 0xccc76c
// > EditorSoundConfigInfoLayer::onClose @ 0xcccc68
// > ??> @ 0x94060
//
// This function is hookable on this platform (idp: arm, 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 12:57:28 +0000
//
__int64 __fastcall MusicDownloadManager::removeMusicDownloadDelegate(
cocos2d::CCArray **this,
MusicDownloadDelegate *a2)
{
unsigned int i; // w19
__int64 result; // x0
for ( i = 0; ; ++i )
{
result = cocos2d::CCArray::count(*(this + 42));
if ( i >= (unsigned int)result )
break;
if ( *(MusicDownloadDelegate **)(cocos2d::CCArray::objectAtIndex(*(this + 42), i) + 320) == a2 )
return cocos2d::CCArray::removeObjectAtIndex(*(this + 42), i, 1);
}
return result;
}