{"type": "func", "start": 4296763788, "end": 4296763980, "name": "FRequestProfilePage::onClose", "pseudocode": "// \n// FRequestProfilePage::onClose from 0x1001b698c to 0x1001b6a4c (192 bytes)\n// \n// 3 xrefs:\n// > FRequestProfilePage::keyBackClicked @ 0x1001b7210\n// > sub_1001B7214 @ 0x1001b7218\n// > FRequestProfilePage::init @ 0x1001b628c\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 FRequestProfilePage::onClose(FRequestProfilePage *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  FRequestProfilePage::untoggleAll(a1);\n  if ( a1->m_sent )\n  {\n    v7 = FRequestProfilePage::create(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 *)(FRequestProfilePage *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n  ((void (__fastcall *)(FRequestProfilePage *, __int64))a1->removeFromParentAndCleanup)(a1, 1);\n}", "assembly": "; \n; FRequestProfilePage::onClose from 0x1001b698c to 0x1001b6a4c (192 bytes)\n; \n; 3 xrefs:\n; > FRequestProfilePage::keyBackClicked @ 0x1001b7210\n; > sub_1001B7214 @ 0x1001b7218\n; > FRequestProfilePage::init @ 0x1001b628c\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, 0x1001b698c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001b6990\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001b6994\nMOV             X19, X0                                                ; +0xc, 0x1001b6998\nLDR             X8, [X0,#0x2C8]                                        ; +0x10, 0x1001b699c\nCBZ             X8, loc_1001B69BC                                      ; +0x14, 0x1001b69a0\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x18, 0x1001b69a4\nLDR             X8, [X0]                                               ; +0x1c, 0x1001b69a8\nLDR             X8, [X8,#0xA0]                                         ; +0x20, 0x1001b69ac\nBLR             X8                                                     ; +0x24, 0x1001b69b0\nLDR             X1, [X19,#0x2C8]                                       ; +0x28, 0x1001b69b4\nBL              cocos2d__CCTouchDispatcher__unregisterForcePrio        ; +0x2c, 0x1001b69b8\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x30, 0x1001b69bc\nLDR             X8, [X0]                                               ; +0x34, 0x1001b69c0\nLDR             X8, [X8,#0xA0]                                         ; +0x38, 0x1001b69c4\nBLR             X8                                                     ; +0x3c, 0x1001b69c8\nMOV             X1, X19                                                ; +0x40, 0x1001b69cc\nBL              cocos2d__CCTouchDispatcher__unregisterForcePrio        ; +0x44, 0x1001b69d0\nMOV             X0, X19                                                ; +0x48, 0x1001b69d4\nBL              FRequestProfilePage__untoggleAll                       ; +0x4c, 0x1001b69d8\nLDRB            W8, [X19,#0x298]                                       ; +0x50, 0x1001b69dc\nTBZ             W8, #0, loc_1001B69F0                                  ; +0x54, 0x1001b69e0\nMOV             W0, #0                                                 ; +0x58, 0x1001b69e4\nBL              FRequestProfilePage__create                            ; +0x5c, 0x1001b69e8\nB               loc_1001B6A10                                          ; +0x60, 0x1001b69ec\nBL              GJAccountManager__sharedState                          ; +0x64, 0x1001b69f0\nLDR             W8, [X0,#0x160]                                        ; +0x68, 0x1001b69f4\nLDR             W9, [X0,#0x164]                                        ; +0x6c, 0x1001b69f8\nSUB             W0, W8, W9                                             ; +0x70, 0x1001b69fc\nMOV             W20, #1                                                ; +0x74, 0x1001b6a00\nMOV             W1, #1                                                 ; +0x78, 0x1001b6a04\nBL              ProfilePage__create                                    ; +0x7c, 0x1001b6a08\nSTRB            W20, [X0,#0x24C]                                       ; +0x80, 0x1001b6a0c\nLDR             X8, [X0]                                               ; +0x84, 0x1001b6a10\nLDR             X8, [X8,#0x508]                                        ; +0x88, 0x1001b6a14\nBLR             X8                                                     ; +0x8c, 0x1001b6a18\nLDR             X8, [X19]                                              ; +0x90, 0x1001b6a1c\nLDR             X8, [X8,#0x420]                                        ; +0x94, 0x1001b6a20\nMOV             X0, X19                                                ; +0x98, 0x1001b6a24\nMOV             W1, #0                                                 ; +0x9c, 0x1001b6a28\nBLR             X8                                                     ; +0xa0, 0x1001b6a2c\nLDR             X8, [X19]                                              ; +0xa4, 0x1001b6a30\nLDR             X2, [X8,#0x200]                                        ; +0xa8, 0x1001b6a34\nMOV             X0, X19                                                ; +0xac, 0x1001b6a38\nMOV             W1, #1                                                 ; +0xb0, 0x1001b6a3c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xb4, 0x1001b6a40\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xb8, 0x1001b6a44\nBR              X2                                                     ; +0xbc, 0x1001b6a48", "xrefs": ["FRequestProfilePage::keyBackClicked @ 0x1001b7210", "sub_1001B7214 @ 0x1001b7218", "FRequestProfilePage::init @ 0x1001b628c"], "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"}