//
// CustomSongWidget::onGetSongInfo from 0x14016b710 to 0x14016b7d4 (196 bytes)
//
// 4 xrefs:
// > CustomSongWidget::getSongInfoIfUnloaded @ 0x14016b63b
// > LevelInfoLayer::init @ 0x14041e1d3
// > CustomSongWidget::init @ 0x140169860
// > ??> @ 0x140918104
//
// 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:29 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall CustomSongWidget::onGetSongInfo(__int64 a1)
{
__int64 v2; // rcx
__int64 v3; // rcx
void *v4; // [rsp+30h] [rbp+8h]
if ( *(_QWORD *)(a1 + 336) )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 376) + 336LL))(*(_QWORD *)(a1 + 376), 0);
v2 = *(_QWORD *)(a1 + 480);
if ( v2 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 336LL))(v2, 0);
v3 = qword_14090C070;
if ( !qword_14090C070 )
{
v4 = operator new(0x3D0u);
qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);
v3 = qword_14090C070;
}
MusicDownloadManager::getSongInfo(v3, *(unsigned int *)(a1 + 504), 0);
(**(void (__fastcall ***)(__int64, void *))(*(_QWORD *)(a1 + 408) + 320LL))(
*(_QWORD *)(a1 + 408) + 320LL,
&unk_140702F74);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 408) + 936LL))(*(_QWORD *)(a1 + 408), 0);
}
}