{"type": "func", "start": 6344276, "end": 6344564, "name": "GJMessageCell::uploadActionFailed", "pseudocode": "// \n// GJMessageCell::uploadActionFailed from 0x60ce54 to 0x60cf74 (288 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'GJMessageCell::uploadActionFailed @ 0x60cf78\n// > <???> @ 0x4b600\n// > <???> @ 0x11514b0\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 GJMessageCell::uploadActionFailed(GJMessageCell *a1, int a2, int a3)\n{\n  UploadActionPopup *m_popup; // x21\n  void *v5; // x0\n  unsigned int *v6; // x2\n  int v7; // w1\n  __int64 v8; // [xsp+40h] [xbp+40h] BYREF\n\n  if ( a1->m_message->m_messageID == a2 )\n  {\n    m_popup = a1->m_popup;\n    if ( m_popup )\n    {\n      sub_D153B8((int)&v8, \"Failed. Please try again later.\");\n      UploadActionPopup::showFailMessage(m_popup, (std::string)&v8);\n      v5 = (void *)(v8 - 24);\n      if ( (__int64 *)(v8 - 24) != &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 - 8);\n          *(_DWORD *)(v8 - 8) = v7 - 1;\n        }\n        if ( v7 <= 0 )\n          operator delete(v5);\n      }\n      a1->m_popup->m_delegate = nullptr;\n      a1->m_popup = nullptr;\n    }\n  }\n}", "assembly": "; \n; GJMessageCell::uploadActionFailed from 0x60ce54 to 0x60cf74 (288 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'GJMessageCell::uploadActionFailed @ 0x60cf78\n; > <???> @ 0x4b600\n; > <???> @ 0x11514b0\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, 0x60ce54\nMOV             X29, SP                                                ; +0x4, 0x60ce58\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x60ce5c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x60ce60\nMOV             X20, X0                                                ; +0x10, 0x60ce64\nLDR             X0, [X0,#0x230]                                        ; +0x14, 0x60ce68\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x18, 0x60ce6c\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x60ce70\nLDR             W0, [X0,#0x13C]                                        ; +0x20, 0x60ce74\nLDR             X2, [X2]                                               ; +0x24, 0x60ce78\nCMP             W0, W1                                                 ; +0x28, 0x60ce7c\nSTR             X2, [X29,#0x50+var_8]                                  ; +0x2c, 0x60ce80\nB.EQ            loc_60CEAC                                             ; +0x30, 0x60ce84\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x34, 0x60ce88\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x38, 0x60ce8c\nLDR             X0, [X19]                                              ; +0x3c, 0x60ce90\nCMP             X1, X0                                                 ; +0x40, 0x60ce94\nB.NE            loc_60CF44                                             ; +0x44, 0x60ce98\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x48, 0x60ce9c\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x4c, 0x60cea0\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x50, 0x60cea4\nRET                                                                    ; +0x54, 0x60cea8\nLDR             X21, [X20,#0x238]                                      ; +0x58, 0x60ceac\nCBZ             X21, loc_60CE88                                        ; +0x5c, 0x60ceb0\nADD             X22, X29, #0x50+var_10                                 ; +0x60, 0x60ceb4\nADRP            X1, #aFailedPleaseTr@PAGE; \"Failed. Please try again later.\" ; +0x64, 0x60ceb8\nMOV             X0, X22; int                                           ; +0x68, 0x60cebc\nADD             X1, X1, #aFailedPleaseTr@PAGEOFF; \"Failed. Please try again later.\" ; +0x6c, 0x60cec0\nADD             X2, X29, #0x50+var_20                                  ; +0x70, 0x60cec4\nBL              sub_D153B8                                             ; +0x74, 0x60cec8\nMOV             X0, X21                                                ; +0x78, 0x60cecc\nMOV             X1, X22                                                ; +0x7c, 0x60ced0\nBL              _ZN17UploadActionPopup15showFailMessageESs; UploadActionPopup::showFailMessage(std::string) ; +0x80, 0x60ced4\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x84, 0x60ced8\nLDR             X2, [X29,#0x50+var_10]                                 ; +0x88, 0x60cedc\nSUB             X0, X2, #0x18; p                                       ; +0x8c, 0x60cee0\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x90, 0x60cee4\nCMP             X0, X1                                                 ; +0x94, 0x60cee8\nB.NE            loc_60CF00                                             ; +0x98, 0x60ceec\nLDR             X0, [X20,#0x238]                                       ; +0x9c, 0x60cef0\nSTR             XZR, [X0,#0x278]                                       ; +0xa0, 0x60cef4\nSTR             XZR, [X20,#0x238]                                      ; +0xa4, 0x60cef8\nB               loc_60CE88                                             ; +0xa8, 0x60cefc\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xac, 0x60cf00\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xb0, 0x60cf04\nCBZ             X1, loc_60CF34                                         ; +0xb4, 0x60cf08\nSUB             X2, X2, #8                                             ; +0xb8, 0x60cf0c\nLDAXR           W1, [X2]                                               ; +0xbc, 0x60cf10\nSUB             W3, W1, #1                                             ; +0xc0, 0x60cf14\nSTLXR           W4, W3, [X2]                                           ; +0xc4, 0x60cf18\nCBNZ            W4, loc_60CF10                                         ; +0xc8, 0x60cf1c\nCMP             W1, WZR                                                ; +0xcc, 0x60cf20\nB.GT            loc_60CEF0                                             ; +0xd0, 0x60cf24\nADD             X1, X29, #0x50+var_18                                  ; +0xd4, 0x60cf28\nBL              j__ZdlPv; operator delete(void *)                      ; +0xd8, 0x60cf2c\nB               loc_60CEF0                                             ; +0xdc, 0x60cf30\nLDUR            W1, [X2,#-8]                                           ; +0xe0, 0x60cf34\nSUB             W3, W1, #1                                             ; +0xe4, 0x60cf38\nSTUR            W3, [X2,#-8]                                           ; +0xe8, 0x60cf3c\nB               loc_60CF20                                             ; +0xec, 0x60cf40\nBL              .__stack_chk_fail                                      ; +0xf0, 0x60cf44\nADRP            X1, #off_122EFE8@PAGE                                  ; +0xf4, 0x60cf48\nMOV             X19, X0                                                ; +0xf8, 0x60cf4c\nLDR             X0, [X29,#0x50+var_10]                                 ; +0xfc, 0x60cf50\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x100, 0x60cf54\nSUB             X0, X0, #0x18                                          ; +0x104, 0x60cf58\nCMP             X0, X1                                                 ; +0x108, 0x60cf5c\nB.EQ            loc_60CF6C                                             ; +0x10c, 0x60cf60\nADD             X1, X29, #0x50+var_18                                  ; +0x110, 0x60cf64\nBL              sub_4DB620                                             ; +0x114, 0x60cf68\nMOV             X0, X19                                                ; +0x118, 0x60cf6c\nBL              _Unwind_Resume                                         ; +0x11c, 0x60cf70", "xrefs": ["`non-virtual thunk to'GJMessageCell::uploadActionFailed @ 0x60cf78", "<???> @ 0x4b600", "<???> @ 0x11514b0"], "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"}