//
// sub_1000B3998 from 0x1000b3998 to 0x1000b3a44 (172 bytes)
//
// 1 xrefs:
// > sub_1000B3698 @ 0x1000b36c8
//
// 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_1000B3998(_QWORD *a1, __int64 a2)
{
__int64 v2; // x10
unsigned __int64 v3; // x8
__int64 v4; // x13
unsigned __int64 v5; // x8
unsigned __int64 v6; // x9
v2 = a1[1];
v3 = 0xB492B66FBE98F273LL * *a1;
v4 = __ROR8__(0x9AE16A3B2F90404FLL * *(_QWORD *)((char *)a1 + a2 - 8), 30) + __ROR8__(v3 - v2, 43);
v5 = v3 + a2 + __ROR8__(v2 ^ 0xC949D7C7509E6557LL, 20) - 0x9AE16A3B2F90404FLL * *(_QWORD *)((char *)a1 + a2 - 8);
v6 = 0x9DDFEA08EB382D69LL * (v5 ^ (v4 - 0x3C5A37A36834CED9LL * *(_QWORD *)((char *)a1 + a2 - 16)));
return 0x9DDFEA08EB382D69LL
* ((0x9DDFEA08EB382D69LL * (v5 ^ (v6 >> 47) ^ v6)) ^ ((0x9DDFEA08EB382D69LL * (v5 ^ (v6 >> 47) ^ v6)) >> 47));
}