//
// EditorPauseLayer::onExitNoSave from 0x10027e4d0 to 0x10027e619 (329 bytes)
//
// 1 xrefs:
// > EditorPauseLayer::customSetup @ 0x10027d4f0
//
// This function is hookable on this platform (idp: pc, 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:27:42 +0000
//
void __fastcall EditorPauseLayer::onExitNoSave(__int64 a1, double a2)
{
__int64 v2; // rbx
__int64 v3; // rax
__int64 v4; // rax
__int64 v5; // rdx
double v6; // xmm0_8
__int64 v7; // rax
_QWORD v8[2]; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
if ( !*(_BYTE *)(a1 + 568) )
{
if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 576) + 1936LL) + 1140LL) == 2 )
{
__p = operator new(0x48u);
v8[0] = 73;
v8[1] = 70;
strcpy((char *)__p, "Exit without saving? All unsaved changes will be lost!");
v2 = FLAlertLayer::create_1(a1 + 552, "Exit", v8, "NO", "YES", 300.0);
if ( (v8[0] & 1) != 0 )
operator delete(__p);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 72LL))(v2, 1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1312LL))(v2);
}
else
{
v3 = EditorSFXManager::sharedState(a1);
EditorSFXManager::playAction_1(v3, 224);
sub_1000A9AF0(a2);
v4 = FMODAudioEngine::sharedEngine(a2);
FMODAudioEngine::unloadAllEffects(v4);
CCBlockLayer::decrementForcePrio(a1);
*(_QWORD *)&v6 = GameManager::sharedState(a1, 224, v5).u64[0];
GameManager::returnToLastScene(v7, *(_QWORD *)(*(_QWORD *)(a1 + 576) + 1936LL), v6);
}
}
}