//
// GJBaseGameLayer::resetAudio from 0x140340590 to 0x140340629 (153 bytes)
//
// 5 xrefs:
// > EndLevelLayer::goEdit @ 0x140206677
// > PauseLayer::onEdit @ 0x1404db3fc
// > PlayLayer::resumeAndRestart @ 0x14051a816
// > PlayLayer::onQuit @ 0x14051b250
// > ??> @ 0x14091fd60
//
// 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:30:39 +0000
//
// Hidden C++ exception states: #wind=2
__int64 GJBaseGameLayer::resetAudio()
{
__int64 v0; // rcx
__int64 v1; // rcx
void *v3; // [rsp+30h] [rbp+8h]
void *v4; // [rsp+30h] [rbp+8h]
v0 = qword_14090BF60;
if ( !qword_14090BF60 )
{
v3 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v3);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v0 = qword_14090BF60;
}
FMODAudioEngine::clearAllAudio(v0);
v1 = qword_14090BF60;
if ( !qword_14090BF60 )
{
v4 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v1 = qword_14090BF60;
}
return FMOD::System::update(*(_QWORD *)(v1 + 560));
}