//
// sub_E8D3C from 0xe8d3c to 0xe8ddc (160 bytes)
//
// 1 xrefs:
// > sub_E8E78 @ 0xe8ee4
//
// 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_E8D3C(__int64 a1, __int64 a2)
{
__int64 v2; // x19
if ( *(_QWORD *)(*(_QWORD *)a1 + 8888LL) == a2 )
*(_QWORD *)(*(_QWORD *)a1 + 8888LL) = 0;
v2 = *(_QWORD *)(a2 + 40);
if ( v2 && *(_QWORD *)v2 )
{
j_so_AAudioStream_requestStop();
sub_E75E8(*(_QWORD *)v2);
sub_E2D74(*(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000), *(_DWORD **)(v2 + 24));
*(_QWORD *)(v2 + 24) = 0;
*(_QWORD *)v2 = 0;
*(_QWORD *)(v2 + 40) = 0;
*(_DWORD *)(v2 + 8) = 0;
sub_E2D74(*(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000), (_DWORD *)v2);
}
return 0;
}