//
// sub_1004BA01C from 0x1004ba01c to 0x1004ba0a8 (140 bytes)
//
// 1 xrefs:
// > sub_1004B9D08 @ 0x1004b9dcc
//
// 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_1004BA01C(__int64 a1, int a2, _BYTE *a3, __int64 a4, __int64 a5)
{
int v7; // w21
const char *v8; // x1
char v9; // w9
unsigned __int8 *v10; // x8
int v11; // t1
v7 = -2128831035;
if ( a2 )
v8 = "Core Audio input (Voice)";
else
v8 = "Core Audio input";
sub_1004C6BD0(a3, v8, a4);
v9 = *a3;
if ( *a3 )
{
v10 = a3 + 1;
do
{
v7 = 16777619 * (v7 ^ v9);
v11 = *v10++;
v9 = v11;
}
while ( v11 );
}
*(_DWORD *)(a5 + 12) = 0;
*(_QWORD *)(a5 + 4) = 0;
*(_DWORD *)a5 = v7;
return 0;
}