{"type": "func", "start": 5373046096, "end": 5373046407, "name": "LevelInfoLayer::confirmDelete", "pseudocode": "// \n// LevelInfoLayer::confirmDelete from 0x140422d50 to 0x140422e87 (311 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::init @ 0x14041d01f\n// > <???> @ 0x1409268b8\n// \n// This function is hookable on this platform (idp: pc, 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 11:32:10 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall LevelInfoLayer::confirmDelete(__int64 a1)\n{\n  int v1; // ebx\n  __int64 v2; // rax\n  cocos2d::CCObject *v3; // rbx\n  __int128 v4; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v5; // [rsp+60h] [rbp-38h]\n  __int64 v6; // [rsp+68h] [rbp-30h]\n  _BYTE v7[40]; // [rsp+70h] [rbp-28h] BYREF\n\n  if ( !*(_BYTE *)(a1 + 488) )\n  {\n    v1 = a1 + 440;\n    if ( !a1 )\n      v1 = 0;\n    v4 = 0;\n    *(_QWORD *)&v4 = sub_14003D460(0x40u);\n    v5 = 51;\n    v6 = 63;\n    strcpy((char *)v4, \"Are you sure you want to <cr>delete</c> this level?\");\n    v2 = sub_14003F4F0((__int64)v7, (__int64)&v4);\n    v3 = FLAlertLayer::create(\n           v1,\n           (int)&qword_140720438,\n           v2,\n           (__int64)&unk_14073A058,\n           (__int64)\"YES\",\n           1133903872,\n           0,\n           0,\n           1065353216);\n    sub_14003D310((__int64)&v4);\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 64LL))(v3, 4);\n    (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);\n  }\n}", "assembly": "; \n; LevelInfoLayer::confirmDelete from 0x140422d50 to 0x140422e87 (311 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::init @ 0x14041d01f\n; > <???> @ 0x1409268b8\n; \n; This function is hookable on this platform (idp: pc, 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 11:32:10 +0000\n; \npush    rbx                                                            ; +0x0, 0x140422d50\nsub     rsp, 90h                                                       ; +0x2, 0x140422d52\ncmp     byte ptr [rcx+1E8h], 0                                         ; +0x9, 0x140422d59\njnz     loc_140422E7E                                                  ; +0x10, 0x140422d60\nlea     rbx, [rcx+1B8h]                                                ; +0x16, 0x140422d66\nxor     eax, eax                                                       ; +0x1d, 0x140422d6d\ntest    rcx, rcx                                                       ; +0x1f, 0x140422d6f\ncmovz   rbx, rax                                                       ; +0x22, 0x140422d72\nxorps   xmm0, xmm0                                                     ; +0x26, 0x140422d76\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x29, 0x140422d79\nmov     [rsp+98h+var_38], rax                                          ; +0x2e, 0x140422d7e\nmov     [rsp+98h+var_30], rax                                          ; +0x33, 0x140422d83\nmov     ecx, 40h ; '@'                                                 ; +0x38, 0x140422d88\ncall    sub_14003D460                                                  ; +0x3d, 0x140422d8d\nmov     rdx, rax                                                       ; +0x42, 0x140422d92\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x45, 0x140422d95\nmov     [rsp+98h+var_38], 33h ; '3'                                    ; +0x4a, 0x140422d9a\nmov     [rsp+98h+var_30], 3Fh ; '?'                                    ; +0x53, 0x140422da3\nmovups  xmm0, cs:xmmword_14078C1D8                                     ; +0x5c, 0x140422dac\nmovups  xmmword ptr [rax], xmm0                                        ; +0x63, 0x140422db3\nmovups  xmm1, cs:xmmword_14078C1E8                                     ; +0x66, 0x140422db6\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x6d, 0x140422dbd\nmovups  xmm0, cs:xmmword_14078C1F8                                     ; +0x71, 0x140422dc1\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x78, 0x140422dc8\nmovzx   ecx, cs:word_14078C208                                         ; +0x7c, 0x140422dcc\nmov     [rax+30h], cx                                                  ; +0x83, 0x140422dd3\nmovzx   eax, cs:byte_14078C20A                                         ; +0x87, 0x140422dd7\nmov     [rdx+32h], al                                                  ; +0x8e, 0x140422dde\nmov     byte ptr [rdx+33h], 0                                          ; +0x91, 0x140422de1\nlea     rax, [rsp+98h+var_48]                                          ; +0x95, 0x140422de5\nmov     [rsp+98h+arg_0], rax                                           ; +0x9a, 0x140422dea\nlea     rdx, [rsp+98h+var_48]                                          ; +0xa2, 0x140422df2\nlea     rcx, [rsp+98h+var_28]                                          ; +0xa7, 0x140422df7\ncall    sub_14003F4F0                                                  ; +0xac, 0x140422dfc\nmovss   xmm0, cs:flt_140835080                                         ; +0xb1, 0x140422e01\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xb9, 0x140422e09\nxorps   xmm1, xmm1                                                     ; +0xbf, 0x140422e0f\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xc2, 0x140422e12\nmov     [rsp+98h+var_68], 0                                            ; +0xc8, 0x140422e18\nmovss   xmm0, cs:dword_1408359A4                                       ; +0xcd, 0x140422e1d\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xd5, 0x140422e25\nlea     rcx, aYes_0; \"YES\"                                             ; +0xdb, 0x140422e2b\nmov     [rsp+98h+var_78], rcx                                          ; +0xe2, 0x140422e32\nlea     r9, unk_14073A058                                              ; +0xe7, 0x140422e37\nmov     r8, rax                                                        ; +0xee, 0x140422e3e\nlea     rdx, qword_140720438                                           ; +0xf1, 0x140422e41\nmov     rcx, rbx                                                       ; +0xf8, 0x140422e48\ncall    FLAlertLayer__create                                           ; +0xfb, 0x140422e4b\nmov     rbx, rax                                                       ; +0x100, 0x140422e50\nlea     rcx, [rsp+98h+var_48]                                          ; +0x103, 0x140422e53\ncall    sub_14003D310                                                  ; +0x108, 0x140422e58\nmov     rcx, [rbx]                                                     ; +0x10d, 0x140422e5d\nmov     r8, [rcx+40h]                                                  ; +0x110, 0x140422e60\nmov     edx, 4                                                         ; +0x114, 0x140422e64\nmov     rcx, rbx                                                       ; +0x119, 0x140422e69\ncall    r8                                                             ; +0x11c, 0x140422e6c\nmov     rcx, [rbx]                                                     ; +0x11f, 0x140422e6f\nmov     rdx, [rcx+428h]                                                ; +0x122, 0x140422e72\nmov     rcx, rbx                                                       ; +0x129, 0x140422e79\ncall    rdx                                                            ; +0x12c, 0x140422e7c\nadd     rsp, 90h                                                       ; +0x12e, 0x140422e7e\npop     rbx                                                            ; +0x135, 0x140422e85\nretn                                                                   ; +0x136, 0x140422e86", "xrefs": ["LevelInfoLayer::init @ 0x14041d01f", "<???> @ 0x1409268b8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}