//
// MusicDelegateHandler::create from 0x100153448 to 0x1001534b8 (112 bytes)
//
// 1 xrefs:
// > MusicDownloadManager::addMusicDownloadDelegate @ 0x100153f40
//
// 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
//
MusicDelegateHandler *__fastcall MusicDelegateHandler::create(MusicDownloadDelegate *a1)
{
MusicDelegateHandler *v2; // x19
v2 = (MusicDelegateHandler *)operator new(0x148u);
cocos2d::CCNode::CCNode(v2);
v2->__vftable = (MusicDelegateHandler_vtbl *)off_10079A518;
v2->m_delegate = nullptr;
if ( cocos2d::CCNode::init(v2) )
{
v2->m_delegate = a1;
cocos2d::CCObject::autorelease(v2);
}
else
{
((void (__fastcall *)(MusicDelegateHandler *))v2->~MusicDelegateHandler_0)(v2);
return nullptr;
}
return v2;
}