//
// SongSelectNode::showCustomSongSelect from 0x1400c7ba0 to 0x1400c7d00 (352 bytes)
//
// 4 xrefs:
// > SongSelectNode::onOpenCustomSong @ 0x1400c7b9b
// > SongSelectNode::FLAlert_Clicked @ 0x1400c7d74
// > ??> @ 0x1406c822c
// > ??> @ 0x1406c8238
//
// 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
void SongSelectNode::showCustomSongSelect(SongSelectNode *a1)
{
CustomSongDelegate *v2; // rbx
CustomSongLayer *v3; // rdi
CustomSongLayerDelegate *v4; // rax
void (*show)(CustomSongLayer *); // rdx
v2 = &a1->CustomSongDelegate;
if ( !a1 )
v2 = nullptr;
v3 = (CustomSongLayer *)operator new(0x2B0u);
FLAlertLayer::FLAlertLayer(v3);
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CustomSongLayer_vtbl *)&CustomSongLayer::`vftable';
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&CustomSongLayer::`vftable';
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&CustomSongLayer::`vftable';
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&CustomSongLayer::`vftable';
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&CustomSongLayer::`vftable';
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&CustomSongLayer::`vftable';
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&CustomSongLayer::`vftable';
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&CustomSongLayer::`vftable';
v3->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&CustomSongLayer::`vftable';
v3->GJDropDownLayerDelegate::__vftable = (GJDropDownLayerDelegate_vtbl *)&CustomSongLayer::`vftable';
v3->MusicBrowserDelegate::__vftable = (MusicBrowserDelegate_vtbl *)&CustomSongLayer::`vftable';
v3->m_songDelegate = nullptr;
v3->m_songIDInput = nullptr;
v3->m_delegate = nullptr;
if ( CustomSongLayer::init(v3, v2) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
((void (__fastcall *)(CustomSongLayer *, __int64))v3->~CustomSongLayer)(v3, 1);
v3 = nullptr;
}
v4 = &a1->CustomSongLayerDelegate;
if ( !a1 )
v4 = nullptr;
v3->m_delegate = v4;
show = (void (*)(CustomSongLayer *))v3->show;
if ( show == CustomSongLayer::show )
CustomSongLayer::show(v3);
else
show(v3);
}