//
// CustomSFXWidget::dCustomSFXWidget from 0x14015fe40 to 0x14015ff01 (193 bytes)
//
// 2 xrefs:
// > ??> @ 0x140742148
// > ??> @ 0x140917ca8
//
// This function is hookable on this platform (idp: pc, 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 11:27:24 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCNode *__fastcall CustomSFXWidget::dCustomSFXWidget(cocos2d::CCNode *Block, char a2)
{
__int64 v4; // rcx
void *v5; // rax
cocos2d::CCObject *v6; // rcx
*(_QWORD *)Block = &CustomSFXWidget::`vftable';
*((_QWORD *)Block + 40) = &CustomSFXWidget::`vftable';
*((_QWORD *)Block + 41) = &CustomSFXWidget::`vftable';
v4 = qword_14090C070;
if ( !qword_14090C070 )
{
v5 = operator new(0x3D0u);
qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);
v4 = qword_14090C070;
}
MusicDownloadManager::removeMusicDownloadDelegate(v4, (char *)Block + 320);
v6 = *((cocos2d::CCObject **)Block + 42);
if ( v6 )
cocos2d::CCObject::release(v6);
cocos2d::CCNode::~CCNode(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}