//
// sub_10038D590 from 0x10038d590 to 0x10038d668 (216 bytes)
//
// 1 xrefs:
// > CustomSFXWidget::FLAlert_Clicked @ 0x10038db10
//
// 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:03:36 +0000
//
void __fastcall sub_10038D590(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
__int64 v4; // x0
__int16 v5; // [xsp+4h] [xbp-2Ch] BYREF
char v6; // [xsp+6h] [xbp-2Ah]
std::string __p; // [xsp+8h] [xbp-28h] BYREF
if ( *(_QWORD *)(a1 + 336) )
{
MusicDownloadManager::sharedState();
MusicDownloadManager::pathForSFX(*(unsigned int *)(*(_QWORD *)(a1 + 336) + 56LL), &__p);
v2 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::stopAllEffects(v2);
v3 = MusicDownloadManager::sharedState();
sub_1001DFE8C(v3, *(unsigned int *)(*(_QWORD *)(a1 + 336) + 56LL));
sub_10038CC88(a1);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 368) + 344LL))(*(_QWORD *)(a1 + 368), 1);
v4 = *(_QWORD *)(a1 + 368);
v6 = 0;
v5 = 25855;
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v4 + 1072LL))(v4, &v5);
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 368) + 928LL))(
*(_QWORD *)(a1 + 368),
"SFX Deleted");
cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 368), 230.0, 0.4, 0.0);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}
}