//
// PauseLayer::onTryEdit from 0x7d6388 to 0x7d64e0 (344 bytes)
//
// 3 xrefs:
// > ??> @ 0x5a898
// > PauseLayer::customSetup @ 0x7d83e8
// > ??> @ 0x1542178
//
// 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:21 +0000
//
__int64 __fastcall PauseLayer::onTryEdit(PauseLayer *this, cocos2d::CCObject *a2)
{
__int64 v3; // x20
_QWORD v6[2]; // [xsp+30h] [xbp+30h] BYREF
void *v7; // [xsp+40h] [xbp+40h]
if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState(_stack_chk_guard) + 544) + 1936LL) + 1140LL) == 2 )
{
PauseLayer::onEdit(this, a2);
}
else
{
v7 = (void *)operator new(0x50u);
v6[0] = 81;
v6[1] = 69;
strcpy((char *)v7, "Are you sure you want to open the editor?\n(Read-Only)");
v3 = FLAlertLayer::create(
(__int64)this + 552,
(cocos2d::CCLabelBMFont *)"Edit Level",
(char *)v6,
(ButtonSprite *)"Cancel",
(ButtonSprite *)"Open",
380.0);
if ( (v6[0] & 1) != 0 )
operator delete(v7);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 72LL))(v3, 1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);
}
return _stack_chk_guard;
}