{"type": "func", "start": 5373045712, "end": 5373046081, "name": "LevelInfoLayer::confirmClone", "pseudocode": "// \n// LevelInfoLayer::confirmClone from 0x140422bd0 to 0x140422d41 (369 bytes)\n// \n// 4 xrefs:\n// > LevelInfoLayer::tryCloneLevel @ 0x1404226ca\n// > LevelInfoLayer::numberInputClosed @ 0x1404229d3\n// > LevelInfoLayer::init @ 0x14041d9d6\n// > <???> @ 0x1409268ac\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=2\nvoid __fastcall LevelInfoLayer::confirmClone(__int64 a1)\n{\n  int v1; // ebx\n  int v2; // edi\n  __int64 v3; // rdx\n  int v4; // eax\n  __int128 *v5; // rdx\n  size_t v6; // r8\n  __int64 v7; // rax\n  cocos2d::CCObject *v8; // rbx\n  __int128 v9; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v10; // [rsp+60h] [rbp-38h]\n  __int64 v11; // [rsp+68h] [rbp-30h]\n  _BYTE v12[40]; // [rsp+70h] [rbp-28h] BYREF\n  void *v13; // [rsp+A0h] [rbp+8h]\n\n  v1 = a1;\n  if ( !*(_BYTE *)(a1 + 488) )\n  {\n    v2 = *(_DWORD *)(*(_QWORD *)(a1 + 504) + 648LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 652LL);\n    v3 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v13 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v13);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v3 = qword_14090BFD0;\n    }\n    v4 = *(_DWORD *)(v3 + 692) - *(_DWORD *)(v3 + 696);\n    v5 = (__int128 *)\"Create a <cl>copy</c> of this <cg>level</c>?\\n<cy>(Creator enabled)</c>\";\n    if ( v2 != v4 )\n      v5 = &xmmword_140747EC8;\n    v9 = 0;\n    v10 = 0;\n    v11 = 0;\n    v6 = -1;\n    do\n      ++v6;\n    while ( *((_BYTE *)v5 + v6) );\n    sub_14003D230(&v9, v5, v6);\n    v7 = sub_14003F4F0((__int64)v12, (__int64)&v9);\n    v8 = FLAlertLayer::create(\n           v1 + 440,\n           (int)\"Clone Level\",\n           v7,\n           (__int64)&unk_14073A058,\n           (__int64)\"YES\",\n           1133903872,\n           0,\n           0,\n           1065353216);\n    sub_14003D310((__int64)&v9);\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v8 + 64LL))(v8, 6);\n    (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v8 + 1064LL))(v8);\n  }\n}", "assembly": "; \n; LevelInfoLayer::confirmClone from 0x140422bd0 to 0x140422d41 (369 bytes)\n; \n; 4 xrefs:\n; > LevelInfoLayer::tryCloneLevel @ 0x1404226ca\n; > LevelInfoLayer::numberInputClosed @ 0x1404229d3\n; > LevelInfoLayer::init @ 0x14041d9d6\n; > <???> @ 0x1409268ac\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; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140422bd0\npush    rdi                                                            ; +0x5, 0x140422bd5\nsub     rsp, 90h                                                       ; +0x6, 0x140422bd6\nmov     rbx, rcx                                                       ; +0xd, 0x140422bdd\ncmp     byte ptr [rcx+1E8h], 0                                         ; +0x10, 0x140422be0\njnz     loc_140422D30                                                  ; +0x17, 0x140422be7\nmov     rax, [rcx+1F8h]                                                ; +0x1d, 0x140422bed\nmov     edi, [rax+288h]                                                ; +0x24, 0x140422bf4\nsub     edi, [rax+28Ch]                                                ; +0x2a, 0x140422bfa\nmov     rdx, cs:qword_14090BFD0                                        ; +0x30, 0x140422c00\ntest    rdx, rdx                                                       ; +0x37, 0x140422c07\njnz     short loc_140422C41                                            ; +0x3a, 0x140422c0a\nmov     ecx, 6E8h; Size                                                ; +0x3c, 0x140422c0c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x41, 0x140422c11\nmov     [rsp+98h+arg_0], rax                                           ; +0x46, 0x140422c16\nmov     rcx, rax                                                       ; +0x4e, 0x140422c1e\ncall    GameManager__GameManager                                       ; +0x51, 0x140422c21\nnop                                                                    ; +0x56, 0x140422c26\nmov     cs:qword_14090BFD0, rax                                        ; +0x57, 0x140422c27\nmov     rcx, [rax]                                                     ; +0x5e, 0x140422c2e\nmov     rdx, [rcx+48h]                                                 ; +0x61, 0x140422c31\nmov     rcx, rax                                                       ; +0x65, 0x140422c35\ncall    rdx                                                            ; +0x68, 0x140422c38\nmov     rdx, cs:qword_14090BFD0                                        ; +0x6a, 0x140422c3a\nmov     eax, [rdx+2B4h]                                                ; +0x71, 0x140422c41\nsub     eax, [rdx+2B8h]                                                ; +0x77, 0x140422c47\nlea     rcx, xmmword_140747EC8                                         ; +0x7d, 0x140422c4d\nlea     rdx, aCreateAClCopyC; \"Create a <cl>copy</c> of this <cg>level\"... ; +0x84, 0x140422c54\ncmp     edi, eax                                                       ; +0x8b, 0x140422c5b\ncmovnz  rdx, rcx                                                       ; +0x8d, 0x140422c5d\nxorps   xmm0, xmm0                                                     ; +0x91, 0x140422c61\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x94, 0x140422c64\nxor     eax, eax                                                       ; +0x99, 0x140422c69\nmov     [rsp+98h+var_38], rax                                          ; +0x9b, 0x140422c6b\nmov     [rsp+98h+var_30], rax                                          ; +0xa0, 0x140422c70\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0xa5, 0x140422c75\nnop     dword ptr [rax+00h]                                            ; +0xac, 0x140422c7c\ninc     r8                                                             ; +0xb0, 0x140422c80\ncmp     [rdx+r8], al                                                   ; +0xb3, 0x140422c83\njnz     short loc_140422C80                                            ; +0xb7, 0x140422c87\nlea     rcx, [rsp+98h+var_48]                                          ; +0xb9, 0x140422c89\ncall    sub_14003D230                                                  ; +0xbe, 0x140422c8e\nlea     rax, [rsp+98h+var_48]                                          ; +0xc3, 0x140422c93\nmov     [rsp+98h+arg_0], rax                                           ; +0xc8, 0x140422c98\nlea     rdx, [rsp+98h+var_48]                                          ; +0xd0, 0x140422ca0\nlea     rcx, [rsp+98h+var_28]                                          ; +0xd5, 0x140422ca5\ncall    sub_14003F4F0                                                  ; +0xda, 0x140422caa\nmovss   xmm0, cs:flt_140835080                                         ; +0xdf, 0x140422caf\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xe7, 0x140422cb7\nxorps   xmm1, xmm1                                                     ; +0xed, 0x140422cbd\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xf0, 0x140422cc0\nmov     [rsp+98h+var_68], 0                                            ; +0xf6, 0x140422cc6\nmovss   xmm0, cs:dword_1408359A4                                       ; +0xfb, 0x140422ccb\nmovss   [rsp+98h+var_70], xmm0                                         ; +0x103, 0x140422cd3\nlea     rcx, aYes_0; \"YES\"                                             ; +0x109, 0x140422cd9\nmov     [rsp+98h+var_78], rcx                                          ; +0x110, 0x140422ce0\nlea     r9, unk_14073A058                                              ; +0x115, 0x140422ce5\nmov     r8, rax                                                        ; +0x11c, 0x140422cec\nlea     rdx, aCloneLevel; \"Clone Level\"                                ; +0x11f, 0x140422cef\nlea     rcx, [rbx+1B8h]                                                ; +0x126, 0x140422cf6\ncall    FLAlertLayer__create                                           ; +0x12d, 0x140422cfd\nmov     rbx, rax                                                       ; +0x132, 0x140422d02\nlea     rcx, [rsp+98h+var_48]                                          ; +0x135, 0x140422d05\ncall    sub_14003D310                                                  ; +0x13a, 0x140422d0a\nmov     rcx, [rbx]                                                     ; +0x13f, 0x140422d0f\nmov     r8, [rcx+40h]                                                  ; +0x142, 0x140422d12\nmov     edx, 6                                                         ; +0x146, 0x140422d16\nmov     rcx, rbx                                                       ; +0x14b, 0x140422d1b\ncall    r8                                                             ; +0x14e, 0x140422d1e\nmov     rcx, [rbx]                                                     ; +0x151, 0x140422d21\nmov     rdx, [rcx+428h]                                                ; +0x154, 0x140422d24\nmov     rcx, rbx                                                       ; +0x15b, 0x140422d2b\ncall    rdx                                                            ; +0x15e, 0x140422d2e\nmov     rbx, [rsp+98h+arg_8]                                           ; +0x160, 0x140422d30\nadd     rsp, 90h                                                       ; +0x168, 0x140422d38\npop     rdi                                                            ; +0x16f, 0x140422d3f\nretn                                                                   ; +0x170, 0x140422d40", "xrefs": ["LevelInfoLayer::tryCloneLevel @ 0x1404226ca", "LevelInfoLayer::numberInputClosed @ 0x1404229d3", "LevelInfoLayer::init @ 0x14041d9d6", "<???> @ 0x1409268ac"], "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"}