//
// sub_1001B5628 from 0x1001b5628 to 0x1001b56ac (132 bytes)
//
// 1 xrefs:
// > FMODAudioEngine::start @ 0x1001b55f8
//
// 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 11:00:09 +0000
//
__int64 __fastcall sub_1001B5628(__int64 result)
{
__int64 v1; // x19
unsigned int *v2; // x20
unsigned int *v3; // x21
v1 = result;
if ( *(_BYTE *)(result + 553) == 1 && (*(_BYTE *)(result + 545) & 1) == 0 )
result = FMOD::ChannelControl::setPaused(*(_QWORD *)(result + 512), 0);
*(_BYTE *)(v1 + 553) = 0;
v2 = *(unsigned int **)(v1 + 560);
v3 = *(unsigned int **)(v1 + 568);
if ( v2 != v3 )
{
do
{
result = FMODAudioEngine::channelForChannelID(v1, *v2);
if ( result )
result = FMOD::ChannelControl::setPaused(result, 0);
++v2;
}
while ( v2 != v3 );
v2 = *(unsigned int **)(v1 + 560);
}
*(_QWORD *)(v1 + 568) = v2;
return result;
}