//
// SongSelectNode::create from 0x460ed4 to 0x460fac (216 bytes)
//
// 2 xrefs:
// > SetupSongTriggerPopup::init @ 0x5253ae
// > LevelSettingsLayer::init @ 0x57202e
//
// 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 *SongSelectNode::create(
int a1,
bool a2,
LevelSettingsObject *a3,
SongSelectType a4,
cocos2d::CCPoint a5,
cocos2d::CCNode *a6,
cocos2d::CCMenu *a7,
bool a8)
{
SongSelectNode *v12; // r4
SongSelectNode_vtbl *v13; // r3
SongSelectNode *v14; // r0
cocos2d::CCPoint v16; // [sp+4h] [bp-30h]
bool v17; // [sp+14h] [bp-20h]
cocos2d::CCPoint v18; // [sp+24h] [bp-10h] BYREF
v12 = (SongSelectNode *)operator new(0x144u);
cocos2d::CCNode::CCNode(v12);
v12->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SongSelectNode_vtbl *)&off_A671C8;
v12->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&off_A673A0;
v12->CustomSongLayerDelegate::__vftable = (CustomSongLayerDelegate_vtbl *)&off_A673AC;
v12->CustomSongDelegate::__vftable = (CustomSongDelegate_vtbl *)&off_A673B8;
v12->m_selectedSongID = 0;
v12->m_isCustomSong = 0;
v12->m_songChanged = 0;
v12->m_selectSongObjects = nullptr;
v12->m_settingsObject = nullptr;
cocos2d::CCPoint::CCPoint(&v18, (const cocos2d::CCPoint *)LODWORD(a5.x));
LODWORD(v16.x) = &v18;
v16.y = a5.y;
if ( SongSelectNode::init(v12, a1, a2, a3, a4, v16, a6, (cocos2d::CCMenu *)(unsigned __int8)a7, v17) )
{
cocos2d::CCObject::autorelease(v12);
}
else
{
v13 = v12->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v14 = v12;
v12 = nullptr;
v13->~SongSelectNode_0(v14);
}
return v12;
}