//
// SongSelectNode::create from 0x100218a80 to 0x100218b84 (260 bytes)
//
// 2 xrefs:
// > LevelSettingsLayer::init @ 0x10026d632
// > SetupSongTriggerPopup::init @ 0x1002d34f6
//
// 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 *v8; // rbx
cocos2d::CCPoint v9; // xmm0_8
char v11; // [rsp+18h] [rbp-48h] BYREF
LevelSettingsObject *v12; // [rsp+20h] [rbp-40h]
cocos2d::CCMenu *v13; // [rsp+28h] [rbp-38h]
SongSelectType v14; // [rsp+34h] [rbp-2Ch]
v13 = a7;
v14 = a4;
v12 = a3;
v8 = (SongSelectNode *)operator new(0x1B0u);
cocos2d::CCNode::CCNode(v8);
v8->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SongSelectNode_vtbl *)off_1008DD710;
v8->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&off_1008DDAC0;
v8->CustomSongLayerDelegate::__vftable = (CustomSongLayerDelegate_vtbl *)&off_1008DDAD8;
v8->CustomSongDelegate::__vftable = (CustomSongDelegate_vtbl *)off_1008DDAF0;
v8->m_selectedSongID = 0;
*(_WORD *)&v8->m_isCustomSong = 0;
v8->m_selectSongObjects = nullptr;
v8->m_settingsObject = nullptr;
*(double *)&v9 = sub_10028CC60(&v11);
if ( SongSelectNode::init(v8, a1, a2, v12, v14, v9, (cocos2d::CCNode *)&v11, v13, a8) )
{
cocos2d::CCObject::autorelease(v8);
}
else
{
((void (__fastcall *)(SongSelectNode *))v8->~SongSelectNode_0)(v8);
return nullptr;
}
return v8;
}