//
// MusicDownloadManager::deleteSong from 0x10064e9c0 to 0x10064ea0b (75 bytes)
//
// 3 xrefs:
// > CustomSongCell::onDelete @ 0x10023caee
// > GJSongBrowser::FLAlert_Clicked @ 0x1006d638e
// > CustomSongWidget::deleteSong @ 0x1006faf32
//
// This function is hookable on this platform (idp: pc, 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 12:34:48 +0000
//
void __fastcall MusicDownloadManager::deleteSong(std::error_code *__ec)
{
std::string v1; // [rsp+8h] [rbp-18h] BYREF
MusicDownloadManager::pathForSong(&v1);
if ( (*(_BYTE *)&v1.__r_.__value_.__s.0 & 1) == 0 )
{
remove((const std::__fs::filesystem::path *)((char *)&v1.__r_.__value_.__l.0 + 1), __ec);
if ( (*(_BYTE *)&v1.__r_.__value_.__s.0 & 1) == 0 )
return;
goto LABEL_5;
}
remove((const std::__fs::filesystem::path *)v1.__r_.__value_.__l.__data_, __ec);
if ( (*(_BYTE *)&v1.__r_.__value_.__s.0 & 1) != 0 )
LABEL_5:
operator delete(v1.__r_.__value_.__l.__data_);
}