//
// AudioAssetsPopup::musicActionFinished from 0x1400be420 to 0x1400be4e4 (196 bytes)
//
// 2 xrefs:
// > ??> @ 0x140722b20
// > ??> @ 0x140913a48
//
// 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:26:18 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall AudioAssetsPopup::musicActionFinished(__int64 a1, int a2)
{
__int64 v3; // rax
__int64 v4; // rbx
int v5; // edx
__int64 v6; // rcx
void *v7; // [rsp+40h] [rbp+18h]
void *v8; // [rsp+40h] [rbp+18h]
if ( a2 == 8 && *(_QWORD *)(a1 + 8) )
{
v3 = qword_14090C070;
if ( !qword_14090C070 )
{
v7 = operator new(0x3D0u);
qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);
v3 = qword_14090C070;
}
v4 = v3;
if ( !v3 )
{
v8 = operator new(0x3D0u);
qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);
v3 = qword_14090C070;
}
v5 = *(_DWORD *)(v4 + 404);
v6 = *(_QWORD *)(a1 + 8);
*(_DWORD *)(v6 + 608) = *(_DWORD *)(v3 + 400);
*(_DWORD *)(v6 + 612) = v5;
CustomSongWidget::updateMultiAssetInfo(v6, 0);
}
}