{"type": "func", "start": 4297746224, "end": 4297746401, "name": "FriendRequestPopup::onClosePopup", "pseudocode": "// \n// FriendRequestPopup::onClosePopup from 0x1002a6730 to 0x1002a67e1 (177 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1008fa7f0\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::onClosePopup(FriendRequestPopup *a1, UploadActionPopup *a2)\n{\n  GJFriendRequest *m_request; // rax\n  GameLevelManager *v3; // rax\n\n  ((void (__fastcall *)(UploadActionPopup *, _QWORD))a2->setKeypadEnabled)(a2, 0);\n  ((void (__fastcall *)(UploadActionPopup *, __int64))a2->removeFromParentAndCleanup)(a2, 1);\n  if ( a1->m_popup == a2 )\n  {\n    a1->m_popup = nullptr;\n    if ( LOBYTE(a1->m_unk) == 1 )\n    {\n      m_request = a1->m_request;\n      if ( m_request )\n      {\n        if ( !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      }\n      ((void (__fastcall *)(FriendRequestPopup *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n      ((void (__fastcall *)(FriendRequestPopup *, __int64))a1->removeFromParentAndCleanup)(a1, 1);\n    }\n  }\n}", "assembly": "; \n; FriendRequestPopup::onClosePopup from 0x1002a6730 to 0x1002a67e1 (177 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1008fa7f0\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, 0x1002a6730\nmov     rbp, rsp                                                       ; +0x1, 0x1002a6731\npush    r14                                                            ; +0x4, 0x1002a6734\npush    rbx                                                            ; +0x6, 0x1002a6736\nmov     r14, rsi                                                       ; +0x7, 0x1002a6737\nmov     rbx, rdi                                                       ; +0xa, 0x1002a673a\nmov     rax, [rsi]                                                     ; +0xd, 0x1002a673d\nmov     rdi, rsi                                                       ; +0x10, 0x1002a6740\nxor     esi, esi                                                       ; +0x13, 0x1002a6743\ncall    qword ptr [rax+420h]                                           ; +0x15, 0x1002a6745\nmov     rax, [r14]                                                     ; +0x1b, 0x1002a674b\nmov     rdi, r14                                                       ; +0x1e, 0x1002a674e\nmov     esi, 1                                                         ; +0x21, 0x1002a6751\ncall    qword ptr [rax+200h]                                           ; +0x26, 0x1002a6756\ncmp     [rbx+2B0h], r14                                                ; +0x2c, 0x1002a675c\njnz     short loc_1002A67DC                                            ; +0x33, 0x1002a6763\nmov     qword ptr [rbx+2B0h], 0                                        ; +0x35, 0x1002a6765\ncmp     byte ptr [rbx+290h], 1                                         ; +0x40, 0x1002a6770\njnz     short loc_1002A67DC                                            ; +0x47, 0x1002a6777\nmov     rax, [rbx+298h]                                                ; +0x49, 0x1002a6779\ntest    rax, rax                                                       ; +0x50, 0x1002a6780\njz      short loc_1002A67B6                                            ; +0x53, 0x1002a6783\ncmp     byte ptr [rax+178h], 0                                         ; +0x55, 0x1002a6785\njnz     short loc_1002A67B6                                            ; +0x5c, 0x1002a678c\ncall    GameLevelManager__sharedState                                  ; +0x5e, 0x1002a678e\nmov     rcx, [rbx+298h]                                                ; +0x63, 0x1002a6793\nmov     esi, [rcx+13Ch]                                                ; +0x6a, 0x1002a679a\nmov     rdi, rax                                                       ; +0x70, 0x1002a67a0\ncall    GameLevelManager__readFriendRequest                            ; +0x73, 0x1002a67a3\nmov     rax, [rbx+298h]                                                ; +0x78, 0x1002a67a8\nmov     byte ptr [rax+178h], 1                                         ; +0x7f, 0x1002a67af\nmov     rax, [rbx]                                                     ; +0x86, 0x1002a67b6\nmov     rdi, rbx                                                       ; +0x89, 0x1002a67b9\nxor     esi, esi                                                       ; +0x8c, 0x1002a67bc\ncall    qword ptr [rax+420h]                                           ; +0x8e, 0x1002a67be\nmov     rax, [rbx]                                                     ; +0x94, 0x1002a67c4\nmov     rax, [rax+200h]                                                ; +0x97, 0x1002a67c7\nmov     rdi, rbx                                                       ; +0x9e, 0x1002a67ce\nmov     esi, 1                                                         ; +0xa1, 0x1002a67d1\npop     rbx                                                            ; +0xa6, 0x1002a67d6\npop     r14                                                            ; +0xa7, 0x1002a67d7\npop     rbp                                                            ; +0xa9, 0x1002a67d9\njmp     rax                                                            ; +0xaa, 0x1002a67da\npop     rbx                                                            ; +0xac, 0x1002a67dc\npop     r14                                                            ; +0xad, 0x1002a67dd\npop     rbp                                                            ; +0xaf, 0x1002a67df\nretn                                                                   ; +0xb0, 0x1002a67e0", "xrefs": ["<???> @ 0x1008fa7f0"], "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"}