//
// sub_CBC5C from 0xcbc5c to 0xcbcb4 (88 bytes)
//
// 4 xrefs:
// > sub_56490 @ 0x56570
// > sub_914D0 @ 0x91534
// > sub_BD5E0 @ 0xbd8ac
// > FMOD::DSP::reset @ 0xd3b48
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_CBC5C(__int64 a1)
{
__int64 v1; // x19
__int16 v2; // w8
__int64 result; // x0
__int64 v4; // x0
__int64 v5; // [xsp+8h] [xbp-18h] BYREF
atomic_load((unsigned int *)(a1 + 100));
sub_CD4C4();
if ( (v2 & 0x100) != 0 )
return sub_CBCB4(v1);
result = sub_CD294(*(_QWORD *)(v1 + 168), &v5, 16);
if ( !(_DWORD)result )
{
v4 = sub_CD2F8();
return sub_CD2F0(v4);
}
return result;
}