//
// GJBaseGameLayer::resumeAudio from 0x140340480 to 0x14034058a (266 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::update @ 0x1403407a1
// > LevelEditorLayer::updateEditor @ 0x1403f5fe2
// > LevelEditorLayer::onResumePlaytest @ 0x1403ffea3
// > ??> @ 0x14091fd48
// > ??> @ 0x14091fd54
//
// 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=3
__int64 GJBaseGameLayer::resumeAudio()
{
__int64 v0; // rbx
__int64 v1; // rcx
void *v3; // [rsp+30h] [rbp+8h]
void *v4; // [rsp+30h] [rbp+8h]
void *v5; // [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;
}
if ( *(_BYTE *)(v0 + 617) )
{
*(_BYTE *)(v0 + 617) = 0;
FMOD::ChannelControl::setPaused(*(_QWORD *)(v0 + 552), 0);
FMOD::ChannelControl::setPaused(*(_QWORD *)(v0 + 584), 0);
v0 = qword_14090BF60;
}
if ( !v0 )
{
v4 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v0 = qword_14090BF60;
}
FMODAudioEngine::resumeAllMusic((_QWORD *)v0);
v1 = qword_14090BF60;
if ( !qword_14090BF60 )
{
v5 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v1 = qword_14090BF60;
}
return FMOD::System::update(*(_QWORD *)(v1 + 560));
}