//
// NCSInfoLayer::onLibrary from 0x83acf0 to 0x83ad58 (104 bytes)
//
// 3 xrefs:
// > ??> @ 0x82590
// > NCSInfoLayer::init @ 0x83e524
// > ??> @ 0x122c660
//
// 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; // x0
CustomSongDelegate *m_songDelegate; // x0
int v5; // w0
MusicBrowser *v6; // x0
MusicBrowser_vtbl *v7; // x4
CustomSongLayer *v8; // x3
MusicBrowserDelegate *v9; // x1
m_songLayer = a1->m_songLayer;
if ( m_songLayer && (m_songDelegate = m_songLayer->m_songDelegate) != nullptr )
v5 = m_songDelegate->getActiveSongID(m_songDelegate);
else
v5 = 0;
v6 = MusicBrowser::create(v5, (GJSongType)1);
v7 = v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v8 = a1->m_songLayer;
v9 = &v8->MusicBrowserDelegate;
if ( !v8 )
v9 = nullptr;
v6->m_delegate = v9;
((void (*)(void))v7->show)();
}