//
// FMODAudioEngine::start from 0x6d3460 to 0x6d3524 (196 bytes)
//
// 2 xrefs:
// > FMODAudioEngine::resumeAudio @ 0x6d3524
// > ??> @ 0x7af38
//
// 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::start(FMODAudioEngine *this)
{
unsigned int v1; // w20
FMOD::System *v4; // x0
PlatformToolbox *v5; // x0
v1 = *((unsigned __int8 *)this + 552);
if ( !*((_BYTE *)this + 552) )
return 1;
*((_DWORD *)this + 134) = FMOD::System::mixerResume(*((FMOD::System **)this + 61));
ERRCHECK_fn();
if ( *((_DWORD *)this + 134) )
return 0;
v4 = *((FMOD::System **)this + 61);
*((_BYTE *)this + 552) = 0;
v5 = (PlatformToolbox *)FMOD::System::update(v4);
if ( PlatformToolbox::shouldResumeSound(v5) )
FMODAudioEngine::resumeSuspendedAudio((FMOD::ChannelControl **)this);
(*(void (__fastcall **)(FMODAudioEngine *, float))(*(_QWORD *)this + 40LL))(this, 0.0);
cocos2d::CCNode::resumeSchedulerAndActions(this);
FMODAudioEngine::logLifecycleState(this, "start out");
return v1;
}