//
// MusicDelegateHandler::create from 0x100589e70 to 0x100589ed4 (100 bytes)
//
// 0 xrefs:
//
// 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 *v1; // rbx
v1 = (MusicDelegateHandler *)operator new(0x148u);
cocos2d::CCNode::CCNode((__int64)v1);
v1->__vftable = (MusicDelegateHandler_vtbl *)off_10096FDD8;
v1->m_delegate = nullptr;
if ( cocos2d::CCNode::init(v1) )
{
v1->m_delegate = a1;
cocos2d::CCObject::autorelease(v1);
}
else
{
((void (__fastcall *)(MusicDelegateHandler *))v1->~MusicDelegateHandler_0)(v1);
return nullptr;
}
return v1;
}