//
// NCSInfoLayer::onLibrary from 0x140167bc0 to 0x140167c33 (115 bytes)
//
// 2 xrefs:
// > NCSInfoLayer::init @ 0x14016776c
// > ??> @ 0x140917fcc
//
// 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 11:27:27 +0000
//
__int64 __fastcall NCSInfoLayer::onLibrary(__int64 a1)
{
__int64 v2; // rcx
__int64 v3; // rcx
unsigned int v4; // eax
__int64 *v5; // rax
__int64 v6; // rcx
bool v7; // zf
__int64 v8; // rdx
__int64 v9; // rcx
v2 = *(_QWORD *)(a1 + 672);
if ( v2 && (v3 = *(_QWORD *)(v2 + 680)) != 0 )
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 8LL))(v3);
else
v4 = 0;
v5 = (__int64 *)MusicBrowser::create(v4, 1);
v6 = *(_QWORD *)(a1 + 672);
v7 = v6 == 0;
v8 = v6 + 672;
v9 = *v5;
if ( v7 )
v8 = 0;
v5[110] = v8;
return (*(__int64 (__fastcall **)(__int64 *))(v9 + 1064))(v5);
}