//
// EditorPauseLayer::FLAlert_Clicked from 0x140182df0 to 0x140182f02 (274 bytes)
//
// 2 xrefs:
// > ??> @ 0x14074ac50
// > ??> @ 0x140918c98
//
// 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
_QWORD *__fastcall EditorPauseLayer::FLAlert_Clicked(__int64 a1, __int64 a2, char a3)
{
_QWORD *result; // rax
__int64 v7; // rcx
__int64 v8; // rax
__int64 v9; // rcx
__int64 v10; // rax
__int64 v11; // rax
void *v12; // [rsp+38h] [rbp+10h]
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 1 && a3 )
return (_QWORD *)EditorPauseLayer::onExitEditor(a1 - 552);
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 3 && a3 )
{
v8 = LocalLevelManager::sharedState(v7);
result = GManager::waitForSave(v8, 30.0);
if ( *(_QWORD *)(a1 + 24) )
return (_QWORD *)LevelEditorLayer::saveLevel();
}
else
{
result = (_QWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
if ( (_DWORD)result == 4 && a3 )
{
v10 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v12 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v12);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v10 = qword_14090BFD0;
}
*(_BYTE *)(v10 + 963) = 1;
v11 = cocos2d::CCApplication::sharedApplication(v9);
return (_QWORD *)(*(__int64 (__fastcall **)(__int64, const char *))(*(_QWORD *)v11 + 96LL))(
v11,
"https://www.boomlings.com/GDEditor");
}
}
return result;
}