//
// SetupSmartTemplateLayer::create from 0x9de6bc to 0x9de7e4 (296 bytes)
//
// 4 xrefs:
// > LevelBrowserLayer::createNewSmartTemplate @ 0x6e9364
// > LevelBrowserLayer::cellPerformedAction @ 0x6ed8ec
// > BrowseSmartTemplateLayer::onBack @ 0x9e066c
// > ??> @ 0x75ff0
//
// 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 *SetupSmartTemplateLayer::create(GJSmartTemplate *a1)
{
SetupSmartTemplateLayer *v2; // x19
v2 = (SetupSmartTemplateLayer *)operator new(0x2A0u);
cocos2d::CCLayerColor::CCLayerColor(v2);
v2->m_controlConnected = -1;
v2->m_joystickConnected = -1;
v2->m_buttonMenu = nullptr;
v2->m_alertProtocol = nullptr;
v2->m_scene = nullptr;
v2->m_reverseKeyBack = 0;
v2->m_mainLayer = nullptr;
v2->m_ZOrder = 0;
v2->m_noElasticity = 0;
v2->m_button1 = nullptr;
v2->m_button2 = nullptr;
v2->m_scrollingLayer = nullptr;
v2->m_containsBorder = 0;
v2->m_noAction = 0;
v2->m_forcePrioRegistered = 0;
v2->m_smartTemplate = nullptr;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SetupSmartTemplateLayer_vtbl *)&off_11CAB80;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_11CB0C0;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_11CB130;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_11CB148;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_11CB168;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_11CB188;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_11CB1B0;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_11CB230;
v2->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)off_11CB250;
v2->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&off_11CB298;
v2->m_nameInput = nullptr;
v2->m_unk298 = nullptr;
if ( SetupSmartTemplateLayer::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
return v2;
}
else
{
v2->~SetupSmartTemplateLayer_0(v2);
return nullptr;
}
}