//
// CustomSongLayer::onMusicBrowser from 0x1001f8f80 to 0x1001f8fcb (75 bytes)
//
// 1 xrefs:
// > CustomSongLayer::init @ 0x1001f867e
//
// 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:49 +0000
//
__int64 __fastcall CustomSongLayer::onMusicBrowser(__int64 a1)
{
__int64 v2; // rdi
__int64 v3; // rdi
_QWORD *v4; // rax
v2 = *(_QWORD *)(a1 + 680);
if ( v2 )
v3 = (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v2 + 8LL))(v2);
else
v3 = 0;
v4 = (_QWORD *)MusicBrowser::create(v3, 0xFFFFFFFFLL);
v4[110] = a1 + 672;
return (*(__int64 (__fastcall **)(_QWORD *))(*v4 + 1312LL))(v4);
}