//
// SetupSmartTemplateLayer::FLAlert_Clicked from 0x1004e87b0 to 0x1004e881b (107 bytes)
//
// 1 xrefs:
// > ??> @ 0x100956e30
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall SetupSmartTemplateLayer::FLAlert_Clicked(SetupSmartTemplateLayer *a1, FLAlertLayer *a2, bool a3)
{
GameLevelManager *v3; // rax
GJSmartTemplate *m_smartTemplate; // rsi
GJSearchObject *v5; // rax
LevelBrowserLayer *v6; // rax
if ( !(!a3 | (((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) != 5)) )
{
v3 = GameLevelManager::sharedState();
m_smartTemplate = a1->m_smartTemplate;
GameLevelManager::deleteSmartTemplate(v3, m_smartTemplate);
SetupSmartTemplateLayer::onClose(a1, m_smartTemplate);
v5 = GJSearchObject::create_2(SmartTemplates);
v5->m_searchIsOverlay = 1;
v6 = LevelBrowserLayer::create(v5);
LevelBrowserLayer::show(v6);
}
}