//
// EditorPauseLayer::onExitNoSave from 0x8b6eb8 to 0x8b6fd0 (280 bytes)
//
// 3 xrefs:
// > ??> @ 0xf8cf8
// > EditorPauseLayer::customSetup @ 0x8b581c
// > ??> @ 0x15478d8
//
// 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:56:25 +0000
//
__int64 __fastcall EditorPauseLayer::onExitNoSave(LevelEditorLayer **this, cocos2d::CCObject *a2)
{
__int64 v4; // x20
__int64 v5[2]; // [xsp+30h] [xbp+30h] BYREF
void *v6; // [xsp+40h] [xbp+40h]
if ( !*((_BYTE *)this + 568) )
{
if ( *(_DWORD *)(*((_QWORD *)*(this + 72) + 242) + 1140LL) == 2 )
{
v5[0] = 0;
v5[1] = 0;
v6 = nullptr;
std::string::__init(v5, "Exit without saving? All unsaved changes will be lost!", 0x46u);
v4 = FLAlertLayer::create(
(__int64)(this + 69),
(cocos2d::CCLabelBMFont *)"Exit",
(char *)v5,
(ButtonSprite *)"NO",
(ButtonSprite *)"YES",
300.0);
if ( (v5[0] & 1) != 0 )
operator delete(v6);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 72LL))(v4, 1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
}
else
{
EditorPauseLayer::onExitEditor(this, nullptr);
}
}
return _stack_chk_guard;
}