{"type": "func", "start": 4296088264, "end": 4296088692, "name": "GJUserCell::FLAlert_Clicked", "pseudocode": "// \n// GJUserCell::FLAlert_Clicked from 0x100111ac8 to 0x100111c74 (428 bytes)\n// \n// 2 xrefs:\n// > sub_100111CBC @ 0x100111cc0\n// > <???> @ 0x10078cff8\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 GJUserCell::FLAlert_Clicked(GJUserCell *a1, FLAlertLayer *a2, bool a3)\n{\n  GameLevelManager *v5; // x0\n  UploadActionPopup *v6; // x8\n  UploadActionPopup *v7; // x0\n  UploadActionPopup **p_m_uploadPopup; // x19\n  void **v9; // x8\n  GameLevelManager *v10; // x0\n  UploadActionPopup *m_uploadPopup; // x8\n  GameLevelManager *v12; // x0\n  _QWORD v13[2]; // [xsp+8h] [xbp-58h] BYREF\n  char v14; // [xsp+1Fh] [xbp-41h]\n  _QWORD v15[2]; // [xsp+20h] [xbp-40h] BYREF\n  char v16; // [xsp+37h] [xbp-29h]\n  _QWORD v17[2]; // [xsp+38h] [xbp-28h] BYREF\n  char v18; // [xsp+4Fh] [xbp-11h]\n\n  if ( a3 )\n  {\n    if ( ((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) != 1 )\n    {\n      if ( ((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) == 2 )\n      {\n        if ( !a1->m_userScore )\n          return;\n        v10 = GameLevelManager::sharedState();\n        if ( !GameLevelManager::removeFriend(v10, a1->m_userScore->m_accountID) )\n          return;\n        GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate;\n        m_uploadPopup = a1->m_uploadPopup;\n        if ( m_uploadPopup )\n          m_uploadPopup->m_delegate = nullptr;\n        sub_100009900(v15, \"Removing Friend...\");\n        v7 = (UploadActionPopup *)UploadActionPopup::create(&a1->UploadPopupDelegate, v15);\n        p_m_uploadPopup = &a1->m_uploadPopup;\n        *p_m_uploadPopup = v7;\n        if ( (v16 & 0x80000000) == 0 )\n          goto LABEL_21;\n        v9 = (void **)v15;\n      }\n      else\n      {\n        if ( ((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) != 3 )\n          return;\n        v12 = GameLevelManager::sharedState();\n        if ( !GameLevelManager::deleteSentFriendRequest(v12, a1->m_userScore->m_accountID) )\n          return;\n        GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate;\n        sub_100009900(v13, \"Removing Friend Request...\");\n        v7 = (UploadActionPopup *)UploadActionPopup::create(&a1->UploadPopupDelegate, v13);\n        a1->m_uploadPopup = v7;\n        if ( (v14 & 0x80000000) == 0 )\n        {\nLABEL_21:\n          ((void (__fastcall *)(UploadActionPopup *))v7->show)(v7);\n          return;\n        }\n        p_m_uploadPopup = &a1->m_uploadPopup;\n        v9 = (void **)v13;\n      }\nLABEL_20:\n      operator delete(*v9);\n      v7 = *p_m_uploadPopup;\n      goto LABEL_21;\n    }\n    if ( a1->m_userScore )\n    {\n      v5 = GameLevelManager::sharedState();\n      if ( GameLevelManager::unblockUser(v5, a1->m_userScore->m_accountID) )\n      {\n        GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate;\n        v6 = a1->m_uploadPopup;\n        if ( v6 )\n          v6->m_delegate = nullptr;\n        sub_100009900(v17, \"Unblocking user...\");\n        v7 = (UploadActionPopup *)UploadActionPopup::create(&a1->UploadPopupDelegate, v17);\n        p_m_uploadPopup = &a1->m_uploadPopup;\n        *p_m_uploadPopup = v7;\n        if ( (v18 & 0x80000000) == 0 )\n          goto LABEL_21;\n        v9 = (void **)v17;\n        goto LABEL_20;\n      }\n    }\n  }\n}", "assembly": "; \n; GJUserCell::FLAlert_Clicked from 0x100111ac8 to 0x100111c74 (428 bytes)\n; \n; 2 xrefs:\n; > sub_100111CBC @ 0x100111cc0\n; > <???> @ 0x10078cff8\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, #0x70                                          ; +0x0, 0x100111ac8\nSTP             X20, X19, [SP,#0x60+var_10]                            ; +0x4, 0x100111acc\nSTP             X29, X30, [SP,#0x60+var_s0]                            ; +0x8, 0x100111ad0\nADD             X29, SP, #0x60                                         ; +0xc, 0x100111ad4\nCBZ             W2, loc_100111C64                                      ; +0x10, 0x100111ad8\nMOV             X20, X1                                                ; +0x14, 0x100111adc\nMOV             X19, X0                                                ; +0x18, 0x100111ae0\nLDR             X8, [X1]                                               ; +0x1c, 0x100111ae4\nLDR             X8, [X8,#0x40]                                         ; +0x20, 0x100111ae8\nMOV             X0, X1                                                 ; +0x24, 0x100111aec\nBLR             X8                                                     ; +0x28, 0x100111af0\nCMP             W0, #1                                                 ; +0x2c, 0x100111af4\nB.NE            loc_100111B64                                          ; +0x30, 0x100111af8\nLDR             X8, [X19,#0x240]                                       ; +0x34, 0x100111afc\nCBZ             X8, loc_100111C64                                      ; +0x38, 0x100111b00\nBL              GameLevelManager__sharedState                          ; +0x3c, 0x100111b04\nLDR             X8, [X19,#0x240]                                       ; +0x40, 0x100111b08\nLDR             W1, [X8,#0x178]                                        ; +0x44, 0x100111b0c\nBL              GameLevelManager__unblockUser                          ; +0x48, 0x100111b10\nCBZ             W0, loc_100111C64                                      ; +0x4c, 0x100111b14\nBL              GameLevelManager__sharedState                          ; +0x50, 0x100111b18\nADD             X8, X19, #0x238                                        ; +0x54, 0x100111b1c\nSTR             X8, [X0,#0x328]                                        ; +0x58, 0x100111b20\nLDR             X8, [X19,#0x248]                                       ; +0x5c, 0x100111b24\nCBZ             X8, loc_100111B30                                      ; +0x60, 0x100111b28\nSTR             XZR, [X8,#0x278]                                       ; +0x64, 0x100111b2c\nADRL            X1, aUnblockingUser; \"Unblocking user...\"              ; +0x68, 0x100111b30\nSUB             X0, X29, #-var_28; int                                 ; +0x70, 0x100111b38\nBL              sub_100009900                                          ; +0x74, 0x100111b3c\nADD             X0, X19, #0x230                                        ; +0x78, 0x100111b40\nSUB             X1, X29, #-var_28                                      ; +0x7c, 0x100111b44\nBL              UploadActionPopup__create                              ; +0x80, 0x100111b48\nADD             X19, X19, #0x248                                       ; +0x84, 0x100111b4c\nSTR             X0, [X19]                                              ; +0x88, 0x100111b50\nLDURSB          W8, [X29,#var_11]                                      ; +0x8c, 0x100111b54\nTBZ             W8, #0x1F, loc_100111C58                               ; +0x90, 0x100111b58\nSUB             X8, X29, #-var_28                                      ; +0x94, 0x100111b5c\nB               loc_100111C4C                                          ; +0x98, 0x100111b60\nLDR             X8, [X20]                                              ; +0x9c, 0x100111b64\nLDR             X8, [X8,#0x40]                                         ; +0xa0, 0x100111b68\nMOV             X0, X20                                                ; +0xa4, 0x100111b6c\nBLR             X8                                                     ; +0xa8, 0x100111b70\nCMP             W0, #2                                                 ; +0xac, 0x100111b74\nB.NE            loc_100111BE4                                          ; +0xb0, 0x100111b78\nLDR             X8, [X19,#0x240]                                       ; +0xb4, 0x100111b7c\nCBZ             X8, loc_100111C64                                      ; +0xb8, 0x100111b80\nBL              GameLevelManager__sharedState                          ; +0xbc, 0x100111b84\nLDR             X8, [X19,#0x240]                                       ; +0xc0, 0x100111b88\nLDR             W1, [X8,#0x178]                                        ; +0xc4, 0x100111b8c\nBL              GameLevelManager__removeFriend                         ; +0xc8, 0x100111b90\nCBZ             W0, loc_100111C64                                      ; +0xcc, 0x100111b94\nBL              GameLevelManager__sharedState                          ; +0xd0, 0x100111b98\nADD             X8, X19, #0x238                                        ; +0xd4, 0x100111b9c\nSTR             X8, [X0,#0x328]                                        ; +0xd8, 0x100111ba0\nLDR             X8, [X19,#0x248]                                       ; +0xdc, 0x100111ba4\nCBZ             X8, loc_100111BB0                                      ; +0xe0, 0x100111ba8\nSTR             XZR, [X8,#0x278]                                       ; +0xe4, 0x100111bac\nADRL            X1, aRemovingFriend; \"Removing Friend...\"              ; +0xe8, 0x100111bb0\nADD             X0, SP, #0x60+var_40; int                              ; +0xf0, 0x100111bb8\nBL              sub_100009900                                          ; +0xf4, 0x100111bbc\nADD             X0, X19, #0x230                                        ; +0xf8, 0x100111bc0\nADD             X1, SP, #0x60+var_40                                   ; +0xfc, 0x100111bc4\nBL              UploadActionPopup__create                              ; +0x100, 0x100111bc8\nADD             X19, X19, #0x248                                       ; +0x104, 0x100111bcc\nSTR             X0, [X19]                                              ; +0x108, 0x100111bd0\nLDRSB           W8, [SP,#0x60+var_29]                                  ; +0x10c, 0x100111bd4\nTBZ             W8, #0x1F, loc_100111C58                               ; +0x110, 0x100111bd8\nADD             X8, SP, #0x60+var_40                                   ; +0x114, 0x100111bdc\nB               loc_100111C4C                                          ; +0x118, 0x100111be0\nLDR             X8, [X20]                                              ; +0x11c, 0x100111be4\nLDR             X8, [X8,#0x40]                                         ; +0x120, 0x100111be8\nMOV             X0, X20                                                ; +0x124, 0x100111bec\nBLR             X8                                                     ; +0x128, 0x100111bf0\nCMP             W0, #3                                                 ; +0x12c, 0x100111bf4\nB.NE            loc_100111C64                                          ; +0x130, 0x100111bf8\nBL              GameLevelManager__sharedState                          ; +0x134, 0x100111bfc\nLDR             X8, [X19,#0x240]                                       ; +0x138, 0x100111c00\nLDR             W1, [X8,#0x178]                                        ; +0x13c, 0x100111c04\nBL              GameLevelManager__deleteSentFriendRequest              ; +0x140, 0x100111c08\nCBZ             W0, loc_100111C64                                      ; +0x144, 0x100111c0c\nBL              GameLevelManager__sharedState                          ; +0x148, 0x100111c10\nADD             X8, X19, #0x238                                        ; +0x14c, 0x100111c14\nSTR             X8, [X0,#0x328]                                        ; +0x150, 0x100111c18\nADRL            X1, aRemovingFriend_0; \"Removing Friend Request...\"    ; +0x154, 0x100111c1c\nADD             X0, SP, #0x60+var_58; int                              ; +0x15c, 0x100111c24\nBL              sub_100009900                                          ; +0x160, 0x100111c28\nADD             X0, X19, #0x230                                        ; +0x164, 0x100111c2c\nADD             X1, SP, #0x60+var_58                                   ; +0x168, 0x100111c30\nBL              UploadActionPopup__create                              ; +0x16c, 0x100111c34\nSTR             X0, [X19,#0x248]                                       ; +0x170, 0x100111c38\nLDRSB           W8, [SP,#0x60+var_41]                                  ; +0x174, 0x100111c3c\nTBZ             W8, #0x1F, loc_100111C58                               ; +0x178, 0x100111c40\nADD             X19, X19, #0x248                                       ; +0x17c, 0x100111c44\nADD             X8, SP, #0x60+var_58                                   ; +0x180, 0x100111c48\nLDR             X0, [X8]; __p                                          ; +0x184, 0x100111c4c\nBL              __ZdlPv; operator delete(void *)                       ; +0x188, 0x100111c50\nLDR             X0, [X19]                                              ; +0x18c, 0x100111c54\nLDR             X8, [X0]                                               ; +0x190, 0x100111c58\nLDR             X8, [X8,#0x508]                                        ; +0x194, 0x100111c5c\nBLR             X8                                                     ; +0x198, 0x100111c60\nLDP             X29, X30, [SP,#0x60+var_s0]                            ; +0x19c, 0x100111c64\nLDP             X20, X19, [SP,#0x60+var_10]                            ; +0x1a0, 0x100111c68\nADD             SP, SP, #0x70 ; 'p'                                    ; +0x1a4, 0x100111c6c\nRET                                                                    ; +0x1a8, 0x100111c70", "xrefs": ["sub_100111CBC @ 0x100111cc0", "<???> @ 0x10078cff8"], "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"}