{"type": "func", "start": 5370877456, "end": 5370877614, "name": "FRequestProfilePage::removeFromNewCount", "pseudocode": "// \n// FRequestProfilePage::removeFromNewCount from 0x140211610 to 0x1402116ae (158 bytes)\n// \n// 3 xrefs:\n// > FRequestProfilePage::deleteSelected @ 0x1402115ee\n// > FRequestProfilePage::onMarkRead @ 0x1402118e5\n// > <???> @ 0x14091b50c\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:19 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall FRequestProfilePage::removeFromNewCount(__int64 a1, int a2)\n{\n  __int64 v3; // rax\n  int v4; // ebx\n  __int64 v5; // rcx\n  struct cocos2d::CCObject *v6; // rax\n  int v7; // ecx\n  void *v8; // [rsp+30h] [rbp+8h]\n\n  if ( a2 > 0 )\n  {\n    v3 = GJAccountManager::sharedState(a1);\n    v4 = *(_DWORD *)(v3 + 360) - *(_DWORD *)(v3 + 364);\n    v5 = *(_QWORD *)&qword_14090BFB0;\n    if ( !*(_QWORD *)&qword_14090BFB0 )\n    {\n      v8 = operator new(0x690u);\n      *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v8);\n      (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n      v5 = *(_QWORD *)&qword_14090BFB0;\n    }\n    v6 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v5 + 1232), v4);\n    if ( v6 )\n    {\n      v7 = 0;\n      if ( *((_DWORD *)v6 + 192) - a2 >= 0 )\n        v7 = *((_DWORD *)v6 + 192) - a2;\n      *((_DWORD *)v6 + 192) = v7;\n    }\n  }\n}", "assembly": "; \n; FRequestProfilePage::removeFromNewCount from 0x140211610 to 0x1402116ae (158 bytes)\n; \n; 3 xrefs:\n; > FRequestProfilePage::deleteSelected @ 0x1402115ee\n; > FRequestProfilePage::onMarkRead @ 0x1402118e5\n; > <???> @ 0x14091b50c\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:19 +0000\n; \ntest    edx, edx                                                       ; +0x0, 0x140211610\njle     locret_1402116AD                                               ; +0x2, 0x140211612\nmov     [rsp+arg_8], rbx                                               ; +0x8, 0x140211618\nmov     [rsp+arg_0], rcx                                               ; +0xd, 0x14021161d\npush    rdi                                                            ; +0x12, 0x140211622\nsub     rsp, 20h                                                       ; +0x13, 0x140211623\nmov     edi, edx                                                       ; +0x17, 0x140211627\ncall    GJAccountManager__sharedState                                  ; +0x19, 0x140211629\nmov     ebx, [rax+168h]                                                ; +0x1e, 0x14021162e\nsub     ebx, [rax+16Ch]                                                ; +0x24, 0x140211634\nmov     rcx, cs:qword_14090BFB0                                        ; +0x2a, 0x14021163a\ntest    rcx, rcx                                                       ; +0x31, 0x140211641\njnz     short loc_140211678                                            ; +0x34, 0x140211644\nmov     ecx, 690h; Size                                                ; +0x36, 0x140211646\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3b, 0x14021164b\nmov     [rsp+28h+arg_0], rax                                           ; +0x40, 0x140211650\nmov     rcx, rax                                                       ; +0x45, 0x140211655\ncall    GameLevelManager__GameLevelManager                             ; +0x48, 0x140211658\nnop                                                                    ; +0x4d, 0x14021165d\nmov     cs:qword_14090BFB0, rax                                        ; +0x4e, 0x14021165e\nmov     rcx, [rax]                                                     ; +0x55, 0x140211665\nmov     rdx, [rcx+48h]                                                 ; +0x58, 0x140211668\nmov     rcx, rax                                                       ; +0x5c, 0x14021166c\ncall    rdx                                                            ; +0x5f, 0x14021166f\nmov     rcx, cs:qword_14090BFB0                                        ; +0x61, 0x140211671\nmovsxd  rdx, ebx                                                       ; +0x68, 0x140211678\nmov     rcx, [rcx+4D0h]                                                ; +0x6b, 0x14021167b\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x72, 0x140211682\ntest    rax, rax                                                       ; +0x78, 0x140211688\njz      short loc_1402116A3                                            ; +0x7b, 0x14021168b\nmov     edx, [rax+300h]                                                ; +0x7d, 0x14021168d\nsub     edx, edi                                                       ; +0x83, 0x140211693\nmov     ecx, 0                                                         ; +0x85, 0x140211695\ncmovns  ecx, edx                                                       ; +0x8a, 0x14021169a\nmov     [rax+300h], ecx                                                ; +0x8d, 0x14021169d\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x93, 0x1402116a3\nadd     rsp, 20h                                                       ; +0x98, 0x1402116a8\npop     rdi                                                            ; +0x9c, 0x1402116ac\nretn                                                                   ; +0x9d, 0x1402116ad", "xrefs": ["FRequestProfilePage::deleteSelected @ 0x1402115ee", "FRequestProfilePage::onMarkRead @ 0x1402118e5", "<???> @ 0x14091b50c"], "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"}