//
// MusicDownloadManager::deleteSFX from 0x10015ae4c to 0x10015ae9c (80 bytes)
//
// 1 xrefs:
// > CustomSFXWidget::deleteSFX @ 0x1002f1398
//
// 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::deleteSFX(MusicDownloadManager *a1, int a2)
{
std::error_code *v2; // x1
const std::__fs::filesystem::path *p_p; // x0
std::string __p; // [xsp+8h] [xbp-28h] BYREF
MusicDownloadManager::pathForSFX(*(__int64 *)&a2, &__p);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
p_p = (const std::__fs::filesystem::path *)&__p;
else
p_p = (const std::__fs::filesystem::path *)__p.__r_.__value_.__r.__words[0];
remove(p_p, v2);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}