//
// FMODAudioEngine::pauseAllMusic from 0x6d3760 to 0x6d37c0 (96 bytes)
//
// 6 xrefs:
// > PlayLayer::destroyPlayer @ 0x6ff7ec
// > PlayLayer::loadFromCheckpoint @ 0x70fa10
// > PlayLayer::resetLevel @ 0x711b40
// > GameManager::videoAdShowed @ 0x715bbc
// > GJBaseGameLayer::pauseAudio @ 0x9a87ac
// > ??> @ 0x42df0
//
// 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 12:51:28 +0000
//
__int64 __fastcall FMODAudioEngine::pauseAllMusic(__int64 this, unsigned __int8 a2)
{
int v2; // w20
FMODAudioEngine *v3; // x21
__int64 *i; // x19
v2 = a2;
v3 = (FMODAudioEngine *)this;
for ( i = *(__int64 **)(this + 336); i; i = (__int64 *)*i )
{
if ( !v2 )
{
this = *((unsigned __int8 *)i + 65);
if ( *((_BYTE *)i + 65) )
continue;
}
this = FMODAudioEngine::channelForChannelID(v3, *((_DWORD *)i + 6));
if ( this )
this = FMOD::ChannelControl::setPaused((FMOD::ChannelControl *)this, 1);
}
return this;
}