//
// FMODAudioEngine::pauseAllMusic from 0x1001b9ccc to 0x1001b9d28 (92 bytes)
//
// 4 xrefs:
// > PlayLayer::destroyPlayer @ 0x100147f98
// > PlayLayer::loadFromCheckpoint @ 0x10014a2f0
// > PlayLayer::resetLevel @ 0x10014b620
// > GJBaseGameLayer::pauseAudio @ 0x10029a5d0
//
// This function is hookable on this platform (idp: arm, 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:00:11 +0000
//
__int64 *__fastcall FMODAudioEngine::pauseAllMusic(__int64 *result, char a2)
{
__int64 v2; // x21
__int64 v4; // x20
v2 = result[42];
if ( v2 )
{
v4 = (__int64)result;
do
{
if ( (a2 & 1) != 0 || (*(_BYTE *)(v2 + 65) & 1) == 0 )
{
result = FMODAudioEngine::channelForChannelID(v4, *(_DWORD *)(v2 + 24));
if ( result )
result = (__int64 *)FMOD::ChannelControl::setPaused(result, 1);
}
v2 = *(_QWORD *)v2;
}
while ( v2 );
}
return result;
}