//
// sub_1005E0D00 from 0x1005e0d00 to 0x1005e0db4 (180 bytes)
//
// 1 xrefs:
// > sub_1005E0220 @ 0x1005e022c
//
// 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:09:40 +0000
//
__int64 __fastcall sub_1005E0D00(__int64 a1)
{
OpaqueAudioComponentInstance *v2; // x0
int *v4; // x1
int *v5; // x1
v2 = *(OpaqueAudioComponentInstance **)(a1 + 1440);
if ( v2 )
{
if ( AudioOutputUnitStop(v2)
|| AudioUnitUninitialize(*(AudioUnit *)(a1 + 1440))
|| AudioComponentInstanceDispose(*(AudioComponentInstance *)(a1 + 1440)) )
{
return 49;
}
*(_QWORD *)(a1 + 1440) = 0;
}
v4 = *(int **)(a1 + 1448);
if ( v4 )
{
sub_1005D7AD8(*((_QWORD *)off_1009DA5E8 + 54), v4);
*(_QWORD *)(a1 + 1448) = 0;
}
v5 = *(int **)(a1 + 1456);
if ( v5 )
{
sub_1005D7AD8(*((_QWORD *)off_1009DA5E8 + 54), v5);
*(_QWORD *)(a1 + 1456) = 0;
}
return 0;
}