//
// CustomSongLayer::onMusicBrowser from 0x1002159a0 to 0x1002159eb (75 bytes)
//
// 1 xrefs:
// > CustomSongLayer::init @ 0x1002150ae
//
// 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 __fastcall CustomSongLayer::onMusicBrowser(CustomSongLayer *a1, cocos2d::CCObject *a2)
{
CustomSongDelegate *m_songDelegate; // rdi
int v4; // edi
MusicBrowser *v5; // rax
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);
v5->m_delegate = &a1->MusicBrowserDelegate;
((void (__fastcall *)(MusicBrowser *))v5->show)(v5);
}