//
// PauseLayer::onTryEdit from 0x1001bf6ac to 0x1001bf770 (196 bytes)
//
// 1 xrefs:
// > PauseLayer::customSetup @ 0x1001be3b8
//
// 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 11:00:14 +0000
//
__int64 __fastcall PauseLayer::onTryEdit(__int64 a1)
{
__int64 v3; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v5; // [xsp+1Fh] [xbp-11h]
if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState(a1) + 544) + 1936LL) + 1140LL) == 2 )
return PauseLayer::onEdit(a1);
sub_100009900(__p, "Are you sure you want to open the editor?\n(Read-Only)");
v3 = FLAlertLayer::create_1(a1 + 552, "Edit Level", __p, "Cancel", "Open", 380.0);
if ( v5 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 72LL))(v3, 1);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);
}