{"type": "func", "start": 5370267520, "end": 5370267805, "name": "EditLevelLayer::confirmClone", "pseudocode": "// \n// EditLevelLayer::confirmClone from 0x14017c780 to 0x14017c89d (285 bytes)\n// \n// 2 xrefs:\n// > EditLevelLayer::init @ 0x14017968e\n// > <???> @ 0x1409187a0\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:27:35 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall EditLevelLayer::confirmClone(__int64 a1)\n{\n  int v1; // ebx\n  __int64 v2; // rax\n  cocos2d::CCObject *v3; // 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  v1 = a1 + 416;\n  if ( !a1 )\n    v1 = 0;\n  v5 = 0;\n  *(_QWORD *)&v5 = sub_14003D460(0x30u);\n  v6 = 44;\n  v7 = 47;\n  strcpy((char *)v5, \"Create a <cl>copy</c> of this <cg>level</c>?\");\n  v2 = sub_14003F4F0((__int64)v8, (__int64)&v5);\n  v3 = FLAlertLayer::create(\n         v1,\n         (int)\"Clone Level\",\n         v2,\n         (__int64)&unk_14073A058,\n         (__int64)\"YES\",\n         1133903872,\n         0,\n         0,\n         1065353216);\n  sub_14003D310((__int64)&v5);\n  (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 64LL))(v3, 7);\n  return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);\n}", "assembly": "; \n; EditLevelLayer::confirmClone from 0x14017c780 to 0x14017c89d (285 bytes)\n; \n; 2 xrefs:\n; > EditLevelLayer::init @ 0x14017968e\n; > <???> @ 0x1409187a0\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:27:35 +0000\n; \npush    rbx                                                            ; +0x0, 0x14017c780\nsub     rsp, 90h                                                       ; +0x2, 0x14017c782\nlea     rbx, [rcx+1A0h]                                                ; +0x9, 0x14017c789\nxor     eax, eax                                                       ; +0x10, 0x14017c790\ntest    rcx, rcx                                                       ; +0x12, 0x14017c792\ncmovz   rbx, rax                                                       ; +0x15, 0x14017c795\nxorps   xmm0, xmm0                                                     ; +0x19, 0x14017c799\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x1c, 0x14017c79c\nmov     [rsp+98h+var_38], rax                                          ; +0x21, 0x14017c7a1\nmov     [rsp+98h+var_30], rax                                          ; +0x26, 0x14017c7a6\nmov     ecx, 30h ; '0'                                                 ; +0x2b, 0x14017c7ab\ncall    sub_14003D460                                                  ; +0x30, 0x14017c7b0\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x35, 0x14017c7b5\nmov     [rsp+98h+var_38], 2Ch ; ','                                    ; +0x3a, 0x14017c7ba\nmov     [rsp+98h+var_30], 2Fh ; '/'                                    ; +0x43, 0x14017c7c3\nmovups  xmm0, cs:xmmword_140747EC8                                     ; +0x4c, 0x14017c7cc\nmovups  xmmword ptr [rax], xmm0                                        ; +0x53, 0x14017c7d3\nmovups  xmm1, cs:xmmword_140747ED8                                     ; +0x56, 0x14017c7d6\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x5d, 0x14017c7dd\nmovsd   xmm0, cs:qword_140747EE8                                       ; +0x61, 0x14017c7e1\nmovsd   qword ptr [rax+20h], xmm0                                      ; +0x69, 0x14017c7e9\nmov     ecx, cs:dword_140747EF0                                        ; +0x6e, 0x14017c7ee\nmov     [rax+28h], ecx                                                 ; +0x74, 0x14017c7f4\nmov     byte ptr [rax+2Ch], 0                                          ; +0x77, 0x14017c7f7\nlea     rax, [rsp+98h+var_48]                                          ; +0x7b, 0x14017c7fb\nmov     [rsp+98h+arg_0], rax                                           ; +0x80, 0x14017c800\nlea     rdx, [rsp+98h+var_48]                                          ; +0x88, 0x14017c808\nlea     rcx, [rsp+98h+var_28]                                          ; +0x8d, 0x14017c80d\ncall    sub_14003F4F0                                                  ; +0x92, 0x14017c812\nmovss   xmm0, cs:flt_140835080                                         ; +0x97, 0x14017c817\nmovss   [rsp+98h+var_58], xmm0                                         ; +0x9f, 0x14017c81f\nxorps   xmm1, xmm1                                                     ; +0xa5, 0x14017c825\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xa8, 0x14017c828\nmov     [rsp+98h+var_68], 0                                            ; +0xae, 0x14017c82e\nmovss   xmm0, cs:dword_1408359A4                                       ; +0xb3, 0x14017c833\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xbb, 0x14017c83b\nlea     rcx, aYes_0; \"YES\"                                             ; +0xc1, 0x14017c841\nmov     [rsp+98h+var_78], rcx                                          ; +0xc8, 0x14017c848\nlea     r9, unk_14073A058                                              ; +0xcd, 0x14017c84d\nmov     r8, rax                                                        ; +0xd4, 0x14017c854\nlea     rdx, aCloneLevel; \"Clone Level\"                                ; +0xd7, 0x14017c857\nmov     rcx, rbx                                                       ; +0xde, 0x14017c85e\ncall    FLAlertLayer__create                                           ; +0xe1, 0x14017c861\nmov     rbx, rax                                                       ; +0xe6, 0x14017c866\nlea     rcx, [rsp+98h+var_48]                                          ; +0xe9, 0x14017c869\ncall    sub_14003D310                                                  ; +0xee, 0x14017c86e\nmov     rcx, [rbx]                                                     ; +0xf3, 0x14017c873\nmov     r8, [rcx+40h]                                                  ; +0xf6, 0x14017c876\nmov     edx, 7                                                         ; +0xfa, 0x14017c87a\nmov     rcx, rbx                                                       ; +0xff, 0x14017c87f\ncall    r8                                                             ; +0x102, 0x14017c882\nmov     rcx, [rbx]                                                     ; +0x105, 0x14017c885\nmov     rdx, [rcx+428h]                                                ; +0x108, 0x14017c888\nmov     rcx, rbx                                                       ; +0x10f, 0x14017c88f\ncall    rdx                                                            ; +0x112, 0x14017c892\nadd     rsp, 90h                                                       ; +0x114, 0x14017c894\npop     rbx                                                            ; +0x11b, 0x14017c89b\nretn                                                                   ; +0x11c, 0x14017c89c", "xrefs": ["EditLevelLayer::init @ 0x14017968e", "<???> @ 0x1409187a0"], "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"}