{"type": "func", "start": 5373396720, "end": 5373396900, "name": "NotificationsPage::onClose", "pseudocode": "// \n// NotificationsPage::onClose from 0x1404786f0 to 0x1404787a4 (180 bytes)\n// \n// 5 xrefs:\n// > NotificationsPage::keyBackClicked @ 0x1404787b9\n// > NotificationsPage::init @ 0x140477fae\n// > <???> @ 0x1408ceffc\n// > <???> @ 0x1408cf00c\n// > <???> @ 0x1409284e4\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:41 +0000\n// \n\n__int64 __fastcall NotificationsPage::onClose(struct cocos2d::CCObject *a1)\n{\n  __int64 v2; // rax\n  struct cocos2d::CCObject *v3; // rbx\n  cocos2d::CCTouchDispatcher *v4; // rax\n  __int64 v5; // rax\n  cocos2d::CCTouchDispatcher *v6; // rax\n  __int64 v7; // rax\n  __int64 v8; // rdx\n  __int64 v9; // rax\n  __int64 v10; // rcx\n  __int64 v11; // rdx\n\n  if ( *((_QWORD *)a1 + 86) )\n  {\n    v2 = cocos2d::CCDirector::sharedDirector(a1);\n    v3 = *((struct cocos2d::CCObject **)a1 + 86);\n    v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, v3);\n  }\n  v5 = cocos2d::CCDirector::sharedDirector(a1);\n  v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 144LL))(v5);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1);\n  v7 = GJAccountManager::sharedState();\n  LOBYTE(v8) = 1;\n  v9 = ProfilePage::create((unsigned int)(*(_DWORD *)(v7 + 360) - *(_DWORD *)(v7 + 364)), v8);\n  v10 = *(_QWORD *)v9;\n  *(_BYTE *)(v9 + 596) = 1;\n  (*(void (__fastcall **)(__int64))(v10 + 1064))(v9);\n  (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n  LOBYTE(v11) = 1;\n  return (*(__int64 (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)a1 + 520LL))(a1, v11);\n}", "assembly": "; \n; NotificationsPage::onClose from 0x1404786f0 to 0x1404787a4 (180 bytes)\n; \n; 5 xrefs:\n; > NotificationsPage::keyBackClicked @ 0x1404787b9\n; > NotificationsPage::init @ 0x140477fae\n; > <???> @ 0x1408ceffc\n; > <???> @ 0x1408cf00c\n; > <???> @ 0x1409284e4\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:41 +0000\n; \npush    rdi                                                            ; +0x0, 0x1404786f0\nsub     rsp, 20h                                                       ; +0x2, 0x1404786f2\ncmp     qword ptr [rcx+2B0h], 0                                        ; +0x6, 0x1404786f6\nmov     rdi, rcx                                                       ; +0xe, 0x1404786fe\njz      short loc_140478733                                            ; +0x11, 0x140478701\nmov     [rsp+28h+arg_0], rbx                                           ; +0x13, 0x140478703\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x18, 0x140478708\nmov     rbx, [rdi+2B0h]                                                ; +0x1e, 0x14047870e\nmov     rcx, rax                                                       ; +0x25, 0x140478715\nmov     r8, [rax]                                                      ; +0x28, 0x140478718\ncall    qword ptr [r8+90h]                                             ; +0x2b, 0x14047871b\nmov     rcx, rax                                                       ; +0x32, 0x140478722\nmov     rdx, rbx                                                       ; +0x35, 0x140478725\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x38, 0x140478728\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3e, 0x14047872e\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x43, 0x140478733\nmov     rcx, [rax]                                                     ; +0x49, 0x140478739\nmov     rdx, [rcx+90h]                                                 ; +0x4c, 0x14047873c\nmov     rcx, rax                                                       ; +0x53, 0x140478743\ncall    rdx                                                            ; +0x56, 0x140478746\nmov     rcx, rax                                                       ; +0x58, 0x140478748\nmov     rdx, rdi                                                       ; +0x5b, 0x14047874b\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x5e, 0x14047874e\ncall    GJAccountManager__sharedState                                  ; +0x64, 0x140478754\nmov     dl, 1                                                          ; +0x69, 0x140478759\nmov     ecx, [rax+168h]                                                ; +0x6b, 0x14047875b\nsub     ecx, [rax+16Ch]                                                ; +0x71, 0x140478761\ncall    ProfilePage__create                                            ; +0x77, 0x140478767\nmov     rcx, [rax]                                                     ; +0x7c, 0x14047876c\nmov     byte ptr [rax+254h], 1                                         ; +0x7f, 0x14047876f\nmov     rdx, [rcx+428h]                                                ; +0x86, 0x140478776\nmov     rcx, rax                                                       ; +0x8d, 0x14047877d\ncall    rdx                                                            ; +0x90, 0x140478780\nmov     rax, [rdi]                                                     ; +0x92, 0x140478782\nxor     edx, edx                                                       ; +0x95, 0x140478785\nmov     rcx, rdi                                                       ; +0x97, 0x140478787\ncall    qword ptr [rax+3E0h]                                           ; +0x9a, 0x14047878a\nmov     rax, [rdi]                                                     ; +0xa0, 0x140478790\nmov     dl, 1                                                          ; +0xa3, 0x140478793\nmov     rcx, rdi                                                       ; +0xa5, 0x140478795\nadd     rsp, 20h                                                       ; +0xa8, 0x140478798\npop     rdi                                                            ; +0xac, 0x14047879c\njmp     qword ptr [rax+208h]                                           ; +0xad, 0x14047879d", "xrefs": ["NotificationsPage::keyBackClicked @ 0x1404787b9", "NotificationsPage::init @ 0x140477fae", "<???> @ 0x1408ceffc", "<???> @ 0x1408cf00c", "<???> @ 0x1409284e4"], "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"}