{"type": "func", "start": 5369596672, "end": 5369596990, "name": "EditLevelLayer::confirmDelete", "pseudocode": "// \n// EditLevelLayer::confirmDelete from 0x1400d8b00 to 0x1400d8c3e (318 bytes)\n// \n// 2 xrefs:\n// > EditLevelLayer::init @ 0x1400d60df\n// > <???> @ 0x1406c882c\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\n// Hidden C++ exception states: #wind=1\nvoid EditLevelLayer::confirmDelete(EditLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  int v2; // ebx\n  __int64 v3; // rax\n  FLAlertLayer *v4; // rbx\n  __int128 v5; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v6; // [rsp+60h] [rbp-38h]\n  __int64 v7; // [rsp+68h] [rbp-30h]\n  _BYTE v8[40]; // [rsp+70h] [rbp-28h] BYREF\n\n  v2 = (_DWORD)a1 + 416;\n  if ( !a1 )\n    v2 = 0;\n  v5 = 0;\n  *(_QWORD *)&v5 = sub_14003AA10(0x60u);\n  v6 = 89;\n  v7 = 95;\n  strcpy((char *)v5, \"Are you sure you want to <cr>delete</c> this level?\\n<cy>This action cannot be undone.</c>\");\n  v3 = sub_14003BDB0((__int64)v8, (__int64)&v5);\n  v4 = FLAlertLayer::create(\n         v2,\n         (int)\"Delete Level\",\n         v3,\n         (__int64)&unk_140547160,\n         (__int64)\"YES\",\n         1135214592,\n         0,\n         0,\n         1065353216);\n  sub_14003A830((__int64)&v5);\n  v4->setTag(v4, 4);\n  v4->show(v4);\n}", "assembly": "; \n; EditLevelLayer::confirmDelete from 0x1400d8b00 to 0x1400d8c3e (318 bytes)\n; \n; 2 xrefs:\n; > EditLevelLayer::init @ 0x1400d60df\n; > <???> @ 0x1406c882c\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    rbx                                                            ; +0x0, 0x1400d8b00\nsub     rsp, 90h                                                       ; +0x2, 0x1400d8b02\nlea     rbx, [rcx+1A0h]                                                ; +0x9, 0x1400d8b09\nxor     eax, eax                                                       ; +0x10, 0x1400d8b10\ntest    rcx, rcx                                                       ; +0x12, 0x1400d8b12\ncmovz   rbx, rax                                                       ; +0x15, 0x1400d8b15\nxorps   xmm0, xmm0                                                     ; +0x19, 0x1400d8b19\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x1c, 0x1400d8b1c\nmov     [rsp+98h+var_38], rax                                          ; +0x21, 0x1400d8b21\nmov     [rsp+98h+var_30], 0Fh                                          ; +0x26, 0x1400d8b26\nlea     ecx, [rax+60h]                                                 ; +0x2f, 0x1400d8b2f\ncall    sub_14003AA10                                                  ; +0x32, 0x1400d8b32\nmov     rcx, rax                                                       ; +0x37, 0x1400d8b37\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x3a, 0x1400d8b3a\nmov     [rsp+98h+var_38], 59h ; 'Y'                                    ; +0x3f, 0x1400d8b3f\nmov     [rsp+98h+var_30], 5Fh ; '_'                                    ; +0x48, 0x1400d8b48\nmovaps  xmm0, cs:xmmword_140551620                                     ; +0x51, 0x1400d8b51\nmovups  xmmword ptr [rax], xmm0                                        ; +0x58, 0x1400d8b58\nmovaps  xmm1, cs:xmmword_140551630                                     ; +0x5b, 0x1400d8b5b\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x62, 0x1400d8b62\nmovaps  xmm0, cs:xmmword_140551640                                     ; +0x66, 0x1400d8b66\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x6d, 0x1400d8b6d\nmovaps  xmm1, cs:xmmword_140551650                                     ; +0x71, 0x1400d8b71\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0x78, 0x1400d8b78\nmovaps  xmm0, cs:xmmword_140551660                                     ; +0x7c, 0x1400d8b7c\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0x83, 0x1400d8b83\nmovsd   xmm0, cs:qword_140551670                                       ; +0x87, 0x1400d8b87\nmovsd   qword ptr [rax+50h], xmm0                                      ; +0x8f, 0x1400d8b8f\nmovzx   eax, cs:byte_140551678                                         ; +0x94, 0x1400d8b94\nmov     [rcx+58h], al                                                  ; +0x9b, 0x1400d8b9b\nmov     byte ptr [rcx+59h], 0                                          ; +0x9e, 0x1400d8b9e\nlea     rax, [rsp+98h+var_48]                                          ; +0xa2, 0x1400d8ba2\nmov     [rsp+98h+arg_0], rax                                           ; +0xa7, 0x1400d8ba7\nlea     rdx, [rsp+98h+var_48]                                          ; +0xaf, 0x1400d8baf\nlea     rcx, [rsp+98h+var_28]                                          ; +0xb4, 0x1400d8bb4\ncall    sub_14003BDB0                                                  ; +0xb9, 0x1400d8bb9\nmovss   xmm0, cs:flt_140622C24                                         ; +0xbe, 0x1400d8bbe\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xc6, 0x1400d8bc6\nxorps   xmm1, xmm1                                                     ; +0xcc, 0x1400d8bcc\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xcf, 0x1400d8bcf\nmov     [rsp+98h+var_68], 0                                            ; +0xd5, 0x1400d8bd5\nmovss   xmm0, cs:dword_140623460                                       ; +0xda, 0x1400d8bda\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xe2, 0x1400d8be2\nlea     rcx, aYes_0; \"YES\"                                             ; +0xe8, 0x1400d8be8\nmov     [rsp+98h+var_78], rcx                                          ; +0xef, 0x1400d8bef\nlea     r9, unk_140547160                                              ; +0xf4, 0x1400d8bf4\nmov     r8, rax                                                        ; +0xfb, 0x1400d8bfb\nlea     rdx, aDeleteLevel; \"Delete Level\"                              ; +0xfe, 0x1400d8bfe\nmov     rcx, rbx                                                       ; +0x105, 0x1400d8c05\ncall    FLAlertLayer__create                                           ; +0x108, 0x1400d8c08\nmov     rbx, rax                                                       ; +0x10d, 0x1400d8c0d\nlea     rcx, [rsp+98h+var_48]                                          ; +0x110, 0x1400d8c10\ncall    sub_14003A830                                                  ; +0x115, 0x1400d8c15\nmov     r8, [rbx]                                                      ; +0x11a, 0x1400d8c1a\nmov     edx, 4                                                         ; +0x11d, 0x1400d8c1d\nmov     rcx, rbx                                                       ; +0x122, 0x1400d8c22\ncall    qword ptr [r8+40h]                                             ; +0x125, 0x1400d8c25\nmov     rdx, [rbx]                                                     ; +0x129, 0x1400d8c29\nmov     rcx, rbx                                                       ; +0x12c, 0x1400d8c2c\ncall    qword ptr [rdx+410h]                                           ; +0x12f, 0x1400d8c2f\nadd     rsp, 90h                                                       ; +0x135, 0x1400d8c35\npop     rbx                                                            ; +0x13c, 0x1400d8c3c\nretn                                                                   ; +0x13d, 0x1400d8c3d", "xrefs": ["EditLevelLayer::init @ 0x1400d60df", "<???> @ 0x1406c882c"], "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"}