{"type": "func", "start": 5373401696, "end": 5373402002, "name": "NotificationFilterPopup::savedMask", "pseudocode": "// \n// NotificationFilterPopup::savedMask from 0x140479a60 to 0x140479b92 (306 bytes)\n// \n// 3 xrefs:\n// > NotificationFilterPopup::init @ 0x1404792fb\n// > NotificationFilterPopup::toggleSource @ 0x140479bf0\n// > <???> @ 0x140928574\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:32:42 +0000\n// \n\n__int64 NotificationFilterPopup::savedMask()\n{\n  __int64 v0; // rbx\n  cocos2d::CCString *v1; // rax\n  int v2; // ebx\n  void *v3; // r8\n  __int64 result; // rax\n  void *v5; // [rsp+30h] [rbp-38h]\n  void *Block[2]; // [rsp+38h] [rbp-30h] BYREF\n  __int64 v7; // [rsp+48h] [rbp-20h]\n  unsigned __int64 v8; // [rsp+50h] [rbp-18h]\n\n  v0 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v5 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v0 = qword_14090BFD0;\n  }\n  *(_OWORD *)Block = 0;\n  v7 = 3;\n  v8 = 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 ( v8 > 0xF )\n  {\n    v3 = Block[0];\n    if ( v8 + 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  result = 0xFFFF;\n  if ( v2 )\n    return (unsigned __int16)v2;\n  return result;\n}", "assembly": "; \n; NotificationFilterPopup::savedMask from 0x140479a60 to 0x140479b92 (306 bytes)\n; \n; 3 xrefs:\n; > NotificationFilterPopup::init @ 0x1404792fb\n; > NotificationFilterPopup::toggleSource @ 0x140479bf0\n; > <???> @ 0x140928574\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:32:42 +0000\n; \npush    rbx                                                            ; +0x0, 0x140479a60\nsub     rsp, 60h                                                       ; +0x2, 0x140479a62\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x140479a66\nxor     rax, rsp                                                       ; +0xd, 0x140479a6d\nmov     [rsp+68h+var_10], rax                                          ; +0x10, 0x140479a70\nmov     rbx, cs:qword_14090BFD0                                        ; +0x15, 0x140479a75\ntest    rbx, rbx                                                       ; +0x1c, 0x140479a7c\njnz     short loc_140479AB3                                            ; +0x1f, 0x140479a7f\nmov     ecx, 6E8h; Size                                                ; +0x21, 0x140479a81\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x26, 0x140479a86\nmov     [rsp+68h+var_38], rax                                          ; +0x2b, 0x140479a8b\nmov     rcx, rax                                                       ; +0x30, 0x140479a90\ncall    GameManager__GameManager                                       ; +0x33, 0x140479a93\nnop                                                                    ; +0x38, 0x140479a98\nmov     cs:qword_14090BFD0, rax                                        ; +0x39, 0x140479a99\nmov     rcx, [rax]                                                     ; +0x40, 0x140479aa0\nmov     rdx, [rcx+48h]                                                 ; +0x43, 0x140479aa3\nmov     rcx, rax                                                       ; +0x47, 0x140479aa7\ncall    rdx                                                            ; +0x4a, 0x140479aaa\nmov     rbx, cs:qword_14090BFD0                                        ; +0x4c, 0x140479aac\nxorps   xmm0, xmm0                                                     ; +0x53, 0x140479ab3\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x56, 0x140479ab6\nmov     [rsp+68h+var_20], 3                                            ; +0x5b, 0x140479abb\nmov     [rsp+68h+var_18], 0Fh                                          ; +0x64, 0x140479ac4\nmov     eax, cs:dword_140757618                                        ; +0x6d, 0x140479acd\nmov     word ptr [rsp+68h+Block], ax                                   ; +0x73, 0x140479ad3\nmovzx   eax, byte ptr cs:dword_140757618+2                             ; +0x78, 0x140479ad8\nmov     byte ptr [rsp+68h+Block+2], al                                 ; +0x7f, 0x140479adf\nmov     byte ptr [rsp+68h+Block+3], 0                                  ; +0x83, 0x140479ae3\nmov     r8d, 4; Size                                                   ; +0x88, 0x140479ae8\nlea     rdx, a0239; \"0239\"                                             ; +0x8e, 0x140479aee\nlea     rcx, [rsp+68h+Block]; Src                                      ; +0x95, 0x140479af5\ncall    sub_140044D80                                                  ; +0x9a, 0x140479afa\nlea     rdx, [rsp+68h+Block]                                           ; +0x9f, 0x140479aff\nmov     rcx, [rbx+1B0h]                                                ; +0xa4, 0x140479b04\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 &) ; +0xab, 0x140479b0b\nmov     rcx, rax                                                       ; +0xb1, 0x140479b11\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0xb4, 0x140479b14\nmov     ebx, eax                                                       ; +0xba, 0x140479b1a\nmov     rdx, [rsp+68h+var_18]                                          ; +0xbc, 0x140479b1c\ncmp     rdx, 0Fh                                                       ; +0xc1, 0x140479b21\njbe     short loc_140479B72                                            ; +0xc5, 0x140479b25\ninc     rdx                                                            ; +0xc7, 0x140479b27\nmov     r8, [rsp+68h+Block]                                            ; +0xca, 0x140479b2a\nmov     rcx, r8                                                        ; +0xcf, 0x140479b2f\ncmp     rdx, 1000h                                                     ; +0xd2, 0x140479b32\njb      short loc_140479B6A                                            ; +0xd9, 0x140479b39\nadd     rdx, 27h ; '''                                                 ; +0xdb, 0x140479b3b\nmov     r8, [r8-8]                                                     ; +0xdf, 0x140479b3f\nsub     rcx, r8                                                        ; +0xe3, 0x140479b43\nsub     rcx, 8                                                         ; +0xe6, 0x140479b46\ncmp     rcx, 1Fh                                                       ; +0xea, 0x140479b4a\njbe     short loc_140479B6A                                            ; +0xee, 0x140479b4e\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xf0, 0x140479b50\nxor     r9d, r9d; LineNo                                               ; +0xf9, 0x140479b59\nxor     r8d, r8d; FileName                                             ; +0xfc, 0x140479b5c\nxor     edx, edx; FunctionName                                         ; +0xff, 0x140479b5f\nxor     ecx, ecx; Expression                                           ; +0x101, 0x140479b61\ncall    cs:_invoke_watson                                              ; +0x103, 0x140479b63\nalign 2                                                                ; +0x109, 0x140479b69\nmov     rcx, r8; Block                                                 ; +0x10a, 0x140479b6a\ncall    j_j_free                                                       ; +0x10d, 0x140479b6d\nmovzx   ecx, bx                                                        ; +0x112, 0x140479b72\nmov     eax, 0FFFFh                                                    ; +0x115, 0x140479b75\ntest    ebx, ebx                                                       ; +0x11a, 0x140479b7a\ncmovnz  eax, ecx                                                       ; +0x11c, 0x140479b7c\nmov     rcx, [rsp+68h+var_10]                                          ; +0x11f, 0x140479b7f\nxor     rcx, rsp; StackCookie                                          ; +0x124, 0x140479b84\ncall    __security_check_cookie                                        ; +0x127, 0x140479b87\nadd     rsp, 60h                                                       ; +0x12c, 0x140479b8c\npop     rbx                                                            ; +0x130, 0x140479b90\nretn                                                                   ; +0x131, 0x140479b91", "xrefs": ["NotificationFilterPopup::init @ 0x1404792fb", "NotificationFilterPopup::toggleSource @ 0x140479bf0", "<???> @ 0x140928574"], "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"}