//
// std::__ndk1::collate::do_hash from 0xf50448 to 0xf5047c (52 bytes)
//
// 3 xrefs:
// > ??> @ 0xbba08
// > ??> @ 0x1533450
// > ??> @ 0x1534180
//
// This function is hookable on this platform (idp: arm, 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 13:13:17 +0000
//
unsigned __int64 __fastcall std::collate::do_hash(__int64 a1, unsigned __int8 *a2, unsigned __int8 *a3)
{
unsigned __int64 result; // x0
unsigned int v4; // t1
if ( a2 == a3 )
return 0;
result = 0;
do
{
v4 = *a2++;
result = ((v4 + 16 * result) & 0xF000000000000000LL | (((v4 + 16 * result) & 0xF000000000000000LL) >> 56))
^ (v4 + 16 * result);
}
while ( a3 != a2 );
return result;
}