//
// sub_1000AE894 from 0x1000ae894 to 0x1000ae924 (144 bytes)
//
// 2 xrefs:
// > sub_1000AE69C @ 0x1000ae760
// > sub_1000B2924 @ 0x1000b2a3c
//
// 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:37 +0000
//
bool __fastcall sub_1000AE894(__int64 a1, _DWORD *a2)
{
__int64 v3; // x0
int v4; // w9
unsigned int v5; // w8
v3 = GJAccountManager::sharedState(a1);
v4 = *(_DWORD *)(v3 + 352) - *(_DWORD *)(v3 + 356);
if ( v4 < 1 )
return 0;
v5 = a2[437];
if ( (int)v5 < 1 )
return 0;
if ( v5 <= 0x3E7 )
return (a2[82] - 1640531535 * v4 - a2[83]) % 0x3E8u < v5;
return 1;
}