//
// LevelInfoLayer::confirmClone from 0x100028a1c to 0x100028aec (208 bytes)
//
// 3 xrefs:
// > LevelInfoLayer::tryCloneLevel @ 0x100028b5c
// > LevelInfoLayer::numberInputClosed @ 0x10002a904
// > LevelInfoLayer::init @ 0x100025604
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall LevelInfoLayer::confirmClone(LevelInfoLayer *a1, cocos2d::CCObject *a2)
{
int v3; // w20
GameManager *v4; // x0
char *v5; // x1
__int64 v6; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v8; // [xsp+1Fh] [xbp-11h]
if ( !a1->m_isBusy )
{
v3 = a1->m_level->m_userID.random - a1->m_level->m_userID.seed;
v4 = GameManager::sharedState();
if ( v3 == v4->m_playerUserID.random - v4->m_playerUserID.seed )
v5 = "Create a copy of this level?\n(Creator enabled)";
else
v5 = "Create a copy of this level?";
sub_100009900(__p, v5);
v6 = FLAlertLayer::create_1(&a1->FLAlertLayerProtocol, "Clone Level", __p, "NO", "YES", 300.0);
if ( v8 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 72LL))(v6, 6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1288LL))(v6);
}
}