//
// sub_1004BA4FC from 0x1004ba4fc to 0x1004ba54c (80 bytes)
//
// 0 xrefs:
//
// 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_1004BA4FC(__int64 a1)
{
OpaqueAudioComponentInstance *v2; // x0
v2 = *(OpaqueAudioComponentInstance **)(a1 + 1048);
if ( v2 )
{
if ( AudioUnitUninitialize(v2) || AudioComponentInstanceDispose(*(AudioComponentInstance *)(a1 + 1048)) )
return 49;
*(_QWORD *)(a1 + 1048) = 0;
}
sub_1004B8AAC((int **)(a1 + 1056));
return 0;
}