//
// sub_10056C400 from 0x10056c400 to 0x10056c430 (48 bytes)
//
// 3 xrefs:
// > sub_1005494C4 @ 0x1005494ec
// > sub_100549DC8 @ 0x100549dc8
// > sub_10058108C @ 0x10058108c
//
// 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_10056C400(char *a1, __int64 a2, unsigned __int64 a3)
{
unsigned __int64 v3; // x8
char *v4; // x9
__int64 v5; // t1
v3 = 5381;
if ( a2 >= 1 )
{
v4 = &a1[a2];
do
{
v5 = *a1++;
v3 = v5 ^ (33 * v3);
}
while ( a1 < v4 );
}
return v3 % a3;
}