//
// CustomSongLayer::onMusicBrowser from 0x1400c3ec0 to 0x1400c3f1d (93 bytes)
//
// 2 xrefs:
// > CustomSongLayer::init @ 0x1400c308a
// > ??> @ 0x1406c8064
//
// 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
//
void CustomSongLayer::onMusicBrowser(CustomSongLayer *a1, cocos2d::CCObject *a2)
{
CustomSongDelegate *m_songDelegate; // rcx
int v4; // eax
MusicBrowser *v5; // rax
MusicBrowserDelegate *v6; // rcx
MusicBrowser_vtbl *v7; // rdx
m_songDelegate = a1->m_songDelegate;
if ( m_songDelegate )
v4 = ((__int64 (__fastcall *)(CustomSongDelegate *, cocos2d::CCObject *))m_songDelegate->getActiveSongID)(
m_songDelegate,
a2);
else
v4 = 0;
v5 = MusicBrowser::create(v4, Music);
v6 = &a1->MusicBrowserDelegate;
if ( !a1 )
v6 = nullptr;
v7 = v5->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v5->m_delegate = v6;
v7->show(v5);
}