{"type": "func", "start": 5373402016, "end": 5373402395, "name": "NotificationFilterPopup::toggleSource", "pseudocode": "// \n// NotificationFilterPopup::toggleSource from 0x140479ba0 to 0x140479d1b (379 bytes)\n// \n// 7 xrefs:\n// > NotificationFilterPopup::onFriendUploads @ 0x140479d25\n// > NotificationFilterPopup::onFollowUploads @ 0x140479d35\n// > NotificationFilterPopup::onDownloadMilestones @ 0x140479d45\n// > NotificationFilterPopup::onFollowerMilestones @ 0x140479d55\n// > NotificationFilterPopup::onFriendAccepts @ 0x140479d65\n// > NotificationFilterPopup::onFriendRated @ 0x140479d75\n// > <???> @ 0x140928580\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// Hidden C++ exception states: #wind=3\nvoid __fastcall NotificationFilterPopup::toggleSource(__int64 a1, int a2)\n{\n  int v3; // edi\n  __int64 v4; // rbx\n  __int64 v5; // rbx\n  __int64 v6; // rdx\n  struct cocos2d::CCString *v7; // rax\n  void *v8; // rcx\n  void *v9; // [rsp+30h] [rbp-38h]\n  void *v10; // [rsp+30h] [rbp-38h]\n  void *Block[2]; // [rsp+38h] [rbp-30h] BYREF\n  __int64 v12; // [rsp+48h] [rbp-20h]\n  unsigned __int64 v13; // [rsp+50h] [rbp-18h]\n\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v9 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v9);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n  }\n  v3 = a2 ^ NotificationFilterPopup::savedMask();\n  v4 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v10 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v10);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v4 = qword_14090BFD0;\n  }\n  *(_OWORD *)Block = 0;\n  v12 = 3;\n  v13 = 15;\n  LODWORD(Block[0]) = 6256231;\n  sub_140044D80(Block, \"0239\", 4u);\n  v5 = *(_QWORD *)(v4 + 432);\n  v6 = (unsigned __int16)v3;\n  LODWORD(v6) = (unsigned __int16)v3 | 0x10000;\n  v7 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v6);\n  cocos2d::CCDictionary::setObject(v5, v7, Block);\n  if ( v13 > 0xF )\n  {\n    v8 = Block[0];\n    if ( v13 + 1 >= 0x1000 )\n    {\n      v8 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v8);\n  }\n}", "assembly": "; \n; NotificationFilterPopup::toggleSource from 0x140479ba0 to 0x140479d1b (379 bytes)\n; \n; 7 xrefs:\n; > NotificationFilterPopup::onFriendUploads @ 0x140479d25\n; > NotificationFilterPopup::onFollowUploads @ 0x140479d35\n; > NotificationFilterPopup::onDownloadMilestones @ 0x140479d45\n; > NotificationFilterPopup::onFollowerMilestones @ 0x140479d55\n; > NotificationFilterPopup::onFriendAccepts @ 0x140479d65\n; > NotificationFilterPopup::onFriendRated @ 0x140479d75\n; > <???> @ 0x140928580\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; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140479ba0\npush    rdi                                                            ; +0x5, 0x140479ba5\nsub     rsp, 60h                                                       ; +0x6, 0x140479ba6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x140479baa\nxor     rax, rsp                                                       ; +0x11, 0x140479bb1\nmov     [rsp+68h+var_10], rax                                          ; +0x14, 0x140479bb4\nmov     ebx, edx                                                       ; +0x19, 0x140479bb9\ncmp     cs:qword_14090BFB0, 0                                          ; +0x1b, 0x140479bbb\njnz     short loc_140479BF0                                            ; +0x23, 0x140479bc3\nmov     ecx, 690h; Size                                                ; +0x25, 0x140479bc5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2a, 0x140479bca\nmov     [rsp+68h+var_38], rax                                          ; +0x2f, 0x140479bcf\nmov     rcx, rax                                                       ; +0x34, 0x140479bd4\ncall    GameLevelManager__GameLevelManager                             ; +0x37, 0x140479bd7\nnop                                                                    ; +0x3c, 0x140479bdc\nmov     cs:qword_14090BFB0, rax                                        ; +0x3d, 0x140479bdd\nmov     rcx, [rax]                                                     ; +0x44, 0x140479be4\nmov     rdx, [rcx+48h]                                                 ; +0x47, 0x140479be7\nmov     rcx, rax                                                       ; +0x4b, 0x140479beb\ncall    rdx                                                            ; +0x4e, 0x140479bee\ncall    NotificationFilterPopup__savedMask                             ; +0x50, 0x140479bf0\nmov     edi, eax                                                       ; +0x55, 0x140479bf5\nxor     edi, ebx                                                       ; +0x57, 0x140479bf7\nmov     rbx, cs:qword_14090BFD0                                        ; +0x59, 0x140479bf9\ntest    rbx, rbx                                                       ; +0x60, 0x140479c00\njnz     short loc_140479C37                                            ; +0x63, 0x140479c03\nmov     ecx, 6E8h; Size                                                ; +0x65, 0x140479c05\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x6a, 0x140479c0a\nmov     [rsp+68h+var_38], rax                                          ; +0x6f, 0x140479c0f\nmov     rcx, rax                                                       ; +0x74, 0x140479c14\ncall    GameManager__GameManager                                       ; +0x77, 0x140479c17\nnop                                                                    ; +0x7c, 0x140479c1c\nmov     cs:qword_14090BFD0, rax                                        ; +0x7d, 0x140479c1d\nmov     rcx, [rax]                                                     ; +0x84, 0x140479c24\nmov     rdx, [rcx+48h]                                                 ; +0x87, 0x140479c27\nmov     rcx, rax                                                       ; +0x8b, 0x140479c2b\ncall    rdx                                                            ; +0x8e, 0x140479c2e\nmov     rbx, cs:qword_14090BFD0                                        ; +0x90, 0x140479c30\nxorps   xmm0, xmm0                                                     ; +0x97, 0x140479c37\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x9a, 0x140479c3a\nmov     [rsp+68h+var_20], 3                                            ; +0x9f, 0x140479c3f\nmov     [rsp+68h+var_18], 0Fh                                          ; +0xa8, 0x140479c48\nmov     eax, cs:dword_140757618                                        ; +0xb1, 0x140479c51\nmov     word ptr [rsp+68h+Block], ax                                   ; +0xb7, 0x140479c57\nmovzx   eax, byte ptr cs:dword_140757618+2                             ; +0xbc, 0x140479c5c\nmov     byte ptr [rsp+68h+Block+2], al                                 ; +0xc3, 0x140479c63\nmov     byte ptr [rsp+68h+Block+3], 0                                  ; +0xc7, 0x140479c67\nmov     r8d, 4; Size                                                   ; +0xcc, 0x140479c6c\nlea     rdx, a0239; \"0239\"                                             ; +0xd2, 0x140479c72\nlea     rcx, [rsp+68h+Block]; Src                                      ; +0xd9, 0x140479c79\ncall    sub_140044D80                                                  ; +0xde, 0x140479c7e\nmov     rbx, [rbx+1B0h]                                                ; +0xe3, 0x140479c83\nmovzx   edx, di                                                        ; +0xea, 0x140479c8a\nbts     edx, 10h                                                       ; +0xed, 0x140479c8d\nlea     rcx, word_1406ED6F8                                            ; +0xf1, 0x140479c91\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xf8, 0x140479c98\nmov     rdx, rax                                                       ; +0xfe, 0x140479c9e\nlea     r8, [rsp+68h+Block]                                            ; +0x101, 0x140479ca1\nmov     rcx, rbx                                                       ; +0x106, 0x140479ca6\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x109, 0x140479ca9\nnop                                                                    ; +0x10f, 0x140479caf\nmov     rdx, [rsp+68h+var_18]                                          ; +0x110, 0x140479cb0\ncmp     rdx, 0Fh                                                       ; +0x115, 0x140479cb5\njbe     short loc_140479D03                                            ; +0x119, 0x140479cb9\ninc     rdx                                                            ; +0x11b, 0x140479cbb\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x11e, 0x140479cbe\nmov     rax, rcx                                                       ; +0x123, 0x140479cc3\ncmp     rdx, 1000h                                                     ; +0x126, 0x140479cc6\njb      short loc_140479CFE                                            ; +0x12d, 0x140479ccd\nadd     rdx, 27h ; '''                                                 ; +0x12f, 0x140479ccf\nmov     rcx, [rcx-8]                                                   ; +0x133, 0x140479cd3\nsub     rax, rcx                                                       ; +0x137, 0x140479cd7\nsub     rax, 8                                                         ; +0x13a, 0x140479cda\ncmp     rax, 1Fh                                                       ; +0x13e, 0x140479cde\njbe     short loc_140479CFE                                            ; +0x142, 0x140479ce2\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0x144, 0x140479ce4\nxor     r9d, r9d; LineNo                                               ; +0x14d, 0x140479ced\nxor     r8d, r8d; FileName                                             ; +0x150, 0x140479cf0\nxor     edx, edx; FunctionName                                         ; +0x153, 0x140479cf3\nxor     ecx, ecx; Expression                                           ; +0x155, 0x140479cf5\ncall    cs:_invoke_watson                                              ; +0x157, 0x140479cf7\nalign 2                                                                ; +0x15d, 0x140479cfd\ncall    j_j_free                                                       ; +0x15e, 0x140479cfe\nmov     rcx, [rsp+68h+var_10]                                          ; +0x163, 0x140479d03\nxor     rcx, rsp; StackCookie                                          ; +0x168, 0x140479d08\ncall    __security_check_cookie                                        ; +0x16b, 0x140479d0b\nmov     rbx, [rsp+68h+arg_0]                                           ; +0x170, 0x140479d10\nadd     rsp, 60h                                                       ; +0x175, 0x140479d15\npop     rdi                                                            ; +0x179, 0x140479d19\nretn                                                                   ; +0x17a, 0x140479d1a", "xrefs": ["NotificationFilterPopup::onFriendUploads @ 0x140479d25", "NotificationFilterPopup::onFollowUploads @ 0x140479d35", "NotificationFilterPopup::onDownloadMilestones @ 0x140479d45", "NotificationFilterPopup::onFollowerMilestones @ 0x140479d55", "NotificationFilterPopup::onFriendAccepts @ 0x140479d65", "NotificationFilterPopup::onFriendRated @ 0x140479d75", "<???> @ 0x140928580"], "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"}