//
// CustomSFXWidget::create from 0x1400c0640 to 0x1400c0772 (306 bytes)
//
// 3 xrefs:
// > CustomSFXCell::loadFromObject @ 0x1400b4c04
// > SetupSFXPopup::createSFXWidget @ 0x14044899e
// > ??> @ 0x1406c7f08
//
// 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
//
// Hidden C++ exception states: #wind=1
CustomSFXWidget *CustomSFXWidget::create(
SFXInfoObject *a1,
CustomSFXDelegate *a2,
bool a3,
bool a4,
bool a5,
bool a6,
bool a7)
{
CustomSFXWidget *v10; // r14
v10 = (CustomSFXWidget *)operator new(0x1D0u);
cocos2d::CCNode::CCNode(v10);
v10->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CustomSFXWidget_vtbl *)&CustomSFXWidget::`vftable';
v10->MusicDownloadDelegate::__vftable = (MusicDownloadDelegate_vtbl *)&CustomSFXWidget::`vftable';
v10->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&CustomSFXWidget::`vftable';
v10->m_sfxObject = nullptr;
v10->m_titleLabel = nullptr;
v10->m_idLabel = nullptr;
v10->m_downloadButton = nullptr;
v10->m_selectButton = nullptr;
v10->m_playButton = nullptr;
v10->m_deleteButton = nullptr;
v10->m_progressOutlineSprite = nullptr;
v10->m_progressBarSprite = nullptr;
v10->m_clockSprite = nullptr;
v10->m_delegate = nullptr;
*(_DWORD *)&v10->m_showDelete = 0;
v10->m_compactMode = 0;
*(_QWORD *)&v10->m_sfxID = 0;
if ( CustomSFXWidget::init(v10, a1, a2, a3, 1, 1, 0, a7) )
{
cocos2d::CCObject::autorelease(v10);
return v10;
}
else
{
((void (__fastcall *)(CustomSFXWidget *, __int64))v10->~CustomSFXWidget)(v10, 1);
return nullptr;
}
}