{"type": "func", "start": 4297741552, "end": 4297741662, "name": "FriendRequestPopup::onClose", "pseudocode": "// \n// FriendRequestPopup::onClose from 0x1002a54f0 to 0x1002a555e (110 bytes)\n// \n// 1 xrefs:\n// > FriendRequestPopup::init @ 0x1002a52bc\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 FriendRequestPopup::onClose(FriendRequestPopup *a1, cocos2d::CCObject *a2)\n{\n  GJFriendRequest *m_request; // rax\n  GameLevelManager *v3; // rax\n\n  m_request = a1->m_request;\n  if ( m_request && !m_request->m_isRead )\n  {\n    v3 = GameLevelManager::sharedState();\n    GameLevelManager::readFriendRequest(v3, a1->m_request->m_requestID);\n    a1->m_request->m_isRead = 1;\n  }\n  ((void (__fastcall *)(FriendRequestPopup *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n  ((void (__fastcall *)(FriendRequestPopup *, __int64))a1->removeFromParentAndCleanup)(a1, 1);\n}", "assembly": "; \n; FriendRequestPopup::onClose from 0x1002a54f0 to 0x1002a555e (110 bytes)\n; \n; 1 xrefs:\n; > FriendRequestPopup::init @ 0x1002a52bc\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\npush    rbp                                                            ; +0x0, 0x1002a54f0\nmov     rbp, rsp                                                       ; +0x1, 0x1002a54f1\npush    rbx                                                            ; +0x4, 0x1002a54f4\npush    rax                                                            ; +0x5, 0x1002a54f5\nmov     rbx, rdi                                                       ; +0x6, 0x1002a54f6\nmov     rax, [rdi+298h]                                                ; +0x9, 0x1002a54f9\ntest    rax, rax                                                       ; +0x10, 0x1002a5500\njz      short loc_1002A5536                                            ; +0x13, 0x1002a5503\ncmp     byte ptr [rax+178h], 0                                         ; +0x15, 0x1002a5505\njnz     short loc_1002A5536                                            ; +0x1c, 0x1002a550c\ncall    GameLevelManager__sharedState                                  ; +0x1e, 0x1002a550e\nmov     rcx, [rbx+298h]                                                ; +0x23, 0x1002a5513\nmov     esi, [rcx+13Ch]                                                ; +0x2a, 0x1002a551a\nmov     rdi, rax                                                       ; +0x30, 0x1002a5520\ncall    GameLevelManager__readFriendRequest                            ; +0x33, 0x1002a5523\nmov     rax, [rbx+298h]                                                ; +0x38, 0x1002a5528\nmov     byte ptr [rax+178h], 1                                         ; +0x3f, 0x1002a552f\nmov     rax, [rbx]                                                     ; +0x46, 0x1002a5536\nmov     rdi, rbx                                                       ; +0x49, 0x1002a5539\nxor     esi, esi                                                       ; +0x4c, 0x1002a553c\ncall    qword ptr [rax+420h]                                           ; +0x4e, 0x1002a553e\nmov     rax, [rbx]                                                     ; +0x54, 0x1002a5544\nmov     rax, [rax+200h]                                                ; +0x57, 0x1002a5547\nmov     rdi, rbx                                                       ; +0x5e, 0x1002a554e\nmov     esi, 1                                                         ; +0x61, 0x1002a5551\nadd     rsp, 8                                                         ; +0x66, 0x1002a5556\npop     rbx                                                            ; +0x6a, 0x1002a555a\npop     rbp                                                            ; +0x6b, 0x1002a555b\njmp     rax                                                            ; +0x6c, 0x1002a555c", "xrefs": ["FriendRequestPopup::init @ 0x1002a52bc"], "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"}