//
// GameLevelManager::deleteSmartTemplate from 0x10054f070 to 0x10054f0b2 (66 bytes)
//
// 2 xrefs:
// > SetupSmartTemplateLayer::FLAlert_Clicked @ 0x1004e3264
// > sub_1004E32A0 @ 0x1004e32d8
//
// 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:32:02 +0000
//
void __fastcall GameLevelManager::deleteSmartTemplate(__int64 a1, __int64 a2)
{
__int64 v2; // rax
if ( a2 )
{
v2 = *(_QWORD *)(a1 + 1528);
if ( v2 )
{
if ( *(_DWORD *)(v2 + 192) == *(_DWORD *)(a2 + 192) )
*(_QWORD *)(a1 + 1528) = 0;
}
sub_1007FF140(*(_QWORD *)(a1 + 1520), a2, 1);
}
}