//
// sub_1000AF628 from 0x1000af628 to 0x1000af6a4 (124 bytes)
//
// 2 xrefs:
// > sub_1000AEF50 @ 0x1000af188
// > sub_1000AF778 @ 0x1000af85c
//
// 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 10:58:38 +0000
//
__int64 __fastcall sub_1000AF628(unsigned __int8 *a1)
{
__int64 v2; // x0
int v3; // w8
__int64 v4; // x9
int v5; // w10
unsigned __int8 *v6; // x10
int v7; // t1
v2 = GJAccountManager::sharedState(a1);
v3 = -1640531535 * (*(_DWORD *)(v2 + 352) - *(_DWORD *)(v2 + 356));
v4 = a1[23];
v5 = (char)v4;
if ( (v4 & 0x80u) != 0LL )
v4 = *((_QWORD *)a1 + 1);
if ( v4 )
{
if ( v5 >= 0 )
v6 = a1;
else
v6 = *(unsigned __int8 **)a1;
do
{
v7 = *v6++;
v3 = 16777619 * (v3 ^ v7);
--v4;
}
while ( v4 );
}
return v3 & 0x7FFFFFFF;
}