//
// AudioAssetsPopup::musicActionFinished from 0xc8e198 to 0xc8e1e8 (80 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'AudioAssetsPopup::musicActionFinished @ 0xc8e1ec
// > ??> @ 0x83878
// > ??> @ 0x14f3f80
//
// This function is hookable on this platform (idp: arm, 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 13:05:46 +0000
//
MusicDownloadManager *__fastcall AudioAssetsPopup::musicActionFinished(MusicDownloadManager *result, int a2)
{
CustomSongWidget *v2; // x19
MusicDownloadManager *v3; // x0
__int64 v4; // x0
int v5; // [xsp+28h] [xbp+28h]
if ( a2 == 8 )
{
v2 = *((CustomSongWidget **)result + 128);
if ( v2 )
{
v3 = (MusicDownloadManager *)MusicDownloadManager::sharedState(result);
v5 = *((_DWORD *)v3 + 98);
v4 = MusicDownloadManager::sharedState(v3);
return (MusicDownloadManager *)CustomSongWidget::setMultiAssetFilesize(v2, v5, *(_DWORD *)(v4 + 396));
}
}
return result;
}