//
// LevelInfoLayer::confirmClone from 0x140422bd0 to 0x140422d41 (369 bytes)
//
// 4 xrefs:
// > LevelInfoLayer::tryCloneLevel @ 0x1404226ca
// > LevelInfoLayer::numberInputClosed @ 0x1404229d3
// > LevelInfoLayer::init @ 0x14041d9d6
// > ??> @ 0x1409268ac
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:32:10 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall LevelInfoLayer::confirmClone(__int64 a1)
{
int v1; // ebx
int v2; // edi
__int64 v3; // rdx
int v4; // eax
__int128 *v5; // rdx
size_t v6; // r8
__int64 v7; // rax
cocos2d::CCObject *v8; // rbx
__int128 v9; // [rsp+50h] [rbp-48h] BYREF
__int64 v10; // [rsp+60h] [rbp-38h]
__int64 v11; // [rsp+68h] [rbp-30h]
_BYTE v12[40]; // [rsp+70h] [rbp-28h] BYREF
void *v13; // [rsp+A0h] [rbp+8h]
v1 = a1;
if ( !*(_BYTE *)(a1 + 488) )
{
v2 = *(_DWORD *)(*(_QWORD *)(a1 + 504) + 648LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 652LL);
v3 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v13 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v13);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v3 = qword_14090BFD0;
}
v4 = *(_DWORD *)(v3 + 692) - *(_DWORD *)(v3 + 696);
v5 = (__int128 *)"Create a copy of this level?\n(Creator enabled)";
if ( v2 != v4 )
v5 = &xmmword_140747EC8;
v9 = 0;
v10 = 0;
v11 = 0;
v6 = -1;
do
++v6;
while ( *((_BYTE *)v5 + v6) );
sub_14003D230(&v9, v5, v6);
v7 = sub_14003F4F0((__int64)v12, (__int64)&v9);
v8 = FLAlertLayer::create(
v1 + 440,
(int)"Clone Level",
v7,
(__int64)&unk_14073A058,
(__int64)"YES",
1133903872,
0,
0,
1065353216);
sub_14003D310((__int64)&v9);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v8 + 64LL))(v8, 6);
(*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v8 + 1064LL))(v8);
}
}