//
// SongSelectNode::onOpenCustomSong from 0x9814b0 to 0x9814fc (76 bytes)
//
// 4 xrefs:
// > ??> @ 0x94828
// > SongSelectNode::init @ 0x98022c
// > SongSelectNode::init @ 0x9802b0
// > ??> @ 0x1544040
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:57:51 +0000
//
__int64 __fastcall SongSelectNode::onOpenCustomSong(SongSelectNode *this, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
MusicDownloadManager *GameVariable; // x0
CustomSongDelegate *v5; // x1
MusicDownloadManager *v7; // x0
v3 = (GameManager *)GameManager::sharedState(this);
GameVariable = (MusicDownloadManager *)(unsigned __int8)GameManager::getGameVariable(v3, "0016");
if ( (_BYTE)GameVariable )
return SongSelectNode::showCustomSongSelect(this, v5);
v7 = (MusicDownloadManager *)MusicDownloadManager::sharedState(GameVariable);
return MusicDownloadManager::showTOS(v7, (SongSelectNode *)((char *)this + 320));
}