//
// AppDelegate::resumeSound from 0x1400832c0 to 0x1400833bf (255 bytes)
//
// 2 xrefs:
// > FMODAudioEngine::start @ 0x1400552e8
// > ??> @ 0x1406c6a98
//
// 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=4
void AppDelegate::resumeSound(AppDelegate *a1)
{
GameManager *v1; // rcx
FMODAudioEngine *v2; // rcx
__int64 v3; // rcx
void *v4; // [rsp+30h] [rbp+8h]
FMODAudioEngine *v5; // [rsp+30h] [rbp+8h]
FMODAudioEngine *v6; // [rsp+30h] [rbp+8h]
if ( !AppDelegate::musicTest(a1) )
{
v1 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v4 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00(v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v1 = (GameManager *)qword_1406C2ED8;
}
if ( v1->m_playLayer || !GameManager::getGameVariable(v1, "0122") )
{
v2 = (FMODAudioEngine *)qword_1406C2E88;
if ( !qword_1406C2E88 )
{
v5 = (FMODAudioEngine *)operator new(0x888u);
qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);
v2 = (FMODAudioEngine *)qword_1406C2E88;
}
FMODAudioEngine::resumeAllMusic(v2);
}
v3 = qword_1406C2E88;
if ( !qword_1406C2E88 )
{
v6 = (FMODAudioEngine *)operator new(0x888u);
qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);
v3 = qword_1406C2E88;
}
FMOD::ChannelControl::setPaused(*(FMOD::ChannelControl **)(v3 + 584), 0);
}
}