//
// MusicDownloadManager::deleteSong from 0x1001d4af4 to 0x1001d4b44 (80 bytes)
//
// 4 xrefs:
// > CustomSongWidget::deleteSong @ 0x100121700
// > CustomSongCell::onDelete @ 0x100137b14
// > MusicDownloadManager::limitDownloadedSongs @ 0x1001d4ac4
// > GJSongBrowser::FLAlert_Clicked @ 0x100303488
//
// 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:00:24 +0000
//
void __fastcall MusicDownloadManager::deleteSong(__int64 a1, __int64 a2)
{
std::error_code *v2; // x1
const std::__fs::filesystem::path *v3; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v5; // [xsp+1Fh] [xbp-11h]
MusicDownloadManager::pathForSong(__p, a1, a2);
if ( v5 >= 0 )
v3 = (const std::__fs::filesystem::path *)__p;
else
v3 = (const std::__fs::filesystem::path *)__p[0];
remove(v3, v2);
if ( v5 < 0 )
operator delete(__p[0]);
}