{"type": "func", "start": 4296091976, "end": 4296092168, "name": "GJMessageCell::FLAlert_Clicked", "pseudocode": "// \n// GJMessageCell::FLAlert_Clicked from 0x100112948 to 0x100112a08 (192 bytes)\n// \n// 2 xrefs:\n// > sub_100112A24 @ 0x100112a28\n// > <???> @ 0x10078dbb8\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 GJMessageCell::FLAlert_Clicked(GJMessageCell *a1, FLAlertLayer *a2, bool a3)\n{\n  GameLevelManager *v4; // x0\n  UploadActionPopup *m_popup; // x8\n  UploadActionPopup *v6; // x0\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v8; // [xsp+1Fh] [xbp-11h]\n\n  if ( a3 && ((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) == 1 )\n  {\n    if ( a1->m_message )\n    {\n      GJMessageCell::markAsRead(a1);\n      v4 = GameLevelManager::sharedState();\n      if ( GameLevelManager::deleteUserMessages(v4, a1->m_message, nullptr, a1->m_message->m_outgoing) )\n      {\n        GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate;\n        m_popup = a1->m_popup;\n        if ( m_popup )\n          m_popup->m_delegate = nullptr;\n        sub_100009900(__p, \"Deleting message...\");\n        v6 = (UploadActionPopup *)UploadActionPopup::create(&a1->UploadPopupDelegate, __p);\n        a1->m_popup = v6;\n        if ( v8 < 0 )\n        {\n          operator delete(__p[0]);\n          v6 = a1->m_popup;\n        }\n        ((void (__fastcall *)(UploadActionPopup *))v6->show)(v6);\n      }\n    }\n  }\n}", "assembly": "; \n; GJMessageCell::FLAlert_Clicked from 0x100112948 to 0x100112a08 (192 bytes)\n; \n; 2 xrefs:\n; > sub_100112A24 @ 0x100112a28\n; > <???> @ 0x10078dbb8\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, 0x100112948\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x10011294c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x100112950\nADD             X29, SP, #0x30                                         ; +0xc, 0x100112954\nCBZ             W2, loc_1001129F8                                      ; +0x10, 0x100112958\nMOV             X19, X0                                                ; +0x14, 0x10011295c\nLDR             X8, [X1]                                               ; +0x18, 0x100112960\nLDR             X8, [X8,#0x40]                                         ; +0x1c, 0x100112964\nMOV             X0, X1                                                 ; +0x20, 0x100112968\nBLR             X8                                                     ; +0x24, 0x10011296c\nCMP             W0, #1                                                 ; +0x28, 0x100112970\nB.NE            loc_1001129F8                                          ; +0x2c, 0x100112974\nLDR             X8, [X19,#0x240]                                       ; +0x30, 0x100112978\nCBZ             X8, loc_1001129F8                                      ; +0x34, 0x10011297c\nMOV             X0, X19                                                ; +0x38, 0x100112980\nBL              GJMessageCell__markAsRead                              ; +0x3c, 0x100112984\nBL              GameLevelManager__sharedState                          ; +0x40, 0x100112988\nLDR             X1, [X19,#0x240]                                       ; +0x44, 0x10011298c\nLDRB            W3, [X1,#0x1A9]                                        ; +0x48, 0x100112990\nMOV             X2, #0                                                 ; +0x4c, 0x100112994\nBL              GameLevelManager__deleteUserMessages                   ; +0x50, 0x100112998\nCBZ             W0, loc_1001129F8                                      ; +0x54, 0x10011299c\nBL              GameLevelManager__sharedState                          ; +0x58, 0x1001129a0\nADD             X8, X19, #0x238                                        ; +0x5c, 0x1001129a4\nSTR             X8, [X0,#0x328]                                        ; +0x60, 0x1001129a8\nLDR             X8, [X19,#0x248]                                       ; +0x64, 0x1001129ac\nCBZ             X8, loc_1001129B8                                      ; +0x68, 0x1001129b0\nSTR             XZR, [X8,#0x278]                                       ; +0x6c, 0x1001129b4\nADRL            X1, aDeletingMessag; \"Deleting message...\"             ; +0x70, 0x1001129b8\nADD             X0, SP, #0x30+__p; int                                 ; +0x78, 0x1001129c0\nBL              sub_100009900                                          ; +0x7c, 0x1001129c4\nADD             X0, X19, #0x230                                        ; +0x80, 0x1001129c8\nADD             X1, SP, #0x30+__p                                      ; +0x84, 0x1001129cc\nBL              UploadActionPopup__create                              ; +0x88, 0x1001129d0\nSTR             X0, [X19,#0x248]                                       ; +0x8c, 0x1001129d4\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x90, 0x1001129d8\nTBZ             W8, #0x1F, loc_1001129EC                               ; +0x94, 0x1001129dc\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x98, 0x1001129e0\nBL              __ZdlPv; operator delete(void *)                       ; +0x9c, 0x1001129e4\nLDR             X0, [X19,#0x248]                                       ; +0xa0, 0x1001129e8\nLDR             X8, [X0]                                               ; +0xa4, 0x1001129ec\nLDR             X8, [X8,#0x508]                                        ; +0xa8, 0x1001129f0\nBLR             X8                                                     ; +0xac, 0x1001129f4\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xb0, 0x1001129f8\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xb4, 0x1001129fc\nADD             SP, SP, #0x40 ; '@'                                    ; +0xb8, 0x100112a00\nRET                                                                    ; +0xbc, 0x100112a04", "xrefs": ["sub_100112A24 @ 0x100112a28", "<???> @ 0x10078dbb8"], "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"}