//
// SongSelectNode::create from 0x100146de0 to 0x100146edc (252 bytes)
//
// 2 xrefs:
// > LevelSettingsLayer::init @ 0x10017ae7c
// > SetupSongTriggerPopup::init @ 0x1001c2b80
//
// 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
//
SongSelectNode *__fastcall SongSelectNode::create(
int a1,
bool a2,
LevelSettingsObject *a3,
SongSelectType a4,
cocos2d::CCPoint a5,
cocos2d::CCNode *a6,
cocos2d::CCMenu *a7,
bool a8)
{
SongSelectNode *v15; // x19
__int64 v17; // [xsp+8h] [xbp-58h] BYREF
cocos2d::CCPoint v18; // 0:s0.4,4:s1.4
v15 = (SongSelectNode *)operator new(0x1B0u);
cocos2d::CCNode::CCNode(v15);
v15->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SongSelectNode_vtbl *)off_1007944F0;
v15->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&off_1007948A0;
v15->CustomSongLayerDelegate::__vftable = (CustomSongLayerDelegate_vtbl *)&off_1007948B8;
v15->CustomSongDelegate::__vftable = (CustomSongDelegate_vtbl *)off_1007948D0;
v15->m_selectedSongID = 0;
*(_WORD *)&v15->m_isCustomSong = 0;
v15->m_selectSongObjects = nullptr;
v15->m_settingsObject = nullptr;
v18.x = sub_1000229B8(&v17, (__int64 *)a6);
if ( SongSelectNode::init(v15, a1, a2, a3, a4, v18, (cocos2d::CCNode *)&v17, a7, a8) )
{
cocos2d::CCObject::autorelease(v15);
}
else
{
((void (__fastcall *)(SongSelectNode *))v15->~SongSelectNode_0)(v15);
return nullptr;
}
return v15;
}