{"type": "func", "start": 4296090260, "end": 4296090464, "name": "GJRequestCell::FLAlert_Clicked", "pseudocode": "// \n// GJRequestCell::FLAlert_Clicked from 0x100112294 to 0x100112360 (204 bytes)\n// \n// 2 xrefs:\n// > sub_10011237C @ 0x100112380\n// > <???> @ 0x10078d5d8\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 GJRequestCell::FLAlert_Clicked(GJRequestCell *a1, FLAlertLayer *a2, bool a3)\n{\n  GameLevelManager *v4; // x0\n  GJFriendRequest *v5; // x0\n  GJFriendRequest *v6; // x20\n  GameLevelManager *v7; // x0\n  UploadActionPopup *m_popup; // x0\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v10; // [xsp+1Fh] [xbp-11h]\n\n  if ( a3 && ((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) == 1 )\n  {\n    if ( a1->m_score )\n    {\n      v4 = GameLevelManager::sharedState();\n      v5 = GameLevelManager::friendRequestFromAccountID(v4, a1->m_score->m_accountID);\n      if ( v5 )\n      {\n        v6 = v5;\n        GJRequestCell::markAsRead(a1);\n        GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate;\n        v7 = GameLevelManager::sharedState();\n        if ( GameLevelManager::deleteFriendRequests(v7, v6->m_accountID, nullptr, 0) )\n        {\n          sub_100009900(__p, \"Removing Friend Request...\");\n          m_popup = (UploadActionPopup *)UploadActionPopup::create(&a1->UploadPopupDelegate, __p);\n          a1->m_popup = m_popup;\n          if ( v10 < 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      }\n    }\n  }\n}", "assembly": "; \n; GJRequestCell::FLAlert_Clicked from 0x100112294 to 0x100112360 (204 bytes)\n; \n; 2 xrefs:\n; > sub_10011237C @ 0x100112380\n; > <???> @ 0x10078d5d8\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, 0x100112294\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x100112298\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x10011229c\nADD             X29, SP, #0x30                                         ; +0xc, 0x1001122a0\nCBZ             W2, loc_100112350                                      ; +0x10, 0x1001122a4\nMOV             X19, X0                                                ; +0x14, 0x1001122a8\nLDR             X8, [X1]                                               ; +0x18, 0x1001122ac\nLDR             X8, [X8,#0x40]                                         ; +0x1c, 0x1001122b0\nMOV             X0, X1                                                 ; +0x20, 0x1001122b4\nBLR             X8                                                     ; +0x24, 0x1001122b8\nCMP             W0, #1                                                 ; +0x28, 0x1001122bc\nB.NE            loc_100112350                                          ; +0x2c, 0x1001122c0\nLDR             X8, [X19,#0x240]                                       ; +0x30, 0x1001122c4\nCBZ             X8, loc_100112350                                      ; +0x34, 0x1001122c8\nBL              GameLevelManager__sharedState                          ; +0x38, 0x1001122cc\nLDR             X8, [X19,#0x240]                                       ; +0x3c, 0x1001122d0\nLDR             W1, [X8,#0x178]                                        ; +0x40, 0x1001122d4\nBL              GameLevelManager__friendRequestFromAccountID           ; +0x44, 0x1001122d8\nCBZ             X0, loc_100112350                                      ; +0x48, 0x1001122dc\nMOV             X20, X0                                                ; +0x4c, 0x1001122e0\nMOV             X0, X19                                                ; +0x50, 0x1001122e4\nBL              GJRequestCell__markAsRead                              ; +0x54, 0x1001122e8\nBL              GameLevelManager__sharedState                          ; +0x58, 0x1001122ec\nADD             X8, X19, #0x238                                        ; +0x5c, 0x1001122f0\nSTR             X8, [X0,#0x328]                                        ; +0x60, 0x1001122f4\nBL              GameLevelManager__sharedState                          ; +0x64, 0x1001122f8\nLDR             W1, [X20,#0x140]                                       ; +0x68, 0x1001122fc\nMOV             X2, #0                                                 ; +0x6c, 0x100112300\nMOV             W3, #0                                                 ; +0x70, 0x100112304\nBL              GameLevelManager__deleteFriendRequests                 ; +0x74, 0x100112308\nCBZ             W0, loc_100112350                                      ; +0x78, 0x10011230c\nADRL            X1, aRemovingFriend_0; \"Removing Friend Request...\"    ; +0x7c, 0x100112310\nADD             X0, SP, #0x30+__p; int                                 ; +0x84, 0x100112318\nBL              sub_100009900                                          ; +0x88, 0x10011231c\nADD             X0, X19, #0x230                                        ; +0x8c, 0x100112320\nADD             X1, SP, #0x30+__p                                      ; +0x90, 0x100112324\nBL              UploadActionPopup__create                              ; +0x94, 0x100112328\nSTR             X0, [X19,#0x248]                                       ; +0x98, 0x10011232c\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x9c, 0x100112330\nTBZ             W8, #0x1F, loc_100112344                               ; +0xa0, 0x100112334\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0xa4, 0x100112338\nBL              __ZdlPv; operator delete(void *)                       ; +0xa8, 0x10011233c\nLDR             X0, [X19,#0x248]                                       ; +0xac, 0x100112340\nLDR             X8, [X0]                                               ; +0xb0, 0x100112344\nLDR             X8, [X8,#0x508]                                        ; +0xb4, 0x100112348\nBLR             X8                                                     ; +0xb8, 0x10011234c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xbc, 0x100112350\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xc0, 0x100112354\nADD             SP, SP, #0x40 ; '@'                                    ; +0xc4, 0x100112358\nRET                                                                    ; +0xc8, 0x10011235c", "xrefs": ["sub_10011237C @ 0x100112380", "<???> @ 0x10078d5d8"], "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"}