//
// FMODAudioEngine::resumeSuspendedAudio from 0x6d33b4 to 0x6d3460 (172 bytes)
//
// 3 xrefs:
// > FMODAudioEngine::start @ 0x6d351c
// > AppDelegate::resumeSound @ 0x6e6ca4
// > ??> @ 0x443f8
//
// 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
//
void __fastcall FMODAudioEngine::resumeSuspendedAudio(FMOD::ChannelControl **this)
{
int *v2; // x19
int *v3; // x21
int v4; // w1
FMOD::ChannelControl *v5; // x0
__int64 v6; // x2
__int64 v7; // x1
if ( *((_BYTE *)this + 553) && !*((_BYTE *)this + 545) )
FMOD::ChannelControl::setPaused(*(this + 64), 0);
v2 = (int *)*(this + 70);
v3 = (int *)*(this + 71);
*((_BYTE *)this + 553) = 0;
if ( v2 != v3 )
{
do
{
v4 = *v2++;
v5 = (FMOD::ChannelControl *)FMODAudioEngine::channelForChannelID((FMODAudioEngine *)this, v4);
if ( v5 )
FMOD::ChannelControl::setPaused(v5, 0);
}
while ( v3 != v2 );
v6 = (__int64)*(this + 70);
v7 = (__int64)*(this + 71);
if ( v7 != v6 )
*(this + 71) = (FMOD::ChannelControl *)(v7 + 4 * ~((unsigned __int64)(v7 - 4 - v6) >> 2));
}
FMODAudioEngine::logLifecycleState((FMODAudioEngine *)this, "resumeSuspendedAudio out");
}