{"type": "func", "start": 5370022944, "end": 5370023122, "name": "FriendsProfilePage::onClose", "pseudocode": "// \n// FriendsProfilePage::onClose from 0x140140c20 to 0x140140cd2 (178 bytes)\n// \n// 3 xrefs:\n// > FriendsProfilePage::keyBackClicked @ 0x140140ce9\n// > FriendsProfilePage::init @ 0x140140095\n// > <???> @ 0x1406ca2f0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid FriendsProfilePage::onClose(FriendsProfilePage *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rax\n  cocos2d::CCTouchDispatcher *v4; // rax\n  __int64 v5; // rax\n  cocos2d::CCTouchDispatcher *v6; // rax\n  GJAccountManager *v7; // rax\n  _BYTE *v8; // rax\n  _BOOL8 v9; // rdx\n\n  if ( a1->m_listLayer )\n  {\n    v3 = cocos2d::CCDirector::sharedDirector(a1);\n    v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1->m_listLayer);\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  if ( a1->m_type )\n  {\n    v8 = FriendsProfilePage::create((UserListType)0);\n  }\n  else\n  {\n    v7 = GJAccountManager::sharedState();\n    v8 = ProfilePage::create(v7->m_accountID - v7->m_unkInt1, 1);\n    v8[588] = 1;\n  }\n  (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v8 + 1040LL))(v8);\n  a1->setKeypadEnabled(a1, 0);\n  LOBYTE(v9) = 1;\n  a1->removeFromParentAndCleanup(a1, v9);\n}", "assembly": "; \n; FriendsProfilePage::onClose from 0x140140c20 to 0x140140cd2 (178 bytes)\n; \n; 3 xrefs:\n; > FriendsProfilePage::keyBackClicked @ 0x140140ce9\n; > FriendsProfilePage::init @ 0x140140095\n; > <???> @ 0x1406ca2f0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x140140c20\nsub     rsp, 20h                                                       ; +0x2, 0x140140c22\ncmp     qword ptr [rcx+2B0h], 0                                        ; +0x6, 0x140140c26\nmov     rbx, rcx                                                       ; +0xe, 0x140140c2e\njz      short loc_140140C55                                            ; +0x11, 0x140140c31\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x13, 0x140140c33\nmov     rcx, rax                                                       ; +0x19, 0x140140c39\nmov     rdx, [rax]                                                     ; +0x1c, 0x140140c3c\ncall    qword ptr [rdx+90h]                                            ; +0x1f, 0x140140c3f\nmov     rdx, [rbx+2B0h]                                                ; +0x25, 0x140140c45\nmov     rcx, rax                                                       ; +0x2c, 0x140140c4c\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x2f, 0x140140c4f\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x35, 0x140140c55\nmov     rcx, rax                                                       ; +0x3b, 0x140140c5b\nmov     rdx, [rax]                                                     ; +0x3e, 0x140140c5e\ncall    qword ptr [rdx+90h]                                            ; +0x41, 0x140140c61\nmov     rcx, rax                                                       ; +0x47, 0x140140c67\nmov     rdx, rbx                                                       ; +0x4a, 0x140140c6a\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x4d, 0x140140c6d\ncmp     dword ptr [rbx+298h], 0                                        ; +0x53, 0x140140c73\njnz     short loc_140140C9D                                            ; +0x5a, 0x140140c7a\ncall    GJAccountManager__sharedState                                  ; +0x5c, 0x140140c7c\nmov     dl, 1                                                          ; +0x61, 0x140140c81\nmov     ecx, [rax+168h]                                                ; +0x63, 0x140140c83\nsub     ecx, [rax+16Ch]                                                ; +0x69, 0x140140c89\ncall    ProfilePage__create                                            ; +0x6f, 0x140140c8f\nmov     byte ptr [rax+24Ch], 1                                         ; +0x74, 0x140140c94\njmp     short loc_140140CA4                                            ; +0x7b, 0x140140c9b\nxor     ecx, ecx                                                       ; +0x7d, 0x140140c9d\ncall    FriendsProfilePage__create                                     ; +0x7f, 0x140140c9f\nmov     rdx, [rax]                                                     ; +0x84, 0x140140ca4\nmov     rcx, rax                                                       ; +0x87, 0x140140ca7\ncall    qword ptr [rdx+410h]                                           ; +0x8a, 0x140140caa\nmov     rax, [rbx]                                                     ; +0x90, 0x140140cb0\nxor     edx, edx                                                       ; +0x93, 0x140140cb3\nmov     rcx, rbx                                                       ; +0x95, 0x140140cb5\ncall    qword ptr [rax+3D0h]                                           ; +0x98, 0x140140cb8\nmov     rax, [rbx]                                                     ; +0x9e, 0x140140cbe\nmov     dl, 1                                                          ; +0xa1, 0x140140cc1\nmov     rcx, rbx                                                       ; +0xa3, 0x140140cc3\nadd     rsp, 20h                                                       ; +0xa6, 0x140140cc6\npop     rbx                                                            ; +0xaa, 0x140140cca\njmp     qword ptr [rax+1F8h]                                           ; +0xab, 0x140140ccb", "xrefs": ["FriendsProfilePage::keyBackClicked @ 0x140140ce9", "FriendsProfilePage::init @ 0x140140095", "<???> @ 0x1406ca2f0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}