//
// GameLevelManager::notificationMask from 0x14024f540 to 0x14024f6fb (443 bytes)
//
// 5 xrefs:
// > GameLevelManager::getGJUserInfo @ 0x14023a6c6
// > GameLevelManager::getNotifications @ 0x14024f3ca
// > NotificationFilterPopup::init @ 0x1404791b3
// > NotificationFilterPopup::onClose @ 0x140479e8a
// > ??> @ 0x14091c454
//
// This function is hookable on this platform (idp: pc, 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:28:41 +0000
//
// Hidden C++ exception states: #wind=3
__int64 GameLevelManager::notificationMask()
{
__int64 v0; // rbx
cocos2d::CCString *v1; // rax
int v2; // edi
void *v3; // r8
unsigned int v4; // ebx
__int64 v5; // rdi
void *v7; // [rsp+30h] [rbp-38h]
void *v8; // [rsp+30h] [rbp-38h]
void *Block[2]; // [rsp+38h] [rbp-30h] BYREF
__int64 v10; // [rsp+48h] [rbp-20h]
unsigned __int64 v11; // [rsp+50h] [rbp-18h]
v0 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v7 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v0 = qword_14090BFD0;
}
*(_OWORD *)Block = 0;
v10 = 3;
v11 = 15;
LODWORD(Block[0]) = 6256231;
sub_140044D80(Block, "0239", 4u);
v1 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v0 + 432), Block);
v2 = cocos2d::CCString::intValue(v1);
if ( v11 > 0xF )
{
v3 = Block[0];
if ( v11 + 1 >= 0x1000 )
{
v3 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v3 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v3);
}
v10 = 0;
v11 = 15;
LOBYTE(Block[0]) = 0;
v4 = 0xFFFF;
if ( v2 )
v4 = (unsigned __int16)v2;
v5 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v8 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v5 = qword_14090BFD0;
}
if ( (unsigned __int8)GameManager::getGameVariable(v5, "0218")
|| (unsigned __int8)GameManager::getGameVariable(v5, "0219") )
{
return v4 & 0xFFFC;
}
return v4;
}