//
// EditorPauseLayer::onExitNoSave from 0x140182c80 to 0x140182de5 (357 bytes)
//
// 2 xrefs:
// > EditorPauseLayer::customSetup @ 0x1401817bf
// > ??> @ 0x140918c8c
//
// 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 11:27:37 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall EditorPauseLayer::onExitNoSave(__int64 a1)
{
int v1; // ebx
__int64 v2; // rax
cocos2d::CCObject *v3; // rbx
__int128 v4; // [rsp+50h] [rbp-48h] BYREF
__int64 v5; // [rsp+60h] [rbp-38h]
__int64 v6; // [rsp+68h] [rbp-30h]
_BYTE v7[40]; // [rsp+70h] [rbp-28h] BYREF
if ( !*(_BYTE *)(a1 + 568) )
{
if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 576) + 2168LL) + 1220LL) == 2 )
{
v1 = a1 + 552;
if ( !a1 )
v1 = 0;
v4 = 0;
*(_QWORD *)&v4 = sub_14003D460(0x50u);
v5 = 70;
v6 = 79;
strcpy((char *)v4, "Exit without saving? All unsaved changes will be lost!");
v2 = sub_14003F4F0((__int64)v7, (__int64)&v4);
v3 = FLAlertLayer::create(
v1,
(int)"Exit",
v2,
(__int64)&unk_14073A058,
(__int64)"YES",
1133903872,
0,
0,
1065353216);
sub_14003D310((__int64)&v4);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 64LL))(v3, 1);
(*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);
}
else
{
EditorPauseLayer::onExitEditor(a1);
}
}
}