//
// SecretLayer5::playWinSFX from 0x14058bfa0 to 0x14058c066 (198 bytes)
//
// 2 xrefs:
// > SecretLayer5::showSuccessAnimation @ 0x14058bee9
// > ??> @ 0x14092cb58
//
// 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 11:34:29 +0000
//
// Hidden C++ exception states: #wind=3
__int64 SecretLayer5::playWinSFX()
{
__int64 v0; // rcx
_QWORD *v1; // rbx
__int64 v2; // r8
__int64 v3; // r9
int v4; // ecx
_QWORD v6[5]; // [rsp+30h] [rbp-28h] BYREF
void *v7; // [rsp+70h] [rbp+18h]
void *v8; // [rsp+70h] [rbp+18h]
v0 = qword_14090C070;
if ( !qword_14090C070 )
{
v7 = operator new(0x3D0u);
qword_14090C070 = MusicDownloadManager::MusicDownloadManager((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);
v0 = qword_14090C070;
}
v1 = MusicDownloadManager::pathForSFX(v0, v6, 0x51F6u);
v4 = qword_14090BF60;
if ( !qword_14090BF60 )
{
v8 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v4 = qword_14090BF60;
}
return FMODAudioEngine::playEffect(v4, (__int64)v1, v2, v3, 1060320051);
}