//
// SecretLayer5::playWinSFX from 0x1403f6770 to 0x1403f67fd (141 bytes)
//
// 2 xrefs:
// > SecretLayer5::showSuccessAnimation @ 0x1403f66c3
// > ??> @ 0x1406d8264
//
// 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
//
// Hidden C++ exception states: #wind=2
void SecretLayer5::playWinSFX(SecretLayer5 *a1)
{
MusicDownloadManager *v1; // rax
_QWORD *v2; // rbx
__int64 v3; // r8
__int64 v4; // r9
int v5; // ecx
_QWORD v6[5]; // [rsp+30h] [rbp-28h] BYREF
FMODAudioEngine *v7; // [rsp+70h] [rbp+18h]
v1 = MusicDownloadManager::sharedState();
v2 = MusicDownloadManager::pathForSFX((__int64)v1, v6, 0x51F6u);
v5 = qword_1406C2E88;
if ( !qword_1406C2E88 )
{
v7 = (FMODAudioEngine *)operator new(0x888u);
qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);
v5 = qword_1406C2E88;
}
FMODAudioEngine::playEffect(v5, (__int64)v2, v3, v4, 1060320051);
}