//
// MusicDownloadManager::deleteSong from 0x10015606c to 0x1001560bc (80 bytes)
//
// 4 xrefs:
// > CustomSongWidget::deleteSong @ 0x1000fce24
// > CustomSongCell::onDelete @ 0x100110318
// > MusicDownloadManager::limitDownloadedSongs @ 0x10015603c
// > GJSongBrowser::FLAlert_Clicked @ 0x1002660fc
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall MusicDownloadManager::deleteSong(MusicDownloadManager *a1, int 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, *(_QWORD *)&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]);
}