//
// PauseLayer::onTryEdit from 0x1003d7180 to 0x1003d7274 (244 bytes)
//
// 1 xrefs:
// > PauseLayer::customSetup @ 0x1003d6042
//
// 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 PauseLayer::onTryEdit(PauseLayer *a1, cocos2d::CCObject *a2)
{
__int64 v2; // rbx
_QWORD v3[2]; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
if ( GameManager::sharedState()->m_playLayer->m_level->m_levelType == Editor )
{
PauseLayer::onEdit(a1, a2);
}
else
{
__p = operator new(0x48u);
v3[0] = 73;
v3[1] = 69;
strcpy((char *)__p, "Are you sure you want to open the editor?\n(Read-Only)");
v2 = FLAlertLayer::create_1(&a1->FLAlertLayerProtocol, "Edit Level", v3, "Cancel", "Open", 380.0);
if ( (v3[0] & 1) != 0 )
operator delete(__p);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 72LL))(v2, 1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1288LL))(v2);
}
}