{"type": "func", "start": 6336084, "end": 6336444, "name": "GJMessageCell::onDeleteMessage", "pseudocode": "// \n// GJMessageCell::onDeleteMessage from 0x60ae54 to 0x60afbc (360 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x7cbc0\n// > GJMessageCell::loadFromMessage @ 0x61d03c\n// > <???> @ 0x122c2f8\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::onDeleteMessage(GJMessageCell *a1, cocos2d::CCObject *a2)\n{\n  int v2; // w20\n  GJUserMessage *m_message; // x0\n  FLAlertLayer *v4; // x20\n  void *v5; // x0\n  unsigned int *v6; // x2\n  int v7; // w1\n  __int64 v8; // [xsp+40h] [xbp+40h] BYREF\n\n  v2 = (int)a1;\n  m_message = a1->m_message;\n  if ( m_message && m_message->m_accountID > 0 )\n  {\n    sub_D153B8((int)&v8, \"Are you sure you want to <cr>delete</c> this message?\");\n    v4 = FLAlertLayer::create(v2 + 536, (__int64)\"Delete\", (__int64)&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    ButtonSprite::updateBGImage(v4->m_button2, \"GJ_button_06.png\");\n    v4->setTag(v4, 1);\n    v4->show(v4);\n  }\n}", "assembly": "; \n; GJMessageCell::onDeleteMessage from 0x60ae54 to 0x60afbc (360 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x7cbc0\n; > GJMessageCell::loadFromMessage @ 0x61d03c\n; > <???> @ 0x122c2f8\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, 0x60ae54\nMOV             X29, SP                                                ; +0x4, 0x60ae58\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x60ae5c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x60ae60\nMOV             X20, X0                                                ; +0x10, 0x60ae64\nLDR             X0, [X0,#0x230]                                        ; +0x14, 0x60ae68\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x18, 0x60ae6c\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x60ae70\nLDR             X1, [X1]                                               ; +0x20, 0x60ae74\nSTR             X1, [X29,#0x50+var_8]                                  ; +0x24, 0x60ae78\nCBZ             X0, loc_60AF24                                         ; +0x28, 0x60ae7c\nLDR             W0, [X0,#0x140]                                        ; +0x2c, 0x60ae80\nCMP             W0, WZR                                                ; +0x30, 0x60ae84\nB.LE            loc_60AF24                                             ; +0x34, 0x60ae88\nADD             X21, X29, #0x50+var_10                                 ; +0x38, 0x60ae8c\nADRP            X1, #aAreYouSureYouW_1@PAGE; \"Are you sure you want to <cr>delete</c>\"... ; +0x3c, 0x60ae90\nMOV             X0, X21; int                                           ; +0x40, 0x60ae94\nADD             X1, X1, #aAreYouSureYouW_1@PAGEOFF; \"Are you sure you want to <cr>delete</c>\"... ; +0x44, 0x60ae98\nADD             X2, X29, #0x50+var_20                                  ; +0x48, 0x60ae9c\nBL              sub_D153B8                                             ; +0x4c, 0x60aea0\nADRP            X1, #aDelete@PAGE; \"Delete\"                            ; +0x50, 0x60aea4\nADRP            X3, #aBack@PAGE; \"Back\"                                ; +0x54, 0x60aea8\nLDR             S0, =0x43BE0000                                        ; +0x58, 0x60aeac\nADD             X1, X1, #aDelete@PAGEOFF; \"Delete\"                     ; +0x5c, 0x60aeb0\nFMOV            S1, WZR                                                ; +0x60, 0x60aeb4\nADD             X0, X20, #0x218                                        ; +0x64, 0x60aeb8\nMOV             X2, X21                                                ; +0x68, 0x60aebc\nADD             X3, X3, #aBack@PAGEOFF; \"Back\"                         ; +0x6c, 0x60aec0\nMOV             X4, X1                                                 ; +0x70, 0x60aec4\nMOV             W5, #0                                                 ; +0x74, 0x60aec8\nFMOV            S2, #1.0                                               ; +0x78, 0x60aecc\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcSsS3_S3_fbff; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float,bool,float,float) ; +0x7c, 0x60aed0\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x80, 0x60aed4\nLDR             X2, [X29,#0x50+var_10]                                 ; +0x84, 0x60aed8\nMOV             X20, X0                                                ; +0x88, 0x60aedc\nSUB             X0, X2, #0x18; p                                       ; +0x8c, 0x60aee0\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x90, 0x60aee4\nCMP             X0, X1                                                 ; +0x94, 0x60aee8\nB.NE            loc_60AF48                                             ; +0x98, 0x60aeec\nLDR             X0, [X20,#0x258]; this                                 ; +0x9c, 0x60aef0\nADRL            X1, aGjButton06Png; \"GJ_button_06.png\"                 ; +0xa0, 0x60aef4\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0xa8, 0x60aefc\nLDR             X2, [X20]                                              ; +0xac, 0x60af00\nMOV             X0, X20                                                ; +0xb0, 0x60af04\nMOV             W1, #1                                                 ; +0xb4, 0x60af08\nLDR             X2, [X2,#0x48]                                         ; +0xb8, 0x60af0c\nBLR             X2                                                     ; +0xbc, 0x60af10\nLDR             X1, [X20]                                              ; +0xc0, 0x60af14\nMOV             X0, X20                                                ; +0xc4, 0x60af18\nLDR             X1, [X1,#0x508]                                        ; +0xc8, 0x60af1c\nBLR             X1                                                     ; +0xcc, 0x60af20\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xd0, 0x60af24\nLDR             X1, [X29,#0x50+var_8]                                  ; +0xd4, 0x60af28\nLDR             X0, [X19]                                              ; +0xd8, 0x60af2c\nCMP             X1, X0                                                 ; +0xdc, 0x60af30\nB.NE            loc_60AF8C                                             ; +0xe0, 0x60af34\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xe4, 0x60af38\nLDR             X21, [SP,#0x50+var_30]                                 ; +0xe8, 0x60af3c\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xec, 0x60af40\nRET                                                                    ; +0xf0, 0x60af44\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xf4, 0x60af48\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xf8, 0x60af4c\nCBZ             X1, loc_60AF7C                                         ; +0xfc, 0x60af50\nSUB             X2, X2, #8                                             ; +0x100, 0x60af54\nLDAXR           W1, [X2]                                               ; +0x104, 0x60af58\nSUB             W3, W1, #1                                             ; +0x108, 0x60af5c\nSTLXR           W4, W3, [X2]                                           ; +0x10c, 0x60af60\nCBNZ            W4, loc_60AF58                                         ; +0x110, 0x60af64\nCMP             W1, WZR                                                ; +0x114, 0x60af68\nB.GT            loc_60AEF0                                             ; +0x118, 0x60af6c\nADD             X1, X29, #0x50+var_18                                  ; +0x11c, 0x60af70\nBL              j__ZdlPv; operator delete(void *)                      ; +0x120, 0x60af74\nB               loc_60AEF0                                             ; +0x124, 0x60af78\nLDUR            W1, [X2,#-8]                                           ; +0x128, 0x60af7c\nSUB             W3, W1, #1                                             ; +0x12c, 0x60af80\nSTUR            W3, [X2,#-8]                                           ; +0x130, 0x60af84\nB               loc_60AF68                                             ; +0x134, 0x60af88\nBL              .__stack_chk_fail                                      ; +0x138, 0x60af8c\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x13c, 0x60af90\nMOV             X19, X0                                                ; +0x140, 0x60af94\nLDR             X0, [X29,#0x50+var_10]                                 ; +0x144, 0x60af98\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x148, 0x60af9c\nSUB             X0, X0, #0x18                                          ; +0x14c, 0x60afa0\nCMP             X0, X1                                                 ; +0x150, 0x60afa4\nB.EQ            loc_60AFB4                                             ; +0x154, 0x60afa8\nADD             X1, X29, #0x50+var_18                                  ; +0x158, 0x60afac\nBL              sub_4DB620                                             ; +0x15c, 0x60afb0\nMOV             X0, X19                                                ; +0x160, 0x60afb4\nBL              _Unwind_Resume                                         ; +0x164, 0x60afb8", "xrefs": ["<???> @ 0x7cbc0", "GJMessageCell::loadFromMessage @ 0x61d03c", "<???> @ 0x122c2f8"], "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"}