{"type": "func", "start": 9225972, "end": 9226260, "name": "GJMessagePopup::uploadActionFailed", "pseudocode": "// \n// GJMessagePopup::uploadActionFailed from 0x8cc6f4 to 0x8cc814 (288 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'GJMessagePopup::uploadActionFailed @ 0x8cc818\n// > <???> @ 0x5f970\n// > <???> @ 0x1199368\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::uploadActionFailed(GJMessagePopup *a1, int a2, int a3)\n{\n  GJUserMessage *m_message; // x3\n  UploadActionPopup *m_uploadPopup; // x20\n  char *v5; // x0\n  unsigned int *v6; // x2\n  int v7; // w1\n  char *v8; // [xsp+40h] [xbp+40h] BYREF\n\n  m_message = a1->m_message;\n  if ( m_message->m_messageID == a2 || a3 == 34 && a2 == m_message->m_accountID )\n  {\n    m_uploadPopup = a1->m_uploadPopup;\n    if ( m_uploadPopup )\n    {\n      sub_D153B8((int)&v8, \"Failed. Please try again later.\");\n      UploadActionPopup::showFailMessage((__int64)m_uploadPopup, &v8);\n      v5 = v8 - 24;\n      if ( v8 - 24 != (char *)&qword_124B6B0 )\n      {\n        if ( &pthread_create )\n        {\n          v6 = (unsigned int *)(v8 - 8);\n          do\n            v7 = __ldaxr(v6);\n          while ( __stlxr(v7 - 1, v6) );\n        }\n        else\n        {\n          v7 = *((_DWORD *)v8 - 2);\n          *((_DWORD *)v8 - 2) = v7 - 1;\n        }\n        if ( v7 <= 0 )\n          operator delete(v5);\n      }\n    }\n  }\n}", "assembly": "; \n; GJMessagePopup::uploadActionFailed from 0x8cc6f4 to 0x8cc814 (288 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'GJMessagePopup::uploadActionFailed @ 0x8cc818\n; > <???> @ 0x5f970\n; > <???> @ 0x1199368\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, 0x8cc6f4\nMOV             X29, SP                                                ; +0x4, 0x8cc6f8\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x8cc6fc\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x8cc700\nLDR             X3, [X0,#0x2A8]                                        ; +0x10, 0x8cc704\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x14, 0x8cc708\nLDR             X5, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x8cc70c\nLDR             W4, [X3,#0x13C]                                        ; +0x1c, 0x8cc710\nLDR             X5, [X5]                                               ; +0x20, 0x8cc714\nCMP             W4, W1                                                 ; +0x24, 0x8cc718\nSTR             X5, [X29,#0x50+var_8]                                  ; +0x28, 0x8cc71c\nB.EQ            loc_8CC75C                                             ; +0x2c, 0x8cc720\nCMP             W2, #0x22 ; '\"'                                        ; +0x30, 0x8cc724\nB.EQ            loc_8CC750                                             ; +0x34, 0x8cc728\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x38, 0x8cc72c\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x3c, 0x8cc730\nLDR             X0, [X19]                                              ; +0x40, 0x8cc734\nCMP             X1, X0                                                 ; +0x44, 0x8cc738\nB.NE            loc_8CC7E4                                             ; +0x48, 0x8cc73c\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x4c, 0x8cc740\nLDR             X21, [SP,#0x50+var_30]                                 ; +0x50, 0x8cc744\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x54, 0x8cc748\nRET                                                                    ; +0x58, 0x8cc74c\nLDR             W2, [X3,#0x140]                                        ; +0x5c, 0x8cc750\nCMP             W1, W2                                                 ; +0x60, 0x8cc754\nB.NE            loc_8CC72C                                             ; +0x64, 0x8cc758\nLDR             X20, [X0,#0x2C0]                                       ; +0x68, 0x8cc75c\nCBZ             X20, loc_8CC72C                                        ; +0x6c, 0x8cc760\nADD             X21, X29, #0x50+var_10                                 ; +0x70, 0x8cc764\nADRP            X1, #aFailedPleaseTr@PAGE; \"Failed. Please try again later.\" ; +0x74, 0x8cc768\nMOV             X0, X21; int                                           ; +0x78, 0x8cc76c\nADD             X1, X1, #aFailedPleaseTr@PAGEOFF; \"Failed. Please try again later.\" ; +0x7c, 0x8cc770\nADD             X2, X29, #0x50+var_20                                  ; +0x80, 0x8cc774\nBL              sub_D153B8                                             ; +0x84, 0x8cc778\nMOV             X0, X20                                                ; +0x88, 0x8cc77c\nMOV             X1, X21                                                ; +0x8c, 0x8cc780\nBL              _ZN17UploadActionPopup15showFailMessageESs; UploadActionPopup::showFailMessage(std::string) ; +0x90, 0x8cc784\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x94, 0x8cc788\nLDR             X2, [X29,#0x50+var_10]                                 ; +0x98, 0x8cc78c\nSUB             X0, X2, #0x18; p                                       ; +0x9c, 0x8cc790\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0xa0, 0x8cc794\nCMP             X0, X1                                                 ; +0xa4, 0x8cc798\nB.EQ            loc_8CC72C                                             ; +0xa8, 0x8cc79c\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xac, 0x8cc7a0\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xb0, 0x8cc7a4\nCBZ             X1, loc_8CC7D4                                         ; +0xb4, 0x8cc7a8\nSUB             X2, X2, #8                                             ; +0xb8, 0x8cc7ac\nLDAXR           W1, [X2]                                               ; +0xbc, 0x8cc7b0\nSUB             W3, W1, #1                                             ; +0xc0, 0x8cc7b4\nSTLXR           W4, W3, [X2]                                           ; +0xc4, 0x8cc7b8\nCBNZ            W4, loc_8CC7B0                                         ; +0xc8, 0x8cc7bc\nCMP             W1, WZR                                                ; +0xcc, 0x8cc7c0\nB.GT            loc_8CC72C                                             ; +0xd0, 0x8cc7c4\nADD             X1, X29, #0x50+var_18                                  ; +0xd4, 0x8cc7c8\nBL              j__ZdlPv; operator delete(void *)                      ; +0xd8, 0x8cc7cc\nB               loc_8CC72C                                             ; +0xdc, 0x8cc7d0\nLDUR            W1, [X2,#-8]                                           ; +0xe0, 0x8cc7d4\nSUB             W3, W1, #1                                             ; +0xe4, 0x8cc7d8\nSTUR            W3, [X2,#-8]                                           ; +0xe8, 0x8cc7dc\nB               loc_8CC7C0                                             ; +0xec, 0x8cc7e0\nBL              .__stack_chk_fail                                      ; +0xf0, 0x8cc7e4\nADRP            X1, #off_122EFE8@PAGE                                  ; +0xf4, 0x8cc7e8\nMOV             X19, X0                                                ; +0xf8, 0x8cc7ec\nLDR             X0, [X29,#0x50+var_10]                                 ; +0xfc, 0x8cc7f0\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x100, 0x8cc7f4\nSUB             X0, X0, #0x18                                          ; +0x104, 0x8cc7f8\nCMP             X0, X1                                                 ; +0x108, 0x8cc7fc\nB.EQ            loc_8CC80C                                             ; +0x10c, 0x8cc800\nADD             X1, X29, #0x50+var_18                                  ; +0x110, 0x8cc804\nBL              sub_4DC698                                             ; +0x114, 0x8cc808\nMOV             X0, X19                                                ; +0x118, 0x8cc80c\nBL              _Unwind_Resume                                         ; +0x11c, 0x8cc810", "xrefs": ["`non-virtual thunk to'GJMessagePopup::uploadActionFailed @ 0x8cc818", "<???> @ 0x5f970", "<???> @ 0x1199368"], "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"}