//
// sub_1000BE964 from 0x1000be964 to 0x1000be9b0 (76 bytes)
//
// 4 xrefs:
// > GameLevelManager::getGJUserInfo @ 0x1000be7f0
// > sub_1000C713C @ 0x1000c71a4
// > sub_10053BF58 @ 0x10053bfb8
// > NotificationFilterPopup::onClose @ 0x10053c72c
//
// 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:46 +0000
//
__int64 __fastcall sub_1000BE964(__int64 a1)
{
__int64 v1; // x0
__int64 IntGameVariable; // x0
unsigned int v3; // w19
__int64 v4; // x0
v1 = GameManager::sharedState(a1);
IntGameVariable = GameManager::getIntGameVariable(v1, "0239");
if ( (_DWORD)IntGameVariable )
v3 = (unsigned __int16)IntGameVariable;
else
v3 = 0xFFFF;
v4 = GameManager::sharedState(IntGameVariable);
if ( (unsigned int)GameManager::safeModeEnabled(v4) )
return v3 & 0xFFFC;
else
return v3;
}