//
// SetupSmartTemplateLayer::create from 0x100070538 to 0x1000705f0 (184 bytes)
//
// 3 xrefs:
// > BrowseSmartTemplateLayer::onBack @ 0x1000729c0
// > LevelBrowserLayer::createNewSmartTemplate @ 0x1004190bc
// > LevelBrowserLayer::cellPerformedAction @ 0x1004199b0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
SetupSmartTemplateLayer *__fastcall SetupSmartTemplateLayer::create(GJSmartTemplate *a1)
{
SetupSmartTemplateLayer *v2; // x19
v2 = (SetupSmartTemplateLayer *)operator new(0x2A0u);
FLAlertLayer::FLAlertLayer(v2);
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SetupSmartTemplateLayer_vtbl *)off_100778748;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_100778C88;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_100778CF8;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_100778D10;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)off_100778D30;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_100778D50;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_100778D78;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)off_100778DF8;
v2->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&off_100778E18;
v2->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&off_100778E60;
v2->m_smartTemplate = nullptr;
v2->m_unk298 = nullptr;
v2->m_nameInput = nullptr;
if ( SetupSmartTemplateLayer::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
((void (__fastcall *)(SetupSmartTemplateLayer *))v2->~SetupSmartTemplateLayer_0)(v2);
return nullptr;
}
return v2;
}