//
// CustomSongLayer::onMusicBrowser from 0x140164f90 to 0x140164ff0 (96 bytes)
//
// 2 xrefs:
// > CustomSongLayer::init @ 0x1401640fe
// > ??> @ 0x140917e70
//
// 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:26 +0000
//
__int64 __fastcall CustomSongLayer::onMusicBrowser(__int64 a1)
{
__int64 v2; // rcx
unsigned int v3; // eax
_QWORD *v4; // rax
__int64 v5; // rcx
v2 = *(_QWORD *)(a1 + 680);
if ( v2 )
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 8LL))(v2);
else
v3 = 0;
v4 = (_QWORD *)MusicBrowser::create(v3, 0xFFFFFFFFLL);
v5 = a1 + 672;
if ( !a1 )
v5 = 0;
v4[110] = v5;
return (*(__int64 (__fastcall **)(_QWORD *))(*v4 + 1064LL))(v4);
}