{"type": "func", "start": 4296905704, "end": 4296905888, "name": "FriendsProfilePage::onClose", "pseudocode": "// \n// FriendsProfilePage::onClose from 0x1001d93e8 to 0x1001d94a0 (184 bytes)\n// \n// 3 xrefs:\n// > FriendsProfilePage::keyBackClicked @ 0x1001d9a28\n// > sub_1001D9A2C @ 0x1001d9a30\n// > FriendsProfilePage::init @ 0x1001d9068\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 __fastcall FriendsProfilePage::onClose(FriendsProfilePage *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCDirector *v3; // x0\n  cocos2d::CCTouchDispatcher *v4; // x0\n  cocos2d::CCDirector *v5; // x0\n  cocos2d::CCTouchDispatcher *v6; // x0\n  _BYTE *v7; // x0\n  GJAccountManager *v8; // x0\n\n  if ( a1->m_listLayer )\n  {\n    v3 = cocos2d::CCDirector::sharedDirector();\n    v4 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v3->getTouchDispatcher)(v3);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1->m_listLayer);\n  }\n  v5 = cocos2d::CCDirector::sharedDirector();\n  v6 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v5->getTouchDispatcher)(v5);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1);\n  if ( a1->m_type )\n  {\n    v7 = FriendsProfilePage::create((UserListType)0);\n  }\n  else\n  {\n    v8 = GJAccountManager::sharedState();\n    v7 = ProfilePage::create(v8->m_accountID - v8->m_unkInt1, 1);\n    v7[588] = 1;\n  }\n  (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v7 + 1288LL))(v7);\n  ((void (__fastcall *)(FriendsProfilePage *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n  ((void (__fastcall *)(FriendsProfilePage *, __int64))a1->removeFromParentAndCleanup)(a1, 1);\n}", "assembly": "; \n; FriendsProfilePage::onClose from 0x1001d93e8 to 0x1001d94a0 (184 bytes)\n; \n; 3 xrefs:\n; > FriendsProfilePage::keyBackClicked @ 0x1001d9a28\n; > sub_1001D9A2C @ 0x1001d9a30\n; > FriendsProfilePage::init @ 0x1001d9068\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1001d93e8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001d93ec\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001d93f0\nMOV             X19, X0                                                ; +0xc, 0x1001d93f4\nLDR             X8, [X0,#0x2B0]                                        ; +0x10, 0x1001d93f8\nCBZ             X8, loc_1001D9418                                      ; +0x14, 0x1001d93fc\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x18, 0x1001d9400\nLDR             X8, [X0]                                               ; +0x1c, 0x1001d9404\nLDR             X8, [X8,#0xA0]                                         ; +0x20, 0x1001d9408\nBLR             X8                                                     ; +0x24, 0x1001d940c\nLDR             X1, [X19,#0x2B0]                                       ; +0x28, 0x1001d9410\nBL              cocos2d__CCTouchDispatcher__unregisterForcePrio        ; +0x2c, 0x1001d9414\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x30, 0x1001d9418\nLDR             X8, [X0]                                               ; +0x34, 0x1001d941c\nLDR             X8, [X8,#0xA0]                                         ; +0x38, 0x1001d9420\nBLR             X8                                                     ; +0x3c, 0x1001d9424\nMOV             X1, X19                                                ; +0x40, 0x1001d9428\nBL              cocos2d__CCTouchDispatcher__unregisterForcePrio        ; +0x44, 0x1001d942c\nLDR             W8, [X19,#0x298]                                       ; +0x48, 0x1001d9430\nCBZ             W8, loc_1001D9444                                      ; +0x4c, 0x1001d9434\nMOV             W0, #0                                                 ; +0x50, 0x1001d9438\nBL              FriendsProfilePage__create                             ; +0x54, 0x1001d943c\nB               loc_1001D9464                                          ; +0x58, 0x1001d9440\nBL              GJAccountManager__sharedState                          ; +0x5c, 0x1001d9444\nLDR             W8, [X0,#0x160]                                        ; +0x60, 0x1001d9448\nLDR             W9, [X0,#0x164]                                        ; +0x64, 0x1001d944c\nSUB             W0, W8, W9                                             ; +0x68, 0x1001d9450\nMOV             W20, #1                                                ; +0x6c, 0x1001d9454\nMOV             W1, #1                                                 ; +0x70, 0x1001d9458\nBL              ProfilePage__create                                    ; +0x74, 0x1001d945c\nSTRB            W20, [X0,#0x24C]                                       ; +0x78, 0x1001d9460\nLDR             X8, [X0]                                               ; +0x7c, 0x1001d9464\nLDR             X8, [X8,#0x508]                                        ; +0x80, 0x1001d9468\nBLR             X8                                                     ; +0x84, 0x1001d946c\nLDR             X8, [X19]                                              ; +0x88, 0x1001d9470\nLDR             X8, [X8,#0x420]                                        ; +0x8c, 0x1001d9474\nMOV             X0, X19                                                ; +0x90, 0x1001d9478\nMOV             W1, #0                                                 ; +0x94, 0x1001d947c\nBLR             X8                                                     ; +0x98, 0x1001d9480\nLDR             X8, [X19]                                              ; +0x9c, 0x1001d9484\nLDR             X2, [X8,#0x200]                                        ; +0xa0, 0x1001d9488\nMOV             X0, X19                                                ; +0xa4, 0x1001d948c\nMOV             W1, #1                                                 ; +0xa8, 0x1001d9490\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xac, 0x1001d9494\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xb0, 0x1001d9498\nBR              X2                                                     ; +0xb4, 0x1001d949c", "xrefs": ["FriendsProfilePage::keyBackClicked @ 0x1001d9a28", "sub_1001D9A2C @ 0x1001d9a30", "FriendsProfilePage::init @ 0x1001d9068"], "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"}