//
// CustomSongWidget::onGetSongInfo from 0x1006f8a50 to 0x1006f8ad4 (132 bytes)
//
// 2 xrefs:
// > LevelInfoLayer::init @ 0x1002abc61
// > CustomSongWidget::init @ 0x1006f787d
//
// 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:35:54 +0000
//
__int64 __fastcall CustomSongWidget::onGetSongInfo(__int64 a1)
{
__int64 v2; // rdi
__int64 v3; // rax
__int64 result; // rax
if ( *(_QWORD *)(a1 + 336) )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 376) + 344LL))(*(_QWORD *)(a1 + 376), 0);
v2 = *(_QWORD *)(a1 + 480);
if ( v2 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 344LL))(v2, 0);
v3 = MusicDownloadManager::sharedState();
MusicDownloadManager::getSongInfo(v3, *(_DWORD *)(a1 + 504), 0);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 408) + 960LL))(*(_QWORD *)(a1 + 408), &unk_100A11C36);
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 408) + 1056LL))(*(_QWORD *)(a1 + 408), 0);
}
return result;
}