//
// MusicBrowser::cellPerformedAction from 0xb83ad8 to 0xb83b34 (92 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'MusicBrowser::cellPerformedAction @ 0xb83b38
// > ??> @ 0xbf578
// > ??> @ 0x14d4b98
//
// 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:02:29 +0000
//
bool __fastcall MusicBrowser::cellPerformedAction(__int64 a1, __int64 a2, int a3, int a4)
{
_BOOL4 v4; // w20
MusicDownloadManager *v7; // x0
v4 = a3 == 14 && a4 == 1;
if ( a3 == 14 && a4 == 1 )
{
*(_DWORD *)(a1 + 864) = *(_DWORD *)(*(_QWORD *)(a2 + 560) + 316LL);
*(_BYTE *)(a1 + 873) = (unsigned __int8)&dword_0 + 1;
v7 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)((char *)&dword_0 + 1));
MusicDownloadManager::noteSongUsed(v7, *(_DWORD *)(a1 + 864));
}
return v4;
}