{"type": "func", "start": 4297051184, "end": 4297051394, "name": "EditLevelLayer::confirmDelete", "pseudocode": "// \n// EditLevelLayer::confirmDelete from 0x1001fcc30 to 0x1001fcd02 (210 bytes)\n// \n// 1 xrefs:\n// > EditLevelLayer::init @ 0x1001fb44d\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 __fastcall EditLevelLayer::confirmDelete(EditLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v2; // rbx\n  _QWORD v3[2]; // [rsp+0h] [rbp-20h] BYREF\n  void *__p; // [rsp+10h] [rbp-10h]\n\n  __p = operator new(0x60u);\n  v3[0] = 97;\n  v3[1] = 89;\n  strcpy((char *)__p, \"Are you sure you want to <cr>delete</c> this level?\\n<cy>This action cannot be undone.</c>\");\n  v2 = FLAlertLayer::create_1(&a1->FLAlertLayerProtocol, \"Delete Level\", v3, \"NO\", \"YES\", 340.0);\n  if ( (v3[0] & 1) != 0 )\n    operator delete(__p);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 72LL))(v2, 4);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1288LL))(v2);\n}", "assembly": "; \n; EditLevelLayer::confirmDelete from 0x1001fcc30 to 0x1001fcd02 (210 bytes)\n; \n; 1 xrefs:\n; > EditLevelLayer::init @ 0x1001fb44d\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\npush    rbp                                                            ; +0x0, 0x1001fcc30\nmov     rbp, rsp                                                       ; +0x1, 0x1001fcc31\npush    rbx                                                            ; +0x4, 0x1001fcc34\nsub     rsp, 18h                                                       ; +0x5, 0x1001fcc35\nmov     rbx, rdi                                                       ; +0x9, 0x1001fcc39\nadd     rbx, 1A0h                                                      ; +0xc, 0x1001fcc3c\nmov     edi, 60h ; '`'; __sz                                           ; +0x13, 0x1001fcc43\ncall    __Znwm; operator new(ulong)                                    ; +0x18, 0x1001fcc48\nmov     [rbp+__p], rax                                                 ; +0x1d, 0x1001fcc4d\nmov     [rbp+var_20], 61h ; 'a'                                        ; +0x21, 0x1001fcc51\nmov     [rbp+var_18], 59h ; 'Y'                                        ; +0x29, 0x1001fcc59\nmovups  xmm0, xmmword ptr cs:aAreYouSureYouW_1+49h; \"t be undone.</c>\" ; +0x31, 0x1001fcc61\nmovups  xmmword ptr [rax+49h], xmm0                                    ; +0x38, 0x1001fcc68\nmovups  xmm0, xmmword ptr cs:aAreYouSureYouW_1+40h; \"ion cannot be undone.</c>\" ; +0x3c, 0x1001fcc6c\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0x43, 0x1001fcc73\nmovups  xmm0, xmmword ptr cs:aAreYouSureYouW_1+30h; \"el?\\n<cy>This action cannot be undone.<\"... ; +0x47, 0x1001fcc77\nmovups  xmmword ptr [rax+30h], xmm0                                    ; +0x4e, 0x1001fcc7e\nmovups  xmm0, xmmword ptr cs:aAreYouSureYouW_1+20h; \"ete</c> this level?\\n<cy>This action ca\"... ; +0x52, 0x1001fcc82\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x59, 0x1001fcc89\nmovups  xmm0, xmmword ptr cs:aAreYouSureYouW_1+10h; \" want to <cr>delete</c> this level?\\n<c\"... ; +0x5d, 0x1001fcc8d\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x64, 0x1001fcc94\nmovups  xmm0, xmmword ptr cs:aAreYouSureYouW_1; \"Are you sure you want to <cr>delete</c>\"... ; +0x68, 0x1001fcc98\nmovups  xmmword ptr [rax], xmm0                                        ; +0x6f, 0x1001fcc9f\nmov     byte ptr [rax+59h], 0                                          ; +0x72, 0x1001fcca2\nlea     rsi, aDeleteLevel; \"Delete Level\"                              ; +0x76, 0x1001fcca6\nlea     rcx, aNo; \"NO\"                                                 ; +0x7d, 0x1001fccad\nlea     r8, aYes_0; \"YES\"                                              ; +0x84, 0x1001fccb4\nlea     rdx, [rbp+var_20]                                              ; +0x8b, 0x1001fccbb\nmovss   xmm0, cs:dword_1008152B0                                       ; +0x8f, 0x1001fccbf\nmov     rdi, rbx                                                       ; +0x97, 0x1001fccc7\ncall    FLAlertLayer__create_1                                         ; +0x9a, 0x1001fccca\nmov     rbx, rax                                                       ; +0x9f, 0x1001fcccf\ntest    byte ptr [rbp+var_20], 1                                       ; +0xa2, 0x1001fccd2\njz      short loc_1001FCCE1                                            ; +0xa6, 0x1001fccd6\nmov     rdi, [rbp+__p]; __p                                            ; +0xa8, 0x1001fccd8\ncall    __ZdlPv; operator delete(void *)                               ; +0xac, 0x1001fccdc\nmov     rax, [rbx]                                                     ; +0xb1, 0x1001fcce1\nmov     rdi, rbx                                                       ; +0xb4, 0x1001fcce4\nmov     esi, 4                                                         ; +0xb7, 0x1001fcce7\ncall    qword ptr [rax+48h]                                            ; +0xbc, 0x1001fccec\nmov     rax, [rbx]                                                     ; +0xbf, 0x1001fccef\nmov     rdi, rbx                                                       ; +0xc2, 0x1001fccf2\ncall    qword ptr [rax+508h]                                           ; +0xc5, 0x1001fccf5\nadd     rsp, 18h                                                       ; +0xcb, 0x1001fccfb\npop     rbx                                                            ; +0xcf, 0x1001fccff\npop     rbp                                                            ; +0xd0, 0x1001fcd00\nretn                                                                   ; +0xd1, 0x1001fcd01", "xrefs": ["EditLevelLayer::init @ 0x1001fb44d"], "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"}