//
// NCSInfoLayer::onLibrary from 0x45e0f2 to 0x45e128 (54 bytes)
//
// 0 xrefs:
//
// 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 NCSInfoLayer::onLibrary(NCSInfoLayer *a1, cocos2d::CCObject *a2)
{
CustomSongLayer *m_songLayer; // r0
MusicBrowser *v4; // r0
CustomSongLayer *v5; // r3
m_songLayer = a1->m_songLayer;
if ( m_songLayer )
{
m_songLayer = (CustomSongLayer *)m_songLayer->m_songDelegate;
if ( m_songLayer )
m_songLayer = (CustomSongLayer *)((int (__fastcall *)(CustomSongLayer *, cocos2d::CCObject *))m_songLayer->~CustomSongLayer)(
m_songLayer,
a2);
}
v4 = MusicBrowser::create((int)m_songLayer, (GJSongType)1);
v5 = a1->m_songLayer;
if ( v5 )
v5 = (CustomSongLayer *)((char *)v5 + 504);
v4->m_delegate = (MusicBrowserDelegate *)v5;
v4->show(v4);
}