//
// SecretRewardsLayer::fadeInOutMusic from 0x1403d7a30 to 0x1403d7a97 (103 bytes)
//
// 2 xrefs:
// > SecretRewardsLayer::onGoldChest @ 0x1403d774e
// > ??> @ 0x1406d7dc0
//
// 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=1
void SecretRewardsLayer::fadeInOutMusic(SecretRewardsLayer *a1)
{
int v1; // r8d
FMODAudioEngine *v2; // rcx
FMODAudioEngine *v3; // [rsp+48h] [rbp+10h]
v2 = (FMODAudioEngine *)qword_1406C2E88;
if ( !qword_1406C2E88 )
{
v3 = (FMODAudioEngine *)operator new(0x888u);
qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v3);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);
v2 = (FMODAudioEngine *)qword_1406C2E88;
}
FMODAudioEngine::fadeMusic(v2, 2.0, v1, 0.2, 1.0);
}