{"type": "func", "start": 7202880, "end": 7203196, "name": "EditLevelLayer::onUpdateDescription", "pseudocode": "// \n// EditLevelLayer::onUpdateDescription from 0x6de840 to 0x6de97c (316 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x584a0\n// > EditLevelLayer::init @ 0x6e0c20\n// > <???> @ 0x122ad38\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 EditLevelLayer::onUpdateDescription(EditLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  int v2; // w21\n  FLAlertLayer *v3; // x20\n  void *v4; // x0\n  unsigned int *v5; // x2\n  int v6; // w1\n  __int64 v7; // [xsp+40h] [xbp+40h] BYREF\n\n  v2 = (int)a1;\n  sub_D153B8((int)&v7, \"Do you want to <cg>update</c> the level <cl>description</c>?\");\n  v3 = FLAlertLayer::create(v2 + 416, (__int64)\"Update Level Desc\", (__int64)&v7);\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  }\n  v3->setTag(v3, 9);\n  v3->show(v3);\n}", "assembly": "; \n; EditLevelLayer::onUpdateDescription from 0x6de840 to 0x6de97c (316 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x584a0\n; > EditLevelLayer::init @ 0x6e0c20\n; > <???> @ 0x122ad38\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, 0x6de840\nADRP            X1, #aDoYouWantToCgU@PAGE; \"Do you want to <cg>update</c> the level\"... ; +0x4, 0x6de844\nMOV             X29, SP                                                ; +0x8, 0x6de848\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0xc, 0x6de84c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x6de850\nADD             X20, X29, #0x50+var_10                                 ; +0x14, 0x6de854\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x18, 0x6de858\nADD             X1, X1, #aDoYouWantToCgU@PAGEOFF; \"Do you want to <cg>update</c> the level\"... ; +0x1c, 0x6de85c\nMOV             X21, X0                                                ; +0x20, 0x6de860\nADD             X2, X29, #0x50+var_20                                  ; +0x24, 0x6de864\nLDR             X3, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x28, 0x6de868\nMOV             X0, X20; int                                           ; +0x2c, 0x6de86c\nLDR             X3, [X3]                                               ; +0x30, 0x6de870\nSTR             X3, [X29,#0x50+var_8]                                  ; +0x34, 0x6de874\nBL              sub_D153B8                                             ; +0x38, 0x6de878\nLDR             S0, =0x43BE0000                                        ; +0x3c, 0x6de87c\nADRP            X1, #aUpdateLevelDes@PAGE; \"Update Level Desc\"         ; +0x40, 0x6de880\nADRP            X3, #aCancel@PAGE; \"Cancel\"                            ; +0x44, 0x6de884\nADRP            X4, #aUpdate@PAGE; \"Update\"                            ; +0x48, 0x6de888\nADD             X0, X21, #0x1A0                                        ; +0x4c, 0x6de88c\nADD             X1, X1, #aUpdateLevelDes@PAGEOFF; \"Update Level Desc\"  ; +0x50, 0x6de890\nMOV             X2, X20                                                ; +0x54, 0x6de894\nADD             X3, X3, #aCancel@PAGEOFF; \"Cancel\"                     ; +0x58, 0x6de898\nADD             X4, X4, #aUpdate@PAGEOFF; \"Update\"                     ; +0x5c, 0x6de89c\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcSsS3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x60, 0x6de8a0\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x64, 0x6de8a4\nLDR             X2, [X29,#0x50+var_10]                                 ; +0x68, 0x6de8a8\nMOV             X20, X0                                                ; +0x6c, 0x6de8ac\nSUB             X0, X2, #0x18; p                                       ; +0x70, 0x6de8b0\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x74, 0x6de8b4\nCMP             X0, X1                                                 ; +0x78, 0x6de8b8\nB.NE            loc_6DE908                                             ; +0x7c, 0x6de8bc\nLDR             X2, [X20]                                              ; +0x80, 0x6de8c0\nMOV             X0, X20                                                ; +0x84, 0x6de8c4\nMOV             W1, #9                                                 ; +0x88, 0x6de8c8\nLDR             X2, [X2,#0x48]                                         ; +0x8c, 0x6de8cc\nBLR             X2                                                     ; +0x90, 0x6de8d0\nLDR             X1, [X20]                                              ; +0x94, 0x6de8d4\nMOV             X0, X20                                                ; +0x98, 0x6de8d8\nLDR             X1, [X1,#0x508]                                        ; +0x9c, 0x6de8dc\nBLR             X1                                                     ; +0xa0, 0x6de8e0\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xa4, 0x6de8e4\nLDR             X1, [X29,#0x50+var_8]                                  ; +0xa8, 0x6de8e8\nLDR             X0, [X19]                                              ; +0xac, 0x6de8ec\nCMP             X1, X0                                                 ; +0xb0, 0x6de8f0\nB.NE            loc_6DE94C                                             ; +0xb4, 0x6de8f4\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xb8, 0x6de8f8\nLDR             X21, [SP,#0x50+var_30]                                 ; +0xbc, 0x6de8fc\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xc0, 0x6de900\nRET                                                                    ; +0xc4, 0x6de904\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xc8, 0x6de908\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xcc, 0x6de90c\nCBZ             X1, loc_6DE93C                                         ; +0xd0, 0x6de910\nSUB             X2, X2, #8                                             ; +0xd4, 0x6de914\nLDAXR           W1, [X2]                                               ; +0xd8, 0x6de918\nSUB             W3, W1, #1                                             ; +0xdc, 0x6de91c\nSTLXR           W4, W3, [X2]                                           ; +0xe0, 0x6de920\nCBNZ            W4, loc_6DE918                                         ; +0xe4, 0x6de924\nCMP             W1, WZR                                                ; +0xe8, 0x6de928\nB.GT            loc_6DE8C0                                             ; +0xec, 0x6de92c\nADD             X1, X29, #0x50+var_18                                  ; +0xf0, 0x6de930\nBL              j__ZdlPv; operator delete(void *)                      ; +0xf4, 0x6de934\nB               loc_6DE8C0                                             ; +0xf8, 0x6de938\nLDUR            W1, [X2,#-8]                                           ; +0xfc, 0x6de93c\nSUB             W3, W1, #1                                             ; +0x100, 0x6de940\nSTUR            W3, [X2,#-8]                                           ; +0x104, 0x6de944\nB               loc_6DE928                                             ; +0x108, 0x6de948\nBL              .__stack_chk_fail                                      ; +0x10c, 0x6de94c\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x110, 0x6de950\nMOV             X19, X0                                                ; +0x114, 0x6de954\nLDR             X0, [X29,#0x50+var_10]                                 ; +0x118, 0x6de958\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x11c, 0x6de95c\nSUB             X0, X0, #0x18                                          ; +0x120, 0x6de960\nCMP             X0, X1                                                 ; +0x124, 0x6de964\nB.EQ            loc_6DE974                                             ; +0x128, 0x6de968\nADD             X1, X29, #0x50+var_18                                  ; +0x12c, 0x6de96c\nBL              sub_4DB8F0                                             ; +0x130, 0x6de970\nMOV             X0, X19                                                ; +0x134, 0x6de974\nBL              _Unwind_Resume                                         ; +0x138, 0x6de978", "xrefs": ["<???> @ 0x584a0", "EditLevelLayer::init @ 0x6e0c20", "<???> @ 0x122ad38"], "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"}