//
// sub_1004B9E7C from 0x1004b9e7c to 0x1004b9ed4 (88 bytes)
//
// 1 xrefs:
// > sub_1004B9D08 @ 0x1004b9d88
//
// 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_1004B9E7C(__int64 a1)
{
__int64 v1; // x19
OpaqueAudioComponentInstance *v2; // x0
if ( a1 )
v1 = a1 - 8;
else
v1 = 0;
v2 = *(OpaqueAudioComponentInstance **)(v1 + 1048);
if ( v2 )
{
if ( AudioUnitUninitialize(v2) || AudioComponentInstanceDispose(*(AudioComponentInstance *)(v1 + 1048)) )
return 49;
*(_QWORD *)(v1 + 1048) = 0;
}
sub_1004B8AAC((int **)(v1 + 1056));
return 0;
}