{"type": "func", "start": 9236436, "end": 9236744, "name": "GJMessagePopup::blockUser", "pseudocode": "// \n// GJMessagePopup::blockUser from 0x8cefd4 to 0x8cf108 (308 bytes)\n// \n// 2 xrefs:\n// > GJMessagePopup::FLAlert_Clicked @ 0x8cf200\n// > <???> @ 0x61e60\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::blockUser(GJMessagePopup *a1)\n{\n  GameLevelManager *v2; // x0\n  UploadActionPopup *m_uploadPopup; // x0\n  void *v4; // x3\n  unsigned int *v5; // x2\n  int v6; // w0\n  __int64 v7; // [xsp+40h] [xbp+40h] BYREF\n\n  v2 = GameLevelManager::sharedState();\n  if ( GameLevelManager::blockUser(v2, a1->m_message->m_accountID) )\n  {\n    sub_D153B8((int)&v7, \"Blocking user...\");\n    m_uploadPopup = (UploadActionPopup *)UploadActionPopup::create((__int64)&a1->UploadPopupDelegate);\n    a1->m_uploadPopup = m_uploadPopup;\n    v4 = (void *)(v7 - 24);\n    if ( (__int64 *)(v7 - 24) != &qword_124B6B0 )\n    {\n      if ( &pthread_create )\n      {\n        v5 = (unsigned int *)(v7 - 8);\n        do\n          v6 = __ldaxr(v5);\n        while ( __stlxr(v6 - 1, v5) );\n      }\n      else\n      {\n        v6 = *(_DWORD *)(v7 - 8);\n        *(_DWORD *)(v7 - 8) = v6 - 1;\n      }\n      if ( v6 <= 0 )\n        operator delete(v4);\n      m_uploadPopup = a1->m_uploadPopup;\n    }\n    m_uploadPopup->show(m_uploadPopup);\n  }\n}", "assembly": "; \n; GJMessagePopup::blockUser from 0x8cefd4 to 0x8cf108 (308 bytes)\n; \n; 2 xrefs:\n; > GJMessagePopup::FLAlert_Clicked @ 0x8cf200\n; > <???> @ 0x61e60\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, 0x8cefd4\nMOV             X29, SP                                                ; +0x4, 0x8cefd8\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x8cefdc\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x8cefe0\nMOV             X20, X0                                                ; +0x10, 0x8cefe4\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x14, 0x8cefe8\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x8cefec\nLDR             X0, [X0]; this                                         ; +0x1c, 0x8ceff0\nSTR             X0, [X29,#0x50+var_8]                                  ; +0x20, 0x8ceff4\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x24, 0x8ceff8\nLDR             X1, [X20,#0x2A8]                                       ; +0x28, 0x8ceffc\nLDR             W1, [X1,#0x140]; int                                   ; +0x2c, 0x8cf000\nBL              _ZN16GameLevelManager9blockUserEi; GameLevelManager::blockUser(int) ; +0x30, 0x8cf004\nUXTB            W0, W0                                                 ; +0x34, 0x8cf008\nCBNZ            W0, loc_8CF034                                         ; +0x38, 0x8cf00c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x3c, 0x8cf010\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x40, 0x8cf014\nLDR             X0, [X19]                                              ; +0x44, 0x8cf018\nCMP             X1, X0                                                 ; +0x48, 0x8cf01c\nB.NE            loc_8CF0D8                                             ; +0x4c, 0x8cf020\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x50, 0x8cf024\nLDR             X21, [SP,#0x50+var_30]                                 ; +0x54, 0x8cf028\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x58, 0x8cf02c\nRET                                                                    ; +0x5c, 0x8cf030\nADD             X21, X29, #0x50+var_10                                 ; +0x60, 0x8cf034\nADRP            X1, #aBlockingUser@PAGE; \"Blocking user...\"            ; +0x64, 0x8cf038\nMOV             X0, X21; int                                           ; +0x68, 0x8cf03c\nADD             X1, X1, #aBlockingUser@PAGEOFF; \"Blocking user...\"     ; +0x6c, 0x8cf040\nADD             X2, X29, #0x50+var_20                                  ; +0x70, 0x8cf044\nBL              sub_D153B8                                             ; +0x74, 0x8cf048\nADD             X0, X20, #0x280                                        ; +0x78, 0x8cf04c\nMOV             X1, X21                                                ; +0x7c, 0x8cf050\nBL              _ZN17UploadActionPopup6createEP19UploadPopupDelegateSs; UploadActionPopup::create(UploadPopupDelegate *,std::string) ; +0x80, 0x8cf054\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x84, 0x8cf058\nSTR             X0, [X20,#0x2C0]                                       ; +0x88, 0x8cf05c\nLDR             X2, [X29,#0x50+var_10]                                 ; +0x8c, 0x8cf060\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x90, 0x8cf064\nSUB             X3, X2, #0x18                                          ; +0x94, 0x8cf068\nCMP             X3, X1                                                 ; +0x98, 0x8cf06c\nB.NE            loc_8CF084                                             ; +0x9c, 0x8cf070\nLDR             X1, [X0]                                               ; +0xa0, 0x8cf074\nLDR             X1, [X1,#0x508]                                        ; +0xa4, 0x8cf078\nBLR             X1                                                     ; +0xa8, 0x8cf07c\nB               loc_8CF010                                             ; +0xac, 0x8cf080\nADRP            X0, #pthread_create_ptr_0@PAGE                         ; +0xb0, 0x8cf084\nLDR             X0, [X0,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xb4, 0x8cf088\nCBZ             X0, loc_8CF0C8                                         ; +0xb8, 0x8cf08c\nSUB             X2, X2, #8                                             ; +0xbc, 0x8cf090\nLDAXR           W0, [X2]                                               ; +0xc0, 0x8cf094\nSUB             W1, W0, #1                                             ; +0xc4, 0x8cf098\nSTLXR           W4, W1, [X2]                                           ; +0xc8, 0x8cf09c\nCBNZ            W4, loc_8CF094                                         ; +0xcc, 0x8cf0a0\nCMP             W0, WZR                                                ; +0xd0, 0x8cf0a4\nB.LE            loc_8CF0B4                                             ; +0xd4, 0x8cf0a8\nLDR             X0, [X20,#0x2C0]                                       ; +0xd8, 0x8cf0ac\nB               loc_8CF074                                             ; +0xdc, 0x8cf0b0\nMOV             X0, X3; p                                              ; +0xe0, 0x8cf0b4\nADD             X1, X29, #0x50+var_18                                  ; +0xe4, 0x8cf0b8\nBL              j__ZdlPv; operator delete(void *)                      ; +0xe8, 0x8cf0bc\nLDR             X0, [X20,#0x2C0]                                       ; +0xec, 0x8cf0c0\nB               loc_8CF074                                             ; +0xf0, 0x8cf0c4\nLDUR            W0, [X2,#-8]                                           ; +0xf4, 0x8cf0c8\nSUB             W1, W0, #1                                             ; +0xf8, 0x8cf0cc\nSTUR            W1, [X2,#-8]                                           ; +0xfc, 0x8cf0d0\nB               loc_8CF0A4                                             ; +0x100, 0x8cf0d4\nBL              .__stack_chk_fail                                      ; +0x104, 0x8cf0d8\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x108, 0x8cf0dc\nMOV             X19, X0                                                ; +0x10c, 0x8cf0e0\nLDR             X0, [X29,#0x50+var_10]                                 ; +0x110, 0x8cf0e4\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x114, 0x8cf0e8\nSUB             X0, X0, #0x18                                          ; +0x118, 0x8cf0ec\nCMP             X0, X1                                                 ; +0x11c, 0x8cf0f0\nB.EQ            loc_8CF100                                             ; +0x120, 0x8cf0f4\nADD             X1, X29, #0x50+var_18                                  ; +0x124, 0x8cf0f8\nBL              sub_4DC698                                             ; +0x128, 0x8cf0fc\nMOV             X0, X19                                                ; +0x12c, 0x8cf100\nBL              _Unwind_Resume                                         ; +0x130, 0x8cf104", "xrefs": ["GJMessagePopup::FLAlert_Clicked @ 0x8cf200", "<???> @ 0x61e60"], "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"}