//
// sub_B4A53C from 0xb4a53c to 0xb4a57c (64 bytes)
//
// 2 xrefs:
// > pugi::xpath_variable_set::find @ 0xb639b8
// > pugi::xpath_variable_set::add @ 0xb63a2c
//
// 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_B4A53C(_BYTE *a1)
{
int v1; // w2
unsigned int v2; // w1
int v3; // w1
int v4; // t1
v1 = (unsigned __int8)*a1;
if ( !*a1 )
return 0;
v2 = 0;
do
{
v3 = v2 + v1;
v4 = (unsigned __int8)*++a1;
v1 = v4;
v2 = (1025 * v3) ^ ((unsigned int)(1025 * v3) >> 6);
}
while ( v4 );
return 32769 * ((9 * v2) ^ ((9 * v2) >> 11));
}