//
// GameLevelManager::deleteSmartTemplate from 0x4aa8c4 to 0x4aa8e6 (34 bytes)
//
// 1 xrefs:
// > SetupSmartTemplateLayer::FLAlert_Clicked @ 0x674b0e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:49:58 +0000
//
int __fastcall GameLevelManager::deleteSmartTemplate(int this, GJSmartTemplate *a2)
{
int v2; // r3
if ( a2 )
{
v2 = *(_DWORD *)(this + 976);
if ( v2 )
{
if ( *(_DWORD *)(v2 + 120) == *((_DWORD *)a2 + 30) )
*(_DWORD *)(this + 976) = 0;
}
return cocos2d::CCArray::removeObject(*(cocos2d::CCArray **)(this + 972), a2, 1);
}
return this;
}