{"type": "func", "start": 9236744, "end": 9237132, "name": "GJMessagePopup::FLAlert_Clicked", "pseudocode": "// \n// GJMessagePopup::FLAlert_Clicked from 0x8cf108 to 0x8cf28c (388 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'GJMessagePopup::FLAlert_Clicked @ 0x8cf290\n// > <???> @ 0x757c8\n// > <???> @ 0x1199378\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 GJMessagePopup::FLAlert_Clicked(GJMessagePopup *a1, FLAlertLayer *a2, bool a3)\n{\n  int v4; // w0\n  GameLevelManager *v5; // x0\n  UploadActionPopup *m_uploadPopup; // x0\n  UploadActionPopup *v7; // x0\n  void *v8; // x3\n  unsigned int *v9; // x2\n  int v10; // w0\n  __int64 v11; // [xsp+40h] [xbp+40h] BYREF\n\n  if ( a3 )\n  {\n    v4 = a2->getTag(a2);\n    if ( v4 == 1 )\n    {\n      GJMessagePopup::blockUser(a1);\n    }\n    else if ( v4 == 2 )\n    {\n      v5 = GameLevelManager::sharedState();\n      if ( GameLevelManager::deleteUserMessages(v5, a1->m_message, nullptr, a1->m_message->m_outgoing) )\n      {\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_D153B8((int)&v11, \"Deleting message...\");\n        v7 = (UploadActionPopup *)UploadActionPopup::create((__int64)&a1->UploadPopupDelegate);\n        a1->m_uploadPopup = v7;\n        v8 = (void *)(v11 - 24);\n        if ( (__int64 *)(v11 - 24) != &qword_124B6B0 )\n        {\n          if ( &pthread_create )\n          {\n            v9 = (unsigned int *)(v11 - 8);\n            do\n              v10 = __ldaxr(v9);\n            while ( __stlxr(v10 - 1, v9) );\n          }\n          else\n          {\n            v10 = *(_DWORD *)(v11 - 8);\n            *(_DWORD *)(v11 - 8) = v10 - 1;\n          }\n          if ( v10 <= 0 )\n            operator delete(v8);\n          v7 = a1->m_uploadPopup;\n        }\n        v7->show(v7);\n      }\n    }\n  }\n}", "assembly": "; \n; GJMessagePopup::FLAlert_Clicked from 0x8cf108 to 0x8cf28c (388 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'GJMessagePopup::FLAlert_Clicked @ 0x8cf290\n; > <???> @ 0x757c8\n; > <???> @ 0x1199378\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\nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x8cf108\nUXTB            W2, W2                                                 ; +0x4, 0x8cf10c\nMOV             X29, SP                                                ; +0x8, 0x8cf110\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0xc, 0x8cf114\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x8cf118\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x14, 0x8cf11c\nMOV             X20, X0                                                ; +0x18, 0x8cf120\nLDR             X3, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x8cf124\nLDR             X3, [X3]                                               ; +0x20, 0x8cf128\nSTR             X3, [X29,#0x50+var_8]                                  ; +0x24, 0x8cf12c\nCBNZ            W2, loc_8CF158                                         ; +0x28, 0x8cf130\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x2c, 0x8cf134\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x30, 0x8cf138\nLDR             X0, [X19]                                              ; +0x34, 0x8cf13c\nCMP             X1, X0                                                 ; +0x38, 0x8cf140\nB.NE            loc_8CF25C                                             ; +0x3c, 0x8cf144\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x40, 0x8cf148\nLDR             X21, [SP,#0x50+var_30]                                 ; +0x44, 0x8cf14c\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x48, 0x8cf150\nRET                                                                    ; +0x4c, 0x8cf154\nLDR             X2, [X1]                                               ; +0x50, 0x8cf158\nMOV             X0, X1                                                 ; +0x54, 0x8cf15c\nLDR             X1, [X2,#0x40]                                         ; +0x58, 0x8cf160\nBLR             X1                                                     ; +0x5c, 0x8cf164\nCMP             W0, #1                                                 ; +0x60, 0x8cf168\nB.EQ            loc_8CF1FC                                             ; +0x64, 0x8cf16c\nCMP             W0, #2                                                 ; +0x68, 0x8cf170\nB.NE            loc_8CF134                                             ; +0x6c, 0x8cf174\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x70, 0x8cf178\nLDR             X1, [X20,#0x2A8]; GJUserMessage *                      ; +0x74, 0x8cf17c\nMOV             X2, #0; cocos2d::CCArray *                             ; +0x78, 0x8cf180\nLDRB            W3, [X1,#0x169]; bool                                  ; +0x7c, 0x8cf184\nBL              _ZN16GameLevelManager18deleteUserMessagesEP13GJUserMessagePN7cocos2d7CCArrayEb; GameLevelManager::deleteUserMessages(GJUserMessage *,cocos2d::CCArray *,bool) ; +0x80, 0x8cf188\nUXTB            W0, W0; this                                           ; +0x84, 0x8cf18c\nCBZ             W0, loc_8CF134                                         ; +0x88, 0x8cf190\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x8c, 0x8cf194\nADD             X1, X20, #0x278                                        ; +0x90, 0x8cf198\nSTR             X1, [X0,#0x338]                                        ; +0x94, 0x8cf19c\nLDR             X0, [X20,#0x2C0]                                       ; +0x98, 0x8cf1a0\nCBZ             X0, loc_8CF1AC                                         ; +0x9c, 0x8cf1a4\nSTR             XZR, [X0,#0x278]                                       ; +0xa0, 0x8cf1a8\nADD             X21, X29, #0x50+var_10                                 ; +0xa4, 0x8cf1ac\nADRP            X1, #aDeletingMessag@PAGE; \"Deleting message...\"       ; +0xa8, 0x8cf1b0\nMOV             X0, X21; int                                           ; +0xac, 0x8cf1b4\nADD             X1, X1, #aDeletingMessag@PAGEOFF; \"Deleting message...\" ; +0xb0, 0x8cf1b8\nADD             X2, X29, #0x50+var_20                                  ; +0xb4, 0x8cf1bc\nBL              sub_D153B8                                             ; +0xb8, 0x8cf1c0\nADD             X0, X20, #0x280                                        ; +0xbc, 0x8cf1c4\nMOV             X1, X21                                                ; +0xc0, 0x8cf1c8\nBL              _ZN17UploadActionPopup6createEP19UploadPopupDelegateSs; UploadActionPopup::create(UploadPopupDelegate *,std::string) ; +0xc4, 0x8cf1cc\nADRP            X1, #off_122EFE8@PAGE                                  ; +0xc8, 0x8cf1d0\nSTR             X0, [X20,#0x2C0]                                       ; +0xcc, 0x8cf1d4\nLDR             X2, [X29,#0x50+var_10]                                 ; +0xd0, 0x8cf1d8\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0xd4, 0x8cf1dc\nSUB             X3, X2, #0x18                                          ; +0xd8, 0x8cf1e0\nCMP             X3, X1                                                 ; +0xdc, 0x8cf1e4\nB.NE            loc_8CF208                                             ; +0xe0, 0x8cf1e8\nLDR             X1, [X0]                                               ; +0xe4, 0x8cf1ec\nLDR             X1, [X1,#0x508]                                        ; +0xe8, 0x8cf1f0\nBLR             X1                                                     ; +0xec, 0x8cf1f4\nB               loc_8CF134                                             ; +0xf0, 0x8cf1f8\nMOV             X0, X20; this                                          ; +0xf4, 0x8cf1fc\nBL              _ZN14GJMessagePopup9blockUserEv; GJMessagePopup::blockUser(void) ; +0xf8, 0x8cf200\nB               loc_8CF134                                             ; +0xfc, 0x8cf204\nADRP            X0, #pthread_create_ptr_0@PAGE                         ; +0x100, 0x8cf208\nLDR             X0, [X0,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0x104, 0x8cf20c\nCBZ             X0, loc_8CF24C                                         ; +0x108, 0x8cf210\nSUB             X2, X2, #8                                             ; +0x10c, 0x8cf214\nLDAXR           W0, [X2]                                               ; +0x110, 0x8cf218\nSUB             W1, W0, #1                                             ; +0x114, 0x8cf21c\nSTLXR           W4, W1, [X2]                                           ; +0x118, 0x8cf220\nCBNZ            W4, loc_8CF218                                         ; +0x11c, 0x8cf224\nCMP             W0, WZR                                                ; +0x120, 0x8cf228\nB.LE            loc_8CF238                                             ; +0x124, 0x8cf22c\nLDR             X0, [X20,#0x2C0]                                       ; +0x128, 0x8cf230\nB               loc_8CF1EC                                             ; +0x12c, 0x8cf234\nMOV             X0, X3; p                                              ; +0x130, 0x8cf238\nADD             X1, X29, #0x50+var_18                                  ; +0x134, 0x8cf23c\nBL              j__ZdlPv; operator delete(void *)                      ; +0x138, 0x8cf240\nLDR             X0, [X20,#0x2C0]                                       ; +0x13c, 0x8cf244\nB               loc_8CF1EC                                             ; +0x140, 0x8cf248\nLDUR            W0, [X2,#-8]                                           ; +0x144, 0x8cf24c\nSUB             W1, W0, #1                                             ; +0x148, 0x8cf250\nSTUR            W1, [X2,#-8]                                           ; +0x14c, 0x8cf254\nB               loc_8CF228                                             ; +0x150, 0x8cf258\nBL              .__stack_chk_fail                                      ; +0x154, 0x8cf25c\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x158, 0x8cf260\nMOV             X19, X0                                                ; +0x15c, 0x8cf264\nLDR             X0, [X29,#0x50+var_10]                                 ; +0x160, 0x8cf268\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x164, 0x8cf26c\nSUB             X0, X0, #0x18                                          ; +0x168, 0x8cf270\nCMP             X0, X1                                                 ; +0x16c, 0x8cf274\nB.EQ            loc_8CF284                                             ; +0x170, 0x8cf278\nADD             X1, X29, #0x50+var_18                                  ; +0x174, 0x8cf27c\nBL              sub_4DC698                                             ; +0x178, 0x8cf280\nMOV             X0, X19                                                ; +0x17c, 0x8cf284\nBL              _Unwind_Resume                                         ; +0x180, 0x8cf288", "xrefs": ["`non-virtual thunk to'GJMessagePopup::FLAlert_Clicked @ 0x8cf290", "<???> @ 0x757c8", "<???> @ 0x1199378"], "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"}