//
// LevelInfoLayer::confirmClone from 0x7e6be4 to 0x7e6d24 (320 bytes)
//
// 5 xrefs:
// > LevelInfoLayer::tryCloneLevel @ 0x7e6e3c
// > LevelInfoLayer::numberInputClosed @ 0x7e79ac
// > ??> @ 0x9e758
// > LevelInfoLayer::init @ 0x7ec170
// > ??> @ 0x1544610
//
// This function is hookable on this platform (idp: arm, 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 12:54:29 +0000
//
__int64 __fastcall LevelInfoLayer::confirmClone(LevelInfoLayer *this, cocos2d::CCObject *a2)
{
__int64 v4; // x1
GameManager *v5; // x0
int v6; // w21
__int64 v7; // x0
const char *v8; // x1
size_t v9; // x0
__int64 v10; // x20
char *v11; // [xsp+38h] [xbp+38h]
__int64 v12[2]; // [xsp+40h] [xbp+40h] BYREF
void *v13; // [xsp+50h] [xbp+50h]
if ( !*((_BYTE *)this + 488) )
{
v4 = *((_QWORD *)this + 63);
v5 = (GameManager *)*(unsigned int *)(v4 + 576);
v6 = (_DWORD)v5 - *(_DWORD *)(v4 + 580);
v7 = GameManager::sharedState(v5);
if ( v6 == *(_DWORD *)(v7 + 660) - *(_DWORD *)(v7 + 664) )
v8 = "Create a copy of this level?\n(Creator enabled)";
else
v8 = "Create a copy of this level?";
v11 = (char *)v8;
v12[0] = 0;
v12[1] = 0;
v13 = nullptr;
v9 = strlen(v8);
std::string::__init(v12, v11, v9);
v10 = FLAlertLayer::create(
(__int64)this + 440,
(cocos2d::CCLabelBMFont *)"Clone Level",
(char *)v12,
(ButtonSprite *)"NO",
(ButtonSprite *)"YES",
300.0);
if ( (v12[0] & 1) != 0 )
operator delete(v13);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 72LL))(v10, 6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 1312LL))(v10);
}
return _stack_chk_guard;
}