//
// FMODAudioEngine::resumeSuspendedAudio from 0x3ece10 to 0x3ece74 (100 bytes)
//
// 2 xrefs:
// > FMODAudioEngine::start @ 0x3eceb4
// > AppDelegate::resumeSound @ 0x3f6ef2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:10 +0000
//
void __fastcall FMODAudioEngine::resumeSuspendedAudio(FMOD::ChannelControl **this)
{
unsigned int *v2; // r6
unsigned int *v3; // r5
unsigned int v4; // r1
FMOD::ChannelControl *v5; // r0
int v6; // r2
int v7; // r3
if ( *((_BYTE *)this + 405) && !*((_BYTE *)this + 397) )
FMOD::ChannelControl::setPaused(*(this + 94), 0);
v2 = (unsigned int *)*(this + 103);
v3 = (unsigned int *)*(this + 102);
*((_BYTE *)this + 405) = 0;
while ( v3 != v2 )
{
v4 = *v3++;
v5 = (FMOD::ChannelControl *)FMODAudioEngine::channelForChannelID((FMODAudioEngine *)this, v4);
if ( v5 )
FMOD::ChannelControl::setPaused(v5, 0);
}
v6 = (int)*(this + 102);
while ( 1 )
{
v7 = (int)*(this + 103);
if ( v6 == v7 )
break;
*(this + 103) = (FMOD::ChannelControl *)(v7 - 4);
}
FMODAudioEngine::logLifecycleState((FMODAudioEngine *)this, "resumeSuspendedAudio out");
}