//
// SongSelectNode::onOpenCustomSong from 0x57cd5c to 0x57cd88 (44 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:52:50 +0000
//
int __fastcall SongSelectNode::onOpenCustomSong(SongSelectNode *this, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
CustomSongDelegate *v4; // r1
MusicDownloadManager *v5; // r0
v3 = (GameManager *)GameManager::sharedState(this);
if ( GameManager::getGameVariable(v3, "0016") )
return SongSelectNode::showCustomSongSelect(this, v4);
v5 = (MusicDownloadManager *)MusicDownloadManager::sharedState(nullptr);
return MusicDownloadManager::showTOS(v5, (SongSelectNode *)((char *)this + 264));
}