//
// CustomSongLayer::create from 0x100143988 to 0x100143a48 (192 bytes)
//
// 2 xrefs:
// > SongSelectNode::onOpenCustomSong @ 0x1001478c4
// > SongSelectNode::FLAlert_Clicked @ 0x100147b2c
//
// 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
//
CustomSongLayer *__fastcall CustomSongLayer::create(CustomSongDelegate *a1)
{
CustomSongLayer *v2; // x19
v2 = (CustomSongLayer *)operator new(0x2B0u);
FLAlertLayer::FLAlertLayer(v2);
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CustomSongLayer_vtbl *)&off_100794900;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_100794E58;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_100794EC8;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_100794EE0;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)off_100794F00;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_100794F20;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_100794F48;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)off_100794FC8;
v2->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&off_100794FE8;
v2->GJDropDownLayerDelegate::__vftable = (GJDropDownLayerDelegate_vtbl *)&off_100795030;
v2->MusicBrowserDelegate::__vftable = (MusicBrowserDelegate_vtbl *)&off_100795048;
v2->m_delegate = nullptr;
*(_OWORD *)&v2->m_songDelegate = 0u;
if ( CustomSongLayer::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
((void (__fastcall *)(CustomSongLayer *))v2->~CustomSongLayer_0)(v2);
return nullptr;
}
return v2;
}