{"type": "func", "start": 5371131200, "end": 5371131643, "name": "GameLevelManager::notificationMask", "pseudocode": "// \n// GameLevelManager::notificationMask from 0x14024f540 to 0x14024f6fb (443 bytes)\n// \n// 5 xrefs:\n// > GameLevelManager::getGJUserInfo @ 0x14023a6c6\n// > GameLevelManager::getNotifications @ 0x14024f3ca\n// > NotificationFilterPopup::init @ 0x1404791b3\n// > NotificationFilterPopup::onClose @ 0x140479e8a\n// > <???> @ 0x14091c454\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:28:41 +0000\n// \n\n// Hidden C++ exception states: #wind=3\n__int64 GameLevelManager::notificationMask()\n{\n  __int64 v0; // rbx\n  cocos2d::CCString *v1; // rax\n  int v2; // edi\n  void *v3; // r8\n  unsigned int v4; // ebx\n  __int64 v5; // rdi\n  void *v7; // [rsp+30h] [rbp-38h]\n  void *v8; // [rsp+30h] [rbp-38h]\n  void *Block[2]; // [rsp+38h] [rbp-30h] BYREF\n  __int64 v10; // [rsp+48h] [rbp-20h]\n  unsigned __int64 v11; // [rsp+50h] [rbp-18h]\n\n  v0 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v7 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v0 = qword_14090BFD0;\n  }\n  *(_OWORD *)Block = 0;\n  v10 = 3;\n  v11 = 15;\n  LODWORD(Block[0]) = 6256231;\n  sub_140044D80(Block, \"0239\", 4u);\n  v1 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v0 + 432), Block);\n  v2 = cocos2d::CCString::intValue(v1);\n  if ( v11 > 0xF )\n  {\n    v3 = Block[0];\n    if ( v11 + 1 >= 0x1000 )\n    {\n      v3 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v3 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v3);\n  }\n  v10 = 0;\n  v11 = 15;\n  LOBYTE(Block[0]) = 0;\n  v4 = 0xFFFF;\n  if ( v2 )\n    v4 = (unsigned __int16)v2;\n  v5 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v8 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v5 = qword_14090BFD0;\n  }\n  if ( (unsigned __int8)GameManager::getGameVariable(v5, \"0218\")\n    || (unsigned __int8)GameManager::getGameVariable(v5, \"0219\") )\n  {\n    return v4 & 0xFFFC;\n  }\n  return v4;\n}", "assembly": "; \n; GameLevelManager::notificationMask from 0x14024f540 to 0x14024f6fb (443 bytes)\n; \n; 5 xrefs:\n; > GameLevelManager::getGJUserInfo @ 0x14023a6c6\n; > GameLevelManager::getNotifications @ 0x14024f3ca\n; > NotificationFilterPopup::init @ 0x1404791b3\n; > NotificationFilterPopup::onClose @ 0x140479e8a\n; > <???> @ 0x14091c454\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:28:41 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14024f540\npush    rdi                                                            ; +0x5, 0x14024f545\nsub     rsp, 60h                                                       ; +0x6, 0x14024f546\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x14024f54a\nxor     rax, rsp                                                       ; +0x11, 0x14024f551\nmov     [rsp+68h+var_10], rax                                          ; +0x14, 0x14024f554\nmov     rbx, cs:qword_14090BFD0                                        ; +0x19, 0x14024f559\ntest    rbx, rbx                                                       ; +0x20, 0x14024f560\njnz     short loc_14024F597                                            ; +0x23, 0x14024f563\nmov     ecx, 6E8h; Size                                                ; +0x25, 0x14024f565\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2a, 0x14024f56a\nmov     [rsp+68h+var_38], rax                                          ; +0x2f, 0x14024f56f\nmov     rcx, rax                                                       ; +0x34, 0x14024f574\ncall    GameManager__GameManager                                       ; +0x37, 0x14024f577\nnop                                                                    ; +0x3c, 0x14024f57c\nmov     cs:qword_14090BFD0, rax                                        ; +0x3d, 0x14024f57d\nmov     rcx, [rax]                                                     ; +0x44, 0x14024f584\nmov     rdx, [rcx+48h]                                                 ; +0x47, 0x14024f587\nmov     rcx, rax                                                       ; +0x4b, 0x14024f58b\ncall    rdx                                                            ; +0x4e, 0x14024f58e\nmov     rbx, cs:qword_14090BFD0                                        ; +0x50, 0x14024f590\nxorps   xmm0, xmm0                                                     ; +0x57, 0x14024f597\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x5a, 0x14024f59a\nmov     [rsp+68h+var_20], 3                                            ; +0x5f, 0x14024f59f\nmov     [rsp+68h+var_18], 0Fh                                          ; +0x68, 0x14024f5a8\nmov     eax, cs:dword_140757618                                        ; +0x71, 0x14024f5b1\nmov     word ptr [rsp+68h+Block], ax                                   ; +0x77, 0x14024f5b7\nmovzx   eax, byte ptr cs:dword_140757618+2                             ; +0x7c, 0x14024f5bc\nmov     byte ptr [rsp+68h+Block+2], al                                 ; +0x83, 0x14024f5c3\nmov     byte ptr [rsp+68h+Block+3], 0                                  ; +0x87, 0x14024f5c7\nmov     r8d, 4; Size                                                   ; +0x8c, 0x14024f5cc\nlea     rdx, a0239; \"0239\"                                             ; +0x92, 0x14024f5d2\nlea     rcx, [rsp+68h+Block]; Src                                      ; +0x99, 0x14024f5d9\ncall    sub_140044D80                                                  ; +0x9e, 0x14024f5de\nlea     rdx, [rsp+68h+Block]                                           ; +0xa3, 0x14024f5e3\nmov     rcx, [rbx+1B0h]                                                ; +0xa8, 0x14024f5e8\ncall    cs:?valueForKey@CCDictionary@cocos2d@@QEAAPEBVCCString@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::valueForKey(std::string const &) ; +0xaf, 0x14024f5ef\nmov     rcx, rax                                                       ; +0xb5, 0x14024f5f5\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0xb8, 0x14024f5f8\nmov     edi, eax                                                       ; +0xbe, 0x14024f5fe\nmov     rdx, [rsp+68h+var_18]                                          ; +0xc0, 0x14024f600\ncmp     rdx, 0Fh                                                       ; +0xc5, 0x14024f605\njbe     short loc_14024F656                                            ; +0xc9, 0x14024f609\ninc     rdx                                                            ; +0xcb, 0x14024f60b\nmov     r8, [rsp+68h+Block]                                            ; +0xce, 0x14024f60e\nmov     rcx, r8                                                        ; +0xd3, 0x14024f613\ncmp     rdx, 1000h                                                     ; +0xd6, 0x14024f616\njb      short loc_14024F64E                                            ; +0xdd, 0x14024f61d\nadd     rdx, 27h ; '''                                                 ; +0xdf, 0x14024f61f\nmov     r8, [r8-8]                                                     ; +0xe3, 0x14024f623\nsub     rcx, r8                                                        ; +0xe7, 0x14024f627\nsub     rcx, 8                                                         ; +0xea, 0x14024f62a\ncmp     rcx, 1Fh                                                       ; +0xee, 0x14024f62e\njbe     short loc_14024F64E                                            ; +0xf2, 0x14024f632\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xf4, 0x14024f634\nxor     r9d, r9d; LineNo                                               ; +0xfd, 0x14024f63d\nxor     r8d, r8d; FileName                                             ; +0x100, 0x14024f640\nxor     edx, edx; FunctionName                                         ; +0x103, 0x14024f643\nxor     ecx, ecx; Expression                                           ; +0x105, 0x14024f645\ncall    cs:_invoke_watson                                              ; +0x107, 0x14024f647\nalign 2                                                                ; +0x10d, 0x14024f64d\nmov     rcx, r8; Block                                                 ; +0x10e, 0x14024f64e\ncall    j_j_free                                                       ; +0x111, 0x14024f651\nmov     [rsp+68h+var_20], 0                                            ; +0x116, 0x14024f656\nmov     [rsp+68h+var_18], 0Fh                                          ; +0x11f, 0x14024f65f\nmov     byte ptr [rsp+68h+Block], 0                                    ; +0x128, 0x14024f668\nmovzx   eax, di                                                        ; +0x12d, 0x14024f66d\nmov     ebx, 0FFFFh                                                    ; +0x130, 0x14024f670\ntest    edi, edi                                                       ; +0x135, 0x14024f675\ncmovnz  ebx, eax                                                       ; +0x137, 0x14024f677\nmov     rdi, cs:qword_14090BFD0                                        ; +0x13a, 0x14024f67a\ntest    rdi, rdi                                                       ; +0x141, 0x14024f681\njnz     short loc_14024F6B8                                            ; +0x144, 0x14024f684\nmov     ecx, 6E8h; Size                                                ; +0x146, 0x14024f686\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x14b, 0x14024f68b\nmov     [rsp+68h+var_38], rax                                          ; +0x150, 0x14024f690\nmov     rcx, rax                                                       ; +0x155, 0x14024f695\ncall    GameManager__GameManager                                       ; +0x158, 0x14024f698\nnop                                                                    ; +0x15d, 0x14024f69d\nmov     cs:qword_14090BFD0, rax                                        ; +0x15e, 0x14024f69e\nmov     rcx, [rax]                                                     ; +0x165, 0x14024f6a5\nmov     rdx, [rcx+48h]                                                 ; +0x168, 0x14024f6a8\nmov     rcx, rax                                                       ; +0x16c, 0x14024f6ac\ncall    rdx                                                            ; +0x16f, 0x14024f6af\nmov     rdi, cs:qword_14090BFD0                                        ; +0x171, 0x14024f6b1\nlea     rdx, a0218; \"0218\"                                             ; +0x178, 0x14024f6b8\nmov     rcx, rdi                                                       ; +0x17f, 0x14024f6bf\ncall    GameManager__getGameVariable                                   ; +0x182, 0x14024f6c2\ntest    al, al                                                         ; +0x187, 0x14024f6c7\njnz     short loc_14024F6DE                                            ; +0x189, 0x14024f6c9\nlea     rdx, a0219; \"0219\"                                             ; +0x18b, 0x14024f6cb\nmov     rcx, rdi                                                       ; +0x192, 0x14024f6d2\ncall    GameManager__getGameVariable                                   ; +0x195, 0x14024f6d5\ntest    al, al                                                         ; +0x19a, 0x14024f6da\njz      short loc_14024F6E1                                            ; +0x19c, 0x14024f6dc\nand     ebx, 0FFFFFFFCh                                                ; +0x19e, 0x14024f6de\nmov     eax, ebx                                                       ; +0x1a1, 0x14024f6e1\nmov     rcx, [rsp+68h+var_10]                                          ; +0x1a3, 0x14024f6e3\nxor     rcx, rsp; StackCookie                                          ; +0x1a8, 0x14024f6e8\ncall    __security_check_cookie                                        ; +0x1ab, 0x14024f6eb\nmov     rbx, [rsp+68h+arg_0]                                           ; +0x1b0, 0x14024f6f0\nadd     rsp, 60h                                                       ; +0x1b5, 0x14024f6f5\npop     rdi                                                            ; +0x1b9, 0x14024f6f9\nretn                                                                   ; +0x1ba, 0x14024f6fa", "xrefs": ["GameLevelManager::getGJUserInfo @ 0x14023a6c6", "GameLevelManager::getNotifications @ 0x14024f3ca", "NotificationFilterPopup::init @ 0x1404791b3", "NotificationFilterPopup::onClose @ 0x140479e8a", "<???> @ 0x14091c454"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}