//
// SetupSmartTemplateLayer::FLAlert_Clicked from 0xb17c00 to 0xb17c5c (92 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SetupSmartTemplateLayer::FLAlert_Clicked @ 0xb17c60
// > ??> @ 0xf3388
// > ??> @ 0x14b2980
//
// This function is hookable on this platform (idp: arm, 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 13:01:32 +0000
//
GameLevelManager *__fastcall SetupSmartTemplateLayer::FLAlert_Clicked(
GJSmartTemplate **this,
FLAlertLayer *a2,
unsigned __int8 a3)
{
int v4; // w19
GameLevelManager *result; // x0
__int64 v6; // x0
v4 = a3;
result = (GameLevelManager *)(*(__int64 (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result == 5 )
{
if ( v4 )
{
v6 = GameLevelManager::sharedState(result);
GameLevelManager::deleteSmartTemplate(v6, *(this + 84));
return (GameLevelManager *)SetupSmartTemplateLayer::onBack((SetupSmartTemplateLayer *)this, nullptr);
}
}
return result;
}