{"type": "func", "start": 9187232, "end": 9187344, "name": "FriendRequestPopup::onClose", "pseudocode": "// \n// FriendRequestPopup::onClose from 0x8c2fa0 to 0x8c3010 (112 bytes)\n// \n// 5 xrefs:\n// > FriendRequestPopup::keyBackClicked @ 0x8c3014\n// > FriendRequestPopup::onClosePopup @ 0x8cca04\n// > <???> @ 0x86478\n// > FriendRequestPopup::init @ 0x8cd7c8\n// > <???> @ 0x122c868\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 FriendRequestPopup::onClose(FriendRequestPopup *a1, cocos2d::CCObject *a2)\n{\n  GJFriendRequest *m_request; // x0\n  GameLevelManager *v4; // x0\n\n  m_request = a1->m_request;\n  if ( m_request && !m_request->m_isRead )\n  {\n    v4 = GameLevelManager::sharedState();\n    GameLevelManager::readFriendRequest(v4, a1->m_request->m_requestID);\n    a1->m_request->m_isRead = 1;\n  }\n  a1->setKeypadEnabled(a1, 0);\n  a1->removeFromParentAndCleanup(a1, 1);\n}", "assembly": "; \n; FriendRequestPopup::onClose from 0x8c2fa0 to 0x8c3010 (112 bytes)\n; \n; 5 xrefs:\n; > FriendRequestPopup::keyBackClicked @ 0x8c3014\n; > FriendRequestPopup::onClosePopup @ 0x8cca04\n; > <???> @ 0x86478\n; > FriendRequestPopup::init @ 0x8cd7c8\n; > <???> @ 0x122c868\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             X29, X30, [SP,#var_20]!                                ; +0x0, 0x8c2fa0\nMOV             X29, SP                                                ; +0x4, 0x8c2fa4\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x8c2fa8\nMOV             X19, X0                                                ; +0xc, 0x8c2fac\nLDR             X0, [X0,#0x298]                                        ; +0x10, 0x8c2fb0\nCBZ             X0, loc_8C2FDC                                         ; +0x14, 0x8c2fb4\nLDRB            W0, [X0,#0x158]; this                                  ; +0x18, 0x8c2fb8\nCBNZ            W0, loc_8C2FDC                                         ; +0x1c, 0x8c2fbc\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x20, 0x8c2fc0\nLDR             X1, [X19,#0x298]                                       ; +0x24, 0x8c2fc4\nLDR             W1, [X1,#0x13C]; int                                   ; +0x28, 0x8c2fc8\nBL              _ZN16GameLevelManager17readFriendRequestEi; GameLevelManager::readFriendRequest(int) ; +0x2c, 0x8c2fcc\nLDR             X0, [X19,#0x298]                                       ; +0x30, 0x8c2fd0\nMOV             W1, #1                                                 ; +0x34, 0x8c2fd4\nSTRB            W1, [X0,#0x158]                                        ; +0x38, 0x8c2fd8\nLDR             X2, [X19]                                              ; +0x3c, 0x8c2fdc\nMOV             X0, X19                                                ; +0x40, 0x8c2fe0\nMOV             W1, #0                                                 ; +0x44, 0x8c2fe4\nLDR             X2, [X2,#0x420]                                        ; +0x48, 0x8c2fe8\nBLR             X2                                                     ; +0x4c, 0x8c2fec\nLDR             X2, [X19]                                              ; +0x50, 0x8c2ff0\nMOV             X0, X19                                                ; +0x54, 0x8c2ff4\nMOV             W1, #1                                                 ; +0x58, 0x8c2ff8\nLDR             X2, [X2,#0x200]                                        ; +0x5c, 0x8c2ffc\nBLR             X2                                                     ; +0x60, 0x8c3000\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x64, 0x8c3004\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x68, 0x8c3008\nRET                                                                    ; +0x6c, 0x8c300c", "xrefs": ["FriendRequestPopup::keyBackClicked @ 0x8c3014", "FriendRequestPopup::onClosePopup @ 0x8cca04", "<???> @ 0x86478", "FriendRequestPopup::init @ 0x8cd7c8", "<???> @ 0x122c868"], "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"}