//
// CustomSongWidget::onSelect from 0x1006f89f0 to 0x1006f8a47 (87 bytes)
//
// 1 xrefs:
// > CustomSongWidget::init @ 0x1006f782c
//
// 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::onSelect(__int64 a1)
{
__int64 result; // rax
void (__fastcall ***v3)(_QWORD, _QWORD); // rdi
__int64 v4; // rax
result = *(_QWORD *)(a1 + 336);
if ( result )
{
v3 = *(void (__fastcall ****)(_QWORD, _QWORD))(a1 + 488);
if ( v3 )
(**v3)(v3, *(unsigned int *)(result + 316));
result = CustomSongWidget::updateSongInfo(a1);
if ( *(_BYTE *)(a1 + 512) == 1 )
{
v4 = MusicDownloadManager::sharedState();
return MusicDownloadManager::songStateChanged(v4);
}
}
return result;
}