//
// MusicDelegateHandler::create from 0x56b9bc to 0x56ba0a (78 bytes)
//
// 1 xrefs:
// > MusicDownloadManager::addMusicDownloadDelegate @ 0x56bbec
//
// 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
//
cocos2d::CCNode *__fastcall MusicDelegateHandler::create(MusicDelegateHandler *this, MusicDownloadDelegate *a2)
{
cocos2d::CCNode *v3; // r4
int v4; // r3
cocos2d::CCNode *v5; // r0
v3 = (cocos2d::CCNode *)operator new(0x10Cu);
cocos2d::CCNode::CCNode(v3);
*(_DWORD *)v3 = &off_CB0DB0;
*((_DWORD *)v3 + 66) = 0;
if ( MusicDelegateHandler::init(v3, this) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
v4 = *(_DWORD *)v3;
v5 = v3;
v3 = nullptr;
(*(void (__fastcall **)(cocos2d::CCNode *))(v4 + 8))(v5);
}
return v3;
}