//
// EditorPauseLayer::FLAlert_Clicked from 0x10027f460 to 0x10027f55d (253 bytes)
//
// 2 xrefs:
// > sub_10027F560 @ 0x10027f56c
// > ??> @ 0x100afdf58
//
// 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
//
char __fastcall EditorPauseLayer::FLAlert_Clicked(__int64 a1, __int64 a2, unsigned __int8 a3, double a4)
{
unsigned __int8 v4; // r14
__int64 v5; // rax
__int64 v6; // rax
__int64 v7; // rdx
double v8; // xmm0_8
__int64 v9; // rax
char result; // al
__int64 v11; // rax
__int64 v12; // rdi
__int64 v13; // rdx
double v14; // xmm0_8
__int64 v15; // rax
v4 = a3 ^ 1;
if ( a3 ^ 1 | ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) != 1) )
{
if ( v4 | ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) != 3) )
{
result = v4 | ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) != 4);
if ( !result )
{
*(_QWORD *)&v14 = GameManager::sharedState(a2, a2, v13).u64[0];
return GameManager::openEditorGuide(v15, v14);
}
}
else
{
v11 = LocalLevelManager::sharedState(a4);
result = sub_1004A5220(v11, 30.0);
v12 = *(_QWORD *)(a1 + 576);
if ( v12 )
return LevelEditorLayer::saveLevel(v12);
}
}
else
{
v5 = EditorSFXManager::sharedState(a2);
EditorSFXManager::playAction_1(v5, 224);
sub_1000A9AF0(a4);
v6 = FMODAudioEngine::sharedEngine(a4);
FMODAudioEngine::unloadAllEffects(v6);
CCBlockLayer::decrementForcePrio(a1);
*(_QWORD *)&v8 = GameManager::sharedState(a1, 224, v7).u64[0];
return GameManager::returnToLastScene(v9, *(_QWORD *)(*(_QWORD *)(a1 + 576) + 1936LL), v8);
}
return result;
}