//
// sub_100314168 from 0x100314168 to 0x1003141d4 (108 bytes)
//
// 2 xrefs:
// > sub_1003140A0 @ 0x100314124
// > sub_100315750 @ 0x1003157a4
//
// 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 11:03:14 +0000
//
__int64 __fastcall sub_100314168(__int64 a1)
{
_BYTE *v2; // x8
__int64 v3; // x0
__int64 v4; // x1
__int64 v6; // x0
v2 = *(_BYTE **)(a1 + 664);
if ( (v2[616] & 1) != 0
|| (v3 = GJAccountManager::sharedState(a1),
v2 = *(_BYTE **)(a1 + 664),
*(_DWORD *)(v3 + 352) <= *(_DWORD *)(v3 + 356))
|| (v2[785] & 1) != 0 )
{
v4 = 0;
}
else
{
v6 = GameManager::sharedState(v3);
v4 = (unsigned int)GameManager::safeModeEnabled(v6) ^ 1;
v2 = *(_BYTE **)(a1 + 664);
}
return sub_100049408((_QWORD *)(a1 + 696), v4, v2 + 618, v2 + 619);
}