//
// NCSInfoLayer::onLibrary from 0x100218760 to 0x1002187c6 (102 bytes)
//
// 1 xrefs:
// > NCSInfoLayer::init @ 0x100218448
//
// 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 NCSInfoLayer::onLibrary(NCSInfoLayer *a1, cocos2d::CCObject *a2)
{
CustomSongLayer *m_songLayer; // rax
int v4; // edi
CustomSongDelegate *m_songDelegate; // rax
MusicBrowser *v6; // rax
CustomSongLayer *v7; // rcx
MusicBrowserDelegate *v8; // rdx
m_songLayer = a1->m_songLayer;
v4 = 0;
if ( m_songLayer )
{
m_songDelegate = m_songLayer->m_songDelegate;
if ( m_songDelegate )
v4 = ((__int64 (__fastcall *)(CustomSongDelegate *, cocos2d::CCObject *))m_songDelegate->getActiveSongID)(
m_songDelegate,
a2);
}
v6 = MusicBrowser::create(v4, (GJSongType)1);
v7 = a1->m_songLayer;
v8 = &v7->MusicBrowserDelegate;
if ( !v7 )
v8 = nullptr;
v6->m_delegate = v8;
((void (__fastcall *)(MusicBrowser *))v6->show)(v6);
}