{"type": "func", "start": 8313592, "end": 8313844, "name": "EditLevelLayer::confirmDelete", "pseudocode": "// \n// EditLevelLayer::confirmDelete from 0x7edaf8 to 0x7edbf4 (252 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x6d168\n// > EditLevelLayer::init @ 0x7f0bf4\n// > <???> @ 0x1542b30\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:54:33 +0000\n// \n\n__int64 __fastcall EditLevelLayer::confirmDelete(EditLevelLayer *this, cocos2d::CCObject *a2)\n{\n  __int64 v3; // x20\n  _QWORD v5[2]; // [xsp+20h] [xbp+20h] BYREF\n  void *v6; // [xsp+30h] [xbp+30h]\n\n  v6 = (void *)operator new(0x60u);\n  v5[1] = 89;\n  v5[0] = 97;\n  *((_BYTE *)memcpy(\n               v6,\n               \"Are you sure you want to <cr>delete</c> this level?\\n<cy>This action cannot be undone.</c>\",\n               0x59u)\n  + 89) = 0;\n  v3 = FLAlertLayer::create(\n         (__int64)this + 416,\n         (cocos2d::CCLabelBMFont *)\"Delete Level\",\n         (char *)v5,\n         (ButtonSprite *)\"NO\",\n         (ButtonSprite *)\"YES\",\n         340.0);\n  if ( (v5[0] & 1) != 0 )\n    operator delete(v6);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 72LL))(v3, 4);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditLevelLayer::confirmDelete from 0x7edaf8 to 0x7edbf4 (252 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x6d168\n; > EditLevelLayer::init @ 0x7f0bf4\n; > <???> @ 0x1542b30\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:54:33 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x7edaf8\nMOV             X29, SP                                                ; +0x4, 0x7edafc\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x7edb00\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x7edb04\nMOV             X20, X0                                                ; +0x10, 0x7edb08\nMOV             X0, #0x60 ; '`'; unsigned __int64                      ; +0x14, 0x7edb0c\nSTR             XZR, [X29,#0x40+var_20]                                ; +0x18, 0x7edb10\nSTR             XZR, [X29,#0x40+var_18]                                ; +0x1c, 0x7edb14\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x7edb18\nSTR             XZR, [X29,#0x40+var_10]                                ; +0x24, 0x7edb1c\nLDR             X1, [X1]                                               ; +0x28, 0x7edb20\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x2c, 0x7edb24\nBL              _Znwm; operator new(ulong)                             ; +0x30, 0x7edb28\nSTR             X0, [X29,#0x40+var_10]                                 ; +0x34, 0x7edb2c\nMOV             X4, #0x59 ; 'Y'                                        ; +0x38, 0x7edb30\nADRP            X1, #aAreYouSureYouW_11@PAGE; \"Are you sure you want to <cr>delete</c>\"... ; +0x3c, 0x7edb34\nMOV             X2, X4; size_t                                         ; +0x40, 0x7edb38\nADD             X1, X1, #aAreYouSureYouW_11@PAGEOFF; \"Are you sure you want to <cr>delete</c>\"... ; +0x44, 0x7edb3c\nSTR             X4, [X29,#0x40+var_18]                                 ; +0x48, 0x7edb40\nMOV             X4, #0x61 ; 'a'                                        ; +0x4c, 0x7edb44\nSTR             X4, [X29,#0x40+var_20]                                 ; +0x50, 0x7edb48\nBL              .memcpy                                                ; +0x54, 0x7edb4c\nSTRB            WZR, [X0,#0x59]                                        ; +0x58, 0x7edb50\nLDR             S0, =0x43AA0000                                        ; +0x5c, 0x7edb54\nADRP            X1, #aDeleteLevel@PAGE; \"Delete Level\"                 ; +0x60, 0x7edb58\nADRP            X3, #aNo_0@PAGE; \"NO\"                                  ; +0x64, 0x7edb5c\nADRP            X4, #aYes_0@PAGE; \"YES\"                                ; +0x68, 0x7edb60\nADD             X0, X20, #0x1A0                                        ; +0x6c, 0x7edb64\nADD             X1, X1, #aDeleteLevel@PAGEOFF; \"Delete Level\"          ; +0x70, 0x7edb68\nADD             X2, X29, #0x40+var_20                                  ; +0x74, 0x7edb6c\nADD             X3, X3, #aNo_0@PAGEOFF; \"NO\"                           ; +0x78, 0x7edb70\nADD             X4, X4, #aYes_0@PAGEOFF; \"YES\"                         ; +0x7c, 0x7edb74\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x80, 0x7edb78\nMOV             X20, X0                                                ; +0x84, 0x7edb7c\nLDRB            W0, [X29,#0x40+var_20]                                 ; +0x88, 0x7edb80\nTBZ             W0, #0, loc_7EDB90                                     ; +0x8c, 0x7edb84\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0x90, 0x7edb88\nBL              _ZdlPv; operator delete(void *)                        ; +0x94, 0x7edb8c\nLDR             X2, [X20]                                              ; +0x98, 0x7edb90\nMOV             X0, X20                                                ; +0x9c, 0x7edb94\nMOV             W1, #4                                                 ; +0xa0, 0x7edb98\nLDR             X2, [X2,#0x48]                                         ; +0xa4, 0x7edb9c\nBLR             X2                                                     ; +0xa8, 0x7edba0\nLDR             X1, [X20]                                              ; +0xac, 0x7edba4\nMOV             X0, X20                                                ; +0xb0, 0x7edba8\nLDR             X1, [X1,#0x520]                                        ; +0xb4, 0x7edbac\nBLR             X1                                                     ; +0xb8, 0x7edbb0\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xbc, 0x7edbb4\nLDR             X1, [X29,#0x40+var_8]                                  ; +0xc0, 0x7edbb8\nLDR             X0, [X19]                                              ; +0xc4, 0x7edbbc\nCMP             X1, X0                                                 ; +0xc8, 0x7edbc0\nB.NE            loc_7EDBD4                                             ; +0xcc, 0x7edbc4\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xd0, 0x7edbc8\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xd4, 0x7edbcc\nRET                                                                    ; +0xd8, 0x7edbd0\nBL              .__stack_chk_fail                                      ; +0xdc, 0x7edbd4\nLDRB            W1, [X29,#0x40+var_20]                                 ; +0xe0, 0x7edbd8\nMOV             X19, X0                                                ; +0xe4, 0x7edbdc\nTBZ             W1, #0, loc_7EDBEC                                     ; +0xe8, 0x7edbe0\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0xec, 0x7edbe4\nBL              _ZdlPv; operator delete(void *)                        ; +0xf0, 0x7edbe8\nMOV             X0, X19                                                ; +0xf4, 0x7edbec\nBL              _Unwind_Resume                                         ; +0xf8, 0x7edbf0", "xrefs": ["<???> @ 0x6d168", "EditLevelLayer::init @ 0x7f0bf4", "<???> @ 0x1542b30"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}