{"type": "func", "start": 6849900, "end": 6850196, "name": "EditorUI::showDeleteConfirmation", "pseudocode": "// \n// EditorUI::showDeleteConfirmation from 0x68856c to 0x688694 (296 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x455e8\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 EditorUI::showDeleteConfirmation(EditorUI *a1)\n{\n  int v1; // w21\n  FLAlertLayer *v2; // x20\n  void *v3; // x0\n  unsigned int *v4; // x2\n  int v5; // w1\n  __int64 v6; // [xsp+40h] [xbp+40h] BYREF\n\n  v1 = (int)a1;\n  sub_D153B8((int)&v6, \"Are you sure you want to <cr>Delete</c> all objects? (<cy>This action cannot be undone</c>)\");\n  v2 = FLAlertLayer::create(v1 + 408, (__int64)\"Delete All\", (__int64)&v6);\n  v3 = (void *)(v6 - 24);\n  if ( (__int64 *)(v6 - 24) != &qword_124B6B0 )\n  {\n    if ( &pthread_create )\n    {\n      v4 = (unsigned int *)(v6 - 8);\n      do\n        v5 = __ldaxr(v4);\n      while ( __stlxr(v5 - 1, v4) );\n    }\n    else\n    {\n      v5 = *(_DWORD *)(v6 - 8);\n      *(_DWORD *)(v6 - 8) = v5 - 1;\n    }\n    if ( v5 <= 0 )\n      operator delete(v3);\n  }\n  v2->show(v2);\n}", "assembly": "; \n; EditorUI::showDeleteConfirmation from 0x68856c to 0x688694 (296 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x455e8\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, 0x68856c\nADRP            X1, #aAreYouSureYouW_7@PAGE; \"Are you sure you want to <cr>Delete</c>\"... ; +0x4, 0x688570\nMOV             X29, SP                                                ; +0x8, 0x688574\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0xc, 0x688578\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x68857c\nADD             X20, X29, #0x50+var_10                                 ; +0x14, 0x688580\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x18, 0x688584\nADD             X1, X1, #aAreYouSureYouW_7@PAGEOFF; \"Are you sure you want to <cr>Delete</c>\"... ; +0x1c, 0x688588\nMOV             X21, X0                                                ; +0x20, 0x68858c\nADD             X2, X29, #0x50+var_20                                  ; +0x24, 0x688590\nLDR             X3, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x28, 0x688594\nMOV             X0, X20; int                                           ; +0x2c, 0x688598\nLDR             X3, [X3]                                               ; +0x30, 0x68859c\nSTR             X3, [X29,#0x50+var_8]                                  ; +0x34, 0x6885a0\nBL              sub_D153B8                                             ; +0x38, 0x6885a4\nLDR             S0, =0x43960000                                        ; +0x3c, 0x6885a8\nADRP            X1, #aDeleteAll@PAGE; \"Delete All\"                     ; +0x40, 0x6885ac\nADRP            X3, #aCancel@PAGE; \"Cancel\"                            ; +0x44, 0x6885b0\nADRP            X4, #aYes@PAGE; \"Yes\"                                  ; +0x48, 0x6885b4\nADD             X0, X21, #0x198                                        ; +0x4c, 0x6885b8\nADD             X1, X1, #aDeleteAll@PAGEOFF; \"Delete All\"              ; +0x50, 0x6885bc\nMOV             X2, X20                                                ; +0x54, 0x6885c0\nADD             X3, X3, #aCancel@PAGEOFF; \"Cancel\"                     ; +0x58, 0x6885c4\nADD             X4, X4, #aYes@PAGEOFF; \"Yes\"                           ; +0x5c, 0x6885c8\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcSsS3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x60, 0x6885cc\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x64, 0x6885d0\nLDR             X2, [X29,#0x50+var_10]                                 ; +0x68, 0x6885d4\nMOV             X20, X0                                                ; +0x6c, 0x6885d8\nSUB             X0, X2, #0x18; p                                       ; +0x70, 0x6885dc\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x74, 0x6885e0\nCMP             X0, X1                                                 ; +0x78, 0x6885e4\nB.NE            loc_688620                                             ; +0x7c, 0x6885e8\nLDR             X1, [X20]                                              ; +0x80, 0x6885ec\nMOV             X0, X20                                                ; +0x84, 0x6885f0\nLDR             X1, [X1,#0x508]                                        ; +0x88, 0x6885f4\nBLR             X1                                                     ; +0x8c, 0x6885f8\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x90, 0x6885fc\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x94, 0x688600\nLDR             X0, [X19]                                              ; +0x98, 0x688604\nCMP             X1, X0                                                 ; +0x9c, 0x688608\nB.NE            loc_688664                                             ; +0xa0, 0x68860c\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xa4, 0x688610\nLDR             X21, [SP,#0x50+var_30]                                 ; +0xa8, 0x688614\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xac, 0x688618\nRET                                                                    ; +0xb0, 0x68861c\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xb4, 0x688620\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xb8, 0x688624\nCBZ             X1, loc_688654                                         ; +0xbc, 0x688628\nSUB             X2, X2, #8                                             ; +0xc0, 0x68862c\nLDAXR           W1, [X2]                                               ; +0xc4, 0x688630\nSUB             W3, W1, #1                                             ; +0xc8, 0x688634\nSTLXR           W4, W3, [X2]                                           ; +0xcc, 0x688638\nCBNZ            W4, loc_688630                                         ; +0xd0, 0x68863c\nCMP             W1, WZR                                                ; +0xd4, 0x688640\nB.GT            loc_6885EC                                             ; +0xd8, 0x688644\nADD             X1, X29, #0x50+var_18                                  ; +0xdc, 0x688648\nBL              j__ZdlPv; operator delete(void *)                      ; +0xe0, 0x68864c\nB               loc_6885EC                                             ; +0xe4, 0x688650\nLDUR            W1, [X2,#-8]                                           ; +0xe8, 0x688654\nSUB             W3, W1, #1                                             ; +0xec, 0x688658\nSTUR            W3, [X2,#-8]                                           ; +0xf0, 0x68865c\nB               loc_688640                                             ; +0xf4, 0x688660\nBL              .__stack_chk_fail                                      ; +0xf8, 0x688664\nADRP            X1, #off_122EFE8@PAGE                                  ; +0xfc, 0x688668\nMOV             X19, X0                                                ; +0x100, 0x68866c\nLDR             X0, [X29,#0x50+var_10]                                 ; +0x104, 0x688670\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x108, 0x688674\nSUB             X0, X0, #0x18                                          ; +0x10c, 0x688678\nCMP             X0, X1                                                 ; +0x110, 0x68867c\nB.EQ            loc_68868C                                             ; +0x114, 0x688680\nADD             X1, X29, #0x50+var_18                                  ; +0x118, 0x688684\nBL              sub_6865FC                                             ; +0x11c, 0x688688\nMOV             X0, X19                                                ; +0x120, 0x68868c\nBL              _Unwind_Resume                                         ; +0x124, 0x688690", "xrefs": ["<???> @ 0x455e8"], "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"}