{"type": "func", "start": 4883636, "end": 4883708, "name": "FriendRequestPopup::onClose", "pseudocode": "// \n// FriendRequestPopup::onClose from 0x4a84b4 to 0x4a84fc (72 bytes)\n// \n// 2 xrefs:\n// > FriendRequestPopup::keyBackClicked @ 0x4a84fe\n// > FriendRequestPopup::onClosePopup @ 0x4ace0e\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; // r3\n  GameLevelManager *v4; // r0\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 0x4a84b4 to 0x4a84fc (72 bytes)\n; \n; 2 xrefs:\n; > FriendRequestPopup::keyBackClicked @ 0x4a84fe\n; > FriendRequestPopup::onClosePopup @ 0x4ace0e\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,#0x200]                                        ; +0x0, 0x4a84b4\nPUSH            {R4,LR}                                                ; +0x4, 0x4a84b8\nMOV             R4, R0                                                 ; +0x6, 0x4a84ba\nCBZ             R3, loc_4A84C4                                         ; +0x8, 0x4a84bc\nLDRB.W          R3, [R3,#0x11C]                                        ; +0xa, 0x4a84be\nCBZ             R3, loc_4A84E0                                         ; +0xe, 0x4a84c2\nLDR             R3, [R4]                                               ; +0x10, 0x4a84c4\nMOV             R0, R4                                                 ; +0x12, 0x4a84c6\nMOVS            R1, #0                                                 ; +0x14, 0x4a84c8\nLDR.W           R3, [R3,#0x210]                                        ; +0x16, 0x4a84ca\nBLX             R3                                                     ; +0x1a, 0x4a84ce\nLDR             R3, [R4]                                               ; +0x1c, 0x4a84d0\nMOV             R0, R4; this                                           ; +0x1e, 0x4a84d2\nMOVS            R1, #1                                                 ; +0x20, 0x4a84d4\nPOP.W           {R4,LR}                                                ; +0x22, 0x4a84d6\nLDR.W           R3, [R3,#0x100]                                        ; +0x26, 0x4a84da\nBX              R3                                                     ; +0x2a, 0x4a84de\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x2c, 0x4a84e0\nLDR.W           R3, [R4,#0x200]                                        ; +0x30, 0x4a84e4\nLDR.W           R1, [R3,#0x108]; int                                   ; +0x34, 0x4a84e8\nBL              _ZN16GameLevelManager17readFriendRequestEi; GameLevelManager::readFriendRequest(int) ; +0x38, 0x4a84ec\nLDR.W           R3, [R4,#0x200]                                        ; +0x3c, 0x4a84f0\nMOVS            R2, #1                                                 ; +0x40, 0x4a84f4\nSTRB.W          R2, [R3,#0x11C]                                        ; +0x42, 0x4a84f6\nB               loc_4A84C4                                             ; +0x46, 0x4a84fa", "xrefs": ["FriendRequestPopup::keyBackClicked @ 0x4a84fe", "FriendRequestPopup::onClosePopup @ 0x4ace0e"], "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"}