//
// sub_1001DFE8C from 0x1001dfe8c to 0x1001dfedc (80 bytes)
//
// 1 xrefs:
// > sub_10038D590 @ 0x10038d5d4
//
// 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:29 +0000
//
void __fastcall sub_1001DFE8C(__int64 a1, __int64 a2)
{
std::error_code *v2; // x1
const std::__fs::filesystem::path *p_p; // x0
std::string __p; // [xsp+8h] [xbp-28h] BYREF
MusicDownloadManager::pathForSFX(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_);
}