//
// sub_1800A4EE0 from 0x1800a4ee0 to 0x1800a4fba (218 bytes)
//
// 2 xrefs:
// > sub_1800A6260 @ 0x1800a62a7
// > ??> @ 0x1801fb70c
//
// This function is hookable on this platform (idp: pc, 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 10:53:53 +0000
//
__int64 __fastcall sub_1800A4EE0(__int64 *a1, int a2, CHAR *lpMultiByteStr, int a4, _OWORD *a5, _DWORD *a6, _DWORD *a7)
{
__int64 v7; // rdi
__int64 v8; // rbx
int v9; // ecx
_WORD *v10; // r8
int v11; // eax
__int16 v12; // dx
int v13; // ecx
int v14; // ecx
v7 = *a1;
v8 = a2;
if ( lpMultiByteStr && a4 > 0 )
WideCharToMultiByte(0xFDE9u, 0, *(LPCWCH *)(v7 + 16 * (a2 + 12LL)), -1, lpMultiByteStr, a4 - 1, nullptr, nullptr);
if ( a5 )
{
v9 = -2128831035;
v10 = *(_WORD **)(v7 + 16 * v8 + 184);
LOWORD(v11) = *v10;
if ( *v10 )
{
HIBYTE(v12) = HIBYTE(*v10);
do
{
++v10;
v13 = 16777619 * (v9 ^ (char)v11);
v11 = SHIBYTE(v12);
v12 = *v10;
v14 = v11 ^ v13;
LOBYTE(v11) = *v10;
v9 = 16777619 * v14;
}
while ( *v10 );
}
*a5 = 0;
*(_DWORD *)a5 = v9;
}
*a6 = 48000;
*a7 = 8;
return 0;
}