//
// sub_1003CAE00 from 0x1003cae00 to 0x1003caef2 (242 bytes)
//
// 1 xrefs:
// > sub_1003CADF0 @ 0x1003cadf5
//
// This function is hookable on this platform (idp: pc, 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:29:36 +0000
//
__int64 __fastcall sub_1003CAE00(__int64 a1)
{
unsigned int v1; // ebx
int v2; // eax
unsigned int *v3; // r15
unsigned int *v4; // r12
FMOD::ChannelControl *v5; // rax
LOBYTE(v1) = 1;
if ( *(_BYTE *)(a1 + 552) == 1 )
{
v2 = FMOD::System::mixerResume(*(FMOD::System **)(a1 + 488));
*(_DWORD *)(a1 + 536) = v2;
if ( v2 )
{
return 0;
}
else
{
*(_BYTE *)(a1 + 552) = 0;
FMOD::System::update(*(FMOD::System **)(a1 + 488));
if ( (unsigned __int8)PlatformToolbox::shouldResumeSound() )
{
if ( *(_BYTE *)(a1 + 553) == 1 && !*(_BYTE *)(a1 + 545) )
FMOD::ChannelControl::setPaused(*(FMOD::ChannelControl **)(a1 + 512), 0);
*(_BYTE *)(a1 + 553) = 0;
v3 = *(unsigned int **)(a1 + 560);
v4 = *(unsigned int **)(a1 + 568);
if ( v3 != v4 )
{
do
{
v5 = (FMOD::ChannelControl *)FMODAudioEngine::channelForChannelID(a1, *v3);
if ( v5 )
FMOD::ChannelControl::setPaused(v5, 0);
++v3;
}
while ( v3 != v4 );
v3 = *(unsigned int **)(a1 + 560);
}
*(_QWORD *)(a1 + 568) = v3;
}
(*(void (__fastcall **)(__int64, double))(*(_QWORD *)a1 + 40LL))(a1, 0.0);
cocos2d::CCNode::resumeSchedulerAndActions(a1);
}
}
return v1;
}