//
// sub_B99D90 from 0xb99d90 to 0xb99dc0 (48 bytes)
//
// 4 xrefs:
// > sub_B71138 @ 0xb71180
// > sub_B71B20 @ 0xb71b34
// > sub_BAF6C4 @ 0xbaf6d4
// > ??> @ 0x122d510
//
// 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
//
unsigned __int64 __fastcall sub_B99D90(unsigned __int8 *a1, __int64 a2, unsigned __int64 a3)
{
unsigned __int8 *v3; // x1
unsigned __int64 v4; // x3
unsigned int v5; // t1
v3 = &a1[a2];
v4 = 5381;
if ( a1 < v3 )
{
do
{
v5 = *a1++;
v4 = (33 * v4) ^ v5;
}
while ( a1 != v3 );
}
return v4 % a3;
}