//
// SetupSmartTemplateLayer::dSetupSmartTemplateLayer from 0x1405ebf40 to 0x1405ec013 (211 bytes)
//
// 3 xrefs:
// > sub_1405F2324 @ 0x1405f232b
// > ??> @ 0x140804a00
// > ??> @ 0x14092f00c
//
// 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 11:35:04 +0000
//
_QWORD *__fastcall SetupSmartTemplateLayer::dSetupSmartTemplateLayer(_QWORD *Block, char a2)
{
cocos2d::CCObject *v4; // rcx
*Block = &SetupSmartTemplateLayer::`vftable';
Block[40] = &SetupSmartTemplateLayer::`vftable';
Block[41] = &SetupSmartTemplateLayer::`vftable';
Block[42] = &SetupSmartTemplateLayer::`vftable';
Block[43] = &SetupSmartTemplateLayer::`vftable';
Block[44] = &SetupSmartTemplateLayer::`vftable';
Block[51] = &SetupSmartTemplateLayer::`vftable';
Block[54] = &SetupSmartTemplateLayer::`vftable';
Block[68] = &SetupSmartTemplateLayer::`vftable';
Block[83] = &SetupSmartTemplateLayer::`vftable';
v4 = (cocos2d::CCObject *)Block[84];
if ( v4 )
cocos2d::CCObject::release(v4);
FLAlertLayer::dFLAlertLayer((__int64)Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}