{"type": "func", "start": 5373390640, "end": 5373390820, "name": "MessagesProfilePage::onClose", "pseudocode": "// \n// MessagesProfilePage::onClose from 0x140476f30 to 0x140476fe4 (180 bytes)\n// \n// 5 xrefs:\n// > MessagesProfilePage::keyBackClicked @ 0x140476ff9\n// > MessagesProfilePage::init @ 0x140475bfb\n// > <???> @ 0x1408cee6c\n// > <???> @ 0x1408cee7c\n// > <???> @ 0x14092843c\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 MessagesProfilePage::onClose(__int64 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  void *v7; // rax\n  __int64 v8; // rdx\n\n  if ( *(_QWORD *)(a1 + 752) )\n  {\n    v2 = cocos2d::CCDirector::sharedDirector(a1);\n    v3 = *(struct cocos2d::CCObject **)(a1 + 752);\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, (struct cocos2d::CCObject *)a1);\n  MessagesProfilePage::untoggleAll(a1);\n  if ( *(_BYTE *)(a1 + 696) )\n    v7 = MessagesProfilePage::create(0);\n  else\n    v7 = MessageThreadsPage::create();\n  (*(void (__fastcall **)(void *))(*(_QWORD *)v7 + 1064LL))(v7);\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n  LOBYTE(v8) = 1;\n  return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 520LL))(a1, v8);\n}", "assembly": "; \n; MessagesProfilePage::onClose from 0x140476f30 to 0x140476fe4 (180 bytes)\n; \n; 5 xrefs:\n; > MessagesProfilePage::keyBackClicked @ 0x140476ff9\n; > MessagesProfilePage::init @ 0x140475bfb\n; > <???> @ 0x1408cee6c\n; > <???> @ 0x1408cee7c\n; > <???> @ 0x14092843c\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, 0x140476f30\nsub     rsp, 20h                                                       ; +0x2, 0x140476f32\ncmp     qword ptr [rcx+2F0h], 0                                        ; +0x6, 0x140476f36\nmov     rdi, rcx                                                       ; +0xe, 0x140476f3e\njz      short loc_140476F73                                            ; +0x11, 0x140476f41\nmov     [rsp+28h+arg_0], rbx                                           ; +0x13, 0x140476f43\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x18, 0x140476f48\nmov     rbx, [rdi+2F0h]                                                ; +0x1e, 0x140476f4e\nmov     rcx, rax                                                       ; +0x25, 0x140476f55\nmov     r8, [rax]                                                      ; +0x28, 0x140476f58\ncall    qword ptr [r8+90h]                                             ; +0x2b, 0x140476f5b\nmov     rcx, rax                                                       ; +0x32, 0x140476f62\nmov     rdx, rbx                                                       ; +0x35, 0x140476f65\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x38, 0x140476f68\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3e, 0x140476f6e\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x43, 0x140476f73\nmov     rcx, [rax]                                                     ; +0x49, 0x140476f79\nmov     rdx, [rcx+90h]                                                 ; +0x4c, 0x140476f7c\nmov     rcx, rax                                                       ; +0x53, 0x140476f83\ncall    rdx                                                            ; +0x56, 0x140476f86\nmov     rcx, rax                                                       ; +0x58, 0x140476f88\nmov     rdx, rdi                                                       ; +0x5b, 0x140476f8b\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x5e, 0x140476f8e\nmov     rcx, rdi                                                       ; +0x64, 0x140476f94\ncall    MessagesProfilePage__untoggleAll                               ; +0x67, 0x140476f97\ncmp     byte ptr [rdi+2B8h], 0                                         ; +0x6c, 0x140476f9c\njnz     short loc_140476FAC                                            ; +0x73, 0x140476fa3\ncall    MessageThreadsPage__create                                     ; +0x75, 0x140476fa5\njmp     short loc_140476FB3                                            ; +0x7a, 0x140476faa\nxor     ecx, ecx                                                       ; +0x7c, 0x140476fac\ncall    MessagesProfilePage__create                                    ; +0x7e, 0x140476fae\nmov     rcx, [rax]                                                     ; +0x83, 0x140476fb3\nmov     rdx, [rcx+428h]                                                ; +0x86, 0x140476fb6\nmov     rcx, rax                                                       ; +0x8d, 0x140476fbd\ncall    rdx                                                            ; +0x90, 0x140476fc0\nmov     rax, [rdi]                                                     ; +0x92, 0x140476fc2\nxor     edx, edx                                                       ; +0x95, 0x140476fc5\nmov     rcx, rdi                                                       ; +0x97, 0x140476fc7\ncall    qword ptr [rax+3E0h]                                           ; +0x9a, 0x140476fca\nmov     rax, [rdi]                                                     ; +0xa0, 0x140476fd0\nmov     dl, 1                                                          ; +0xa3, 0x140476fd3\nmov     rcx, rdi                                                       ; +0xa5, 0x140476fd5\nadd     rsp, 20h                                                       ; +0xa8, 0x140476fd8\npop     rdi                                                            ; +0xac, 0x140476fdc\njmp     qword ptr [rax+208h]                                           ; +0xad, 0x140476fdd", "xrefs": ["MessagesProfilePage::keyBackClicked @ 0x140476ff9", "MessagesProfilePage::init @ 0x140475bfb", "<???> @ 0x1408cee6c", "<???> @ 0x1408cee7c", "<???> @ 0x14092843c"], "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"}