//
// GJSongBrowser::FLAlert_Clicked from 0x100303414 to 0x1003034c8 (180 bytes)
//
// 2 xrefs:
// > sub_1003034C8 @ 0x1003034cc
// > ??> @ 0x10092a190
//
// 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 11:03:06 +0000
//
__int64 __fastcall GJSongBrowser::FLAlert_Clicked(__int64 a1, __int64 a2, int a3)
{
__int64 result; // x0
__int64 v7; // x0
__int64 DownloadedSongs; // x20
unsigned int v10; // w21
__int64 v11; // x22
__int64 v12; // x0
__int64 v13; // x0
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result == 1 && a3 != 0 )
{
v7 = MusicDownloadManager::sharedState();
DownloadedSongs = MusicDownloadManager::getDownloadedSongs(v7);
if ( (unsigned int)sub_1002E757C(DownloadedSongs) )
{
v10 = 0;
do
{
v11 = sub_1002E75A0(DownloadedSongs, v10);
v12 = MusicDownloadManager::sharedState();
MusicDownloadManager::deleteSong(v12, *(unsigned int *)(v11 + 316));
++v10;
}
while ( v10 < (unsigned int)sub_1002E757C(DownloadedSongs) );
}
v13 = MusicDownloadManager::sharedState();
MusicDownloadManager::clearUnusedSongs(v13);
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1320LL))(a1, 0);
}
return result;
}