//
// NCSInfoLayer::onLibrary from 0x1001fbbf0 to 0x1001fbc56 (102 bytes)
//
// 1 xrefs:
// > NCSInfoLayer::init @ 0x1001fb8cb
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:26:50 +0000
//
__int64 __fastcall NCSInfoLayer::onLibrary(__int64 a1)
{
__int64 v2; // rax
__int64 v3; // rdi
__int64 v4; // rax
_QWORD *v5; // rax
__int64 v6; // rcx
__int64 v7; // rdx
v2 = *(_QWORD *)(a1 + 672);
v3 = 0;
if ( v2 )
{
v4 = *(_QWORD *)(v2 + 680);
if ( v4 )
v3 = (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v4 + 8LL))(v4);
}
v5 = (_QWORD *)MusicBrowser::create(v3, 1);
v6 = *(_QWORD *)(a1 + 672);
v7 = v6 + 672;
if ( !v6 )
v7 = 0;
v5[110] = v7;
return (*(__int64 (__fastcall **)(_QWORD *))(*v5 + 1312LL))(v5);
}