//
// sub_1002E6378 from 0x1002e6378 to 0x1002e63e4 (108 bytes)
//
// 1 xrefs:
// > sub_1002E62F0 @ 0x1002e6374
//
// 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:02:50 +0000
//
__int64 __fastcall sub_1002E6378(__int64 a1)
{
_BYTE *v2; // x8
__int64 v3; // x0
__int64 v4; // x1
__int64 v6; // x0
v2 = *(_BYTE **)(a1 + 664);
if ( (v2[393] & 1) != 0
|| (v3 = GJAccountManager::sharedState(a1),
v2 = *(_BYTE **)(a1 + 664),
*(_DWORD *)(v3 + 352) <= *(_DWORD *)(v3 + 356))
|| (v2[395] & 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 + 688), v4, v2 + 400, v2 + 401);
}