//
// SetupSmartTemplateLayer::create from 0x1405ee410 to 0x1405ee525 (277 bytes)
//
// 4 xrefs:
// > LevelBrowserLayer::onNew @ 0x1403e7ebb
// > LevelBrowserLayer::cellPerformedAction @ 0x1403eab83
// > BrowseSmartTemplateLayer::onBack @ 0x1405f0f30
// > ??> @ 0x14092f120
//
// 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
//
// Hidden C++ exception states: #wind=1
cocos2d::CCObject *__fastcall SetupSmartTemplateLayer::create(__int64 a1)
{
cocos2d::CCObject *v2; // rdi
v2 = (cocos2d::CCObject *)operator new(0x2B8u);
FLAlertLayer::FLAlertLayer((__int64)v2);
*(_QWORD *)v2 = &SetupSmartTemplateLayer::`vftable';
*((_QWORD *)v2 + 40) = &SetupSmartTemplateLayer::`vftable';
*((_QWORD *)v2 + 41) = &SetupSmartTemplateLayer::`vftable';
*((_QWORD *)v2 + 42) = &SetupSmartTemplateLayer::`vftable';
*((_QWORD *)v2 + 43) = &SetupSmartTemplateLayer::`vftable';
*((_QWORD *)v2 + 44) = &SetupSmartTemplateLayer::`vftable';
*((_QWORD *)v2 + 51) = &SetupSmartTemplateLayer::`vftable';
*((_QWORD *)v2 + 54) = &SetupSmartTemplateLayer::`vftable';
*((_QWORD *)v2 + 68) = &SetupSmartTemplateLayer::`vftable';
*((_QWORD *)v2 + 83) = &SetupSmartTemplateLayer::`vftable';
*((_QWORD *)v2 + 84) = 0;
*((_QWORD *)v2 + 85) = 0;
*((_QWORD *)v2 + 86) = 0;
if ( (unsigned __int8)SetupSmartTemplateLayer::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
return v2;
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);
return nullptr;
}
}