{"type": "func", "start": 4996562, "end": 4996684, "name": "FriendsProfilePage::onClose", "pseudocode": "// \n// FriendsProfilePage::onClose from 0x4c3dd2 to 0x4c3e4c (122 bytes)\n// \n// 1 xrefs:\n// > FriendsProfilePage::keyBackClicked @ 0x4c3e4e\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  cocos2d::CCDirector *v3; // r0\n  cocos2d::CCTouchDispatcher *v4; // r0\n  cocos2d::CCDirector *v5; // r0\n  cocos2d::CCTouchDispatcher *v6; // r0\n  GJAccountManager *v7; // r0\n  ProfilePage *v8; // r0\n  FriendsProfilePage_vtbl *v9; // r3\n\n  if ( a1->m_listLayer )\n  {\n    v3 = cocos2d::CCDirector::sharedDirector();\n    v4 = v3->getTouchDispatcher(v3);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1->m_listLayer);\n  }\n  v5 = cocos2d::CCDirector::sharedDirector();\n  v6 = v5->getTouchDispatcher(v5);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1);\n  if ( a1->m_type )\n  {\n    v9 = FriendsProfilePage::create((UserListType)0)->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  }\n  else\n  {\n    v7 = GJAccountManager::sharedState();\n    v8 = ProfilePage::create(v7->m_accountID - v7->m_unkInt1, 1);\n    v9 = (FriendsProfilePage_vtbl *)v8->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v8->m_noElasticity = 1;\n  }\n  ((void (*)(void))v9->show)();\n  a1->setKeypadEnabled(a1, 0);\n  a1->removeFromParentAndCleanup(a1, 1);\n}", "assembly": "; \n; FriendsProfilePage::onClose from 0x4c3dd2 to 0x4c3e4c (122 bytes)\n; \n; 1 xrefs:\n; > FriendsProfilePage::keyBackClicked @ 0x4c3e4e\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\nLDR.W           R3, [R0,#0x20C]                                        ; +0x0, 0x4c3dd2\nPUSH            {R4,LR}                                                ; +0x4, 0x4c3dd6\nMOV             R4, R0                                                 ; +0x6, 0x4c3dd8\nCBZ             R3, loc_4C3DEE                                         ; +0x8, 0x4c3dda\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0xa, 0x4c3ddc\nLDR             R3, [R0]                                               ; +0xe, 0x4c3de0\nLDR             R3, [R3,#0x50]                                         ; +0x10, 0x4c3de2\nBLX             R3                                                     ; +0x12, 0x4c3de4\nLDR.W           R1, [R4,#0x20C]; cocos2d::CCObject *                   ; +0x14, 0x4c3de6\nBL              _ZN7cocos2d17CCTouchDispatcher19unregisterForcePrioEPNS_8CCObjectE; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x18, 0x4c3dea\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x1c, 0x4c3dee\nLDR             R3, [R0]                                               ; +0x20, 0x4c3df2\nLDR             R3, [R3,#0x50]                                         ; +0x22, 0x4c3df4\nBLX             R3                                                     ; +0x24, 0x4c3df6\nMOV             R1, R4; cocos2d::CCObject *                            ; +0x26, 0x4c3df8\nBL              _ZN7cocos2d17CCTouchDispatcher19unregisterForcePrioEPNS_8CCObjectE; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x28, 0x4c3dfa\nLDR.W           R3, [R4,#0x200]                                        ; +0x2c, 0x4c3dfe\nCBNZ            R3, loc_4C3E22                                         ; +0x30, 0x4c3e02\nBL              _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0x32, 0x4c3e04\nMOVS            R1, #1; int                                            ; +0x36, 0x4c3e08\nLDR.W           R3, [R0,#0x110]                                        ; +0x38, 0x4c3e0a\nLDR.W           R0, [R0,#0x114]                                        ; +0x3c, 0x4c3e0e\nSUBS            R0, R3, R0; this                                       ; +0x40, 0x4c3e12\nBL              _ZN11ProfilePage6createEib; ProfilePage::create(int,bool) ; +0x42, 0x4c3e14\nMOVS            R2, #1                                                 ; +0x46, 0x4c3e18\nLDR             R3, [R0]                                               ; +0x48, 0x4c3e1a\nSTRB.W          R2, [R0,#0x1D0]                                        ; +0x4a, 0x4c3e1c\nB               loc_4C3E2A                                             ; +0x4e, 0x4c3e20\nMOVS            R0, #0                                                 ; +0x50, 0x4c3e22\nBL              _ZN18FriendsProfilePage6createE12UserListType; FriendsProfilePage::create(UserListType) ; +0x52, 0x4c3e24\nLDR             R3, [R0]                                               ; +0x56, 0x4c3e28\nLDR.W           R3, [R3,#0x284]                                        ; +0x58, 0x4c3e2a\nBLX             R3                                                     ; +0x5c, 0x4c3e2e\nLDR             R3, [R4]                                               ; +0x5e, 0x4c3e30\nMOV             R0, R4                                                 ; +0x60, 0x4c3e32\nMOVS            R1, #0                                                 ; +0x62, 0x4c3e34\nLDR.W           R3, [R3,#0x210]                                        ; +0x64, 0x4c3e36\nBLX             R3                                                     ; +0x68, 0x4c3e3a\nLDR             R3, [R4]                                               ; +0x6a, 0x4c3e3c\nMOV             R0, R4                                                 ; +0x6c, 0x4c3e3e\nMOVS            R1, #1                                                 ; +0x6e, 0x4c3e40\nPOP.W           {R4,LR}                                                ; +0x70, 0x4c3e42\nLDR.W           R3, [R3,#0x100]                                        ; +0x74, 0x4c3e46\nBX              R3                                                     ; +0x78, 0x4c3e4a", "xrefs": ["FriendsProfilePage::keyBackClicked @ 0x4c3e4e"], "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"}