//
// GJSongBrowser::FLAlert_Clicked from 0x308006 to 0x308068 (98 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'GJSongBrowser::FLAlert_Clicked @ 0x30806c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJSongBrowser::FLAlert_Clicked(GJSongBrowser *a1, FLAlertLayer *a2, bool a3)
{
_BOOL4 v4; // r4
MusicDownloadManager *v5; // r0
unsigned int v6; // r4
cocos2d::CCArray *DownloadedSongs; // r6
int v8; // r0
int v9; // r7
MusicDownloadManager *v10; // r0
MusicDownloadManager *v11; // r0
v4 = a3;
if ( a2->getTag(a2) == 1 && v4 )
{
v5 = MusicDownloadManager::sharedState();
v6 = 0;
DownloadedSongs = MusicDownloadManager::getDownloadedSongs(v5);
while ( v6 < cocos2d::CCArray::count(DownloadedSongs) )
{
v8 = cocos2d::CCArray::objectAtIndex(DownloadedSongs, v6++);
v9 = v8;
v10 = MusicDownloadManager::sharedState();
MusicDownloadManager::deleteSong(v10, *(_DWORD *)(v9 + 264));
}
v11 = MusicDownloadManager::sharedState();
MusicDownloadManager::clearUnusedSongs(v11);
a1->exitLayer(a1, nullptr);
}
}