//
// MusicDownloadManager::deleteSong from 0x572660 to 0x5726ae (78 bytes)
//
// 4 xrefs:
// > GJSongBrowser::FLAlert_Clicked @ 0x3f745e
// > CustomSongCell::onDelete @ 0x427176
// > CustomSongWidget::deleteSong @ 0x4e3f14
// > MusicDownloadManager::limitDownloadedSongs @ 0x57280a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:39 +0000
//
int __fastcall MusicDownloadManager::deleteSong(MusicDownloadManager *this, int a2)
{
char *v2; // r0
char v4; // [sp+0h] [bp-14h] BYREF
char v5; // [sp+1h] [bp-13h] BYREF
char *filename; // [sp+8h] [bp-Ch]
MusicDownloadManager::pathForSong((MusicDownloadManager *)&v4, this, a2);
if ( (v4 & 1) != 0 )
v2 = filename;
else
v2 = &v5;
remove(v2);
return std::string::~string((int)&v4);
}