//
// sub_6001F0 from 0x6001f0 to 0x600214 (36 bytes)
//
// 2 xrefs:
// > pugi::xpath_variable_set::find @ 0x60a0bc
// > pugi::xpath_variable_set::add @ 0x60a0ec
//
// 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 int __fastcall sub_6001F0(int a1)
{
int v1; // r0
unsigned int i; // r3
int v3; // r2
int v4; // t1
v1 = a1 - 1;
for ( i = 0; ; i = (1025 * (i + v3)) ^ ((1025 * (i + v3)) >> 6) )
{
v4 = *(unsigned __int8 *)++v1;
v3 = v4;
if ( !v4 )
break;
}
return 32769 * ((9 * i) ^ ((9 * i) >> 11));
}