{"type": "func", "start": 4297956156, "end": 4297956284, "name": "FriendRequestPopup::onRemove", "pseudocode": "// \n// FriendRequestPopup::onRemove from 0x1002d9b3c to 0x1002d9bbc (128 bytes)\n// \n// 1 xrefs:\n// > FriendRequestPopup::loadFromGJFriendRequest @ 0x1002d9888\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::onRemove(FriendRequestPopup *a1, cocos2d::CCObject *a2)\n{\n  GameLevelManager *v3; // x0\n  UploadActionPopup *m_popup; // x0\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v6; // [xsp+1Fh] [xbp-11h]\n\n  v3 = GameLevelManager::sharedState();\n  if ( GameLevelManager::deleteFriendRequests(v3, a1->m_request->m_accountID, nullptr, 0) )\n  {\n    sub_100009900(__p, \"Removing Friend Request...\");\n    m_popup = (UploadActionPopup *)UploadActionPopup::create((__int64)&a1->UploadPopupDelegate, (__int64)__p);\n    a1->m_popup = m_popup;\n    if ( v6 < 0 )\n    {\n      operator delete(__p[0]);\n      m_popup = a1->m_popup;\n    }\n    ((void (__fastcall *)(UploadActionPopup *))m_popup->show)(m_popup);\n  }\n}", "assembly": "; \n; FriendRequestPopup::onRemove from 0x1002d9b3c to 0x1002d9bbc (128 bytes)\n; \n; 1 xrefs:\n; > FriendRequestPopup::loadFromGJFriendRequest @ 0x1002d9888\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x1002d9b3c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1002d9b40\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1002d9b44\nADD             X29, SP, #0x30                                         ; +0xc, 0x1002d9b48\nMOV             X19, X0                                                ; +0x10, 0x1002d9b4c\nBL              GameLevelManager__sharedState                          ; +0x14, 0x1002d9b50\nLDR             X8, [X19,#0x298]                                       ; +0x18, 0x1002d9b54\nLDR             W1, [X8,#0x140]                                        ; +0x1c, 0x1002d9b58\nMOV             X2, #0                                                 ; +0x20, 0x1002d9b5c\nMOV             W3, #0                                                 ; +0x24, 0x1002d9b60\nBL              GameLevelManager__deleteFriendRequests                 ; +0x28, 0x1002d9b64\nCBZ             W0, loc_1002D9BAC                                      ; +0x2c, 0x1002d9b68\nADRL            X1, aRemovingFriend_0; \"Removing Friend Request...\"    ; +0x30, 0x1002d9b6c\nADD             X0, SP, #0x30+__p; int                                 ; +0x38, 0x1002d9b74\nBL              sub_100009900                                          ; +0x3c, 0x1002d9b78\nADD             X0, X19, #0x280                                        ; +0x40, 0x1002d9b7c\nADD             X1, SP, #0x30+__p                                      ; +0x44, 0x1002d9b80\nBL              UploadActionPopup__create                              ; +0x48, 0x1002d9b84\nSTR             X0, [X19,#0x2B0]                                       ; +0x4c, 0x1002d9b88\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x50, 0x1002d9b8c\nTBZ             W8, #0x1F, loc_1002D9BA0                               ; +0x54, 0x1002d9b90\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x58, 0x1002d9b94\nBL              __ZdlPv; operator delete(void *)                       ; +0x5c, 0x1002d9b98\nLDR             X0, [X19,#0x2B0]                                       ; +0x60, 0x1002d9b9c\nLDR             X8, [X0]                                               ; +0x64, 0x1002d9ba0\nLDR             X8, [X8,#0x508]                                        ; +0x68, 0x1002d9ba4\nBLR             X8                                                     ; +0x6c, 0x1002d9ba8\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x70, 0x1002d9bac\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x74, 0x1002d9bb0\nADD             SP, SP, #0x40 ; '@'                                    ; +0x78, 0x1002d9bb4\nRET                                                                    ; +0x7c, 0x1002d9bb8", "xrefs": ["FriendRequestPopup::loadFromGJFriendRequest @ 0x1002d9888"], "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"}