//
// sub_1003CAF00 from 0x1003caf00 to 0x1003caf8e (142 bytes)
//
// 1 xrefs:
// > AppDelegate::resumeSound @ 0x10073bc3d
//
// 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
//
FMOD::ChannelControl *__fastcall sub_1003CAF00(__int64 a1)
{
FMOD::ChannelControl *result; // rax
unsigned int *v2; // r14
unsigned int *v3; // r15
if ( *(_BYTE *)(a1 + 553) == 1 && !*(_BYTE *)(a1 + 545) )
result = (FMOD::ChannelControl *)FMOD::ChannelControl::setPaused(*(FMOD::ChannelControl **)(a1 + 512), 0);
*(_BYTE *)(a1 + 553) = 0;
v2 = *(unsigned int **)(a1 + 560);
v3 = *(unsigned int **)(a1 + 568);
if ( v2 != v3 )
{
do
{
result = (FMOD::ChannelControl *)FMODAudioEngine::channelForChannelID(a1, *v2);
if ( result )
result = (FMOD::ChannelControl *)FMOD::ChannelControl::setPaused(result, 0);
++v2;
}
while ( v2 != v3 );
v2 = *(unsigned int **)(a1 + 560);
}
*(_QWORD *)(a1 + 568) = v2;
return result;
}