//
// SongSelectNode::create from 0x1400c6ca0 to 0x1400c6dd0 (304 bytes)
//
// 4 xrefs:
// > LevelSettingsLayer::init @ 0x1403201d7
// > SetupSongTriggerPopup::init @ 0x14045cd44
// > ??> @ 0x1406c81d8
// > ??> @ 0x1406c81e4
//
// 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
SongSelectNode *SongSelectNode::create(
int a1,
bool a2,
LevelSettingsObject *a3,
SongSelectType a4,
cocos2d::CCPoint a5,
cocos2d::CCNode *a6,
cocos2d::CCMenu *a7,
bool a8)
{
SongSelectNode *v12; // r14
cocos2d::CCPoint v13; // rax
SongSelectNode *v15; // [rsp+50h] [rbp-18h] BYREF
v12 = (SongSelectNode *)operator new(0x1B0u);
v15 = v12;
cocos2d::CCNode::CCNode(v12);
v12->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SongSelectNode_vtbl *)&SongSelectNode::`vftable';
v12->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&SongSelectNode::`vftable';
v12->CustomSongLayerDelegate::__vftable = (CustomSongLayerDelegate_vtbl *)&SongSelectNode::`vftable';
v12->CustomSongDelegate::__vftable = (CustomSongDelegate_vtbl *)&SongSelectNode::`vftable';
v12->m_selectedSongID = 0;
*(_WORD *)&v12->m_isCustomSong = 0;
v12->m_selectSongObjects = nullptr;
v12->m_settingsObject = nullptr;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, *(const struct cocos2d::CCPoint **)&a5);
if ( SongSelectNode::init(v12, a1, a2, a3, a4, v13, a6, a7, a8) )
{
cocos2d::CCObject::autorelease(v12);
return v12;
}
else
{
((void (__fastcall *)(SongSelectNode *, __int64))v12->~SongSelectNode)(v12, 1);
return nullptr;
}
}