//
// sub_CC454 from 0xcc454 to 0xcc51c (200 bytes)
//
// 2 xrefs:
// > sub_6461C @ 0x647a8
// > FMOD::DSP::getInfo @ 0xd47d0
//
// 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:14:48 +0000
//
__int64 __fastcall sub_CC454(__int64 a1, __int64 a2, _DWORD *a3, _DWORD *a4, _DWORD *a5, _DWORD *a6)
{
void *v11; // x8
__int64 v12; // x8
__int64 v13; // x8
__int64 v14; // x8
__int64 (__fastcall *v15)(__int64, __int64, _DWORD *, _DWORD *); // x8
__int64 result; // x0
if ( a2 )
{
v11 = *(void **)(a1 + 240);
if ( !v11 )
{
v12 = *(_QWORD *)(a1 + 232);
if ( v12 )
v11 = (void *)(v12 + 4);
else
v11 = &unk_2DC93;
}
sub_E3C94(a2, v11, 32);
}
if ( a3 )
{
v13 = *(_QWORD *)(a1 + 232);
if ( v13 )
LODWORD(v13) = *(_DWORD *)(v13 + 36);
*a3 = v13;
}
if ( a4 )
{
v14 = *(_QWORD *)(a1 + 232);
if ( v14 )
LODWORD(v14) = *(unsigned __int16 *)(a1 + 280);
*a4 = v14;
}
if ( a5 )
*a5 = 0;
if ( a6 )
*a6 = 0;
v15 = *(__int64 (__fastcall **)(__int64, __int64, _DWORD *, _DWORD *))(a1 + 288);
if ( !v15 )
return 0;
if ( (*(_BYTE *)(a1 + 282) & 0x20) == 0 )
return 0;
result = v15(a1 + 176, 32, a5, a6);
if ( !(_DWORD)result )
return 0;
return result;
}