//
// AudioAssetsPopup::onClose from 0xc8e080 to 0xc8e0d0 (80 bytes)
//
// 2 xrefs:
// > ??> @ 0xf04d8
// > ??> @ 0x14f3ef8
//
// 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 13:05:46 +0000
//
__int64 __fastcall AudioAssetsPopup::onClose(AudioAssetsPopup *this, cocos2d::CCObject *a2)
{
cocos2d::CCArray **v3; // x0
v3 = (cocos2d::CCArray **)MusicDownloadManager::sharedState(this);
MusicDownloadManager::removeMusicDownloadDelegate(v3, (AudioAssetsPopup *)((char *)this + 1016));
(*(void (__fastcall **)(AudioAssetsPopup *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
return (*(__int64 (__fastcall **)(AudioAssetsPopup *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
}