//
// BrowseSmartTemplateLayer::create from 0x9e0224 to 0x9e0350 (300 bytes)
//
// 3 xrefs:
// > SetupSmartTemplateLayer::onClick @ 0x9e0448
// > BrowseSmartKeyLayer::onBack @ 0x9e06b8
// > ??> @ 0xb41c8
//
// 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
//
BrowseSmartTemplateLayer *BrowseSmartTemplateLayer::create(GJSmartTemplate *a1, SmartBrowseFilter a2)
{
BrowseSmartTemplateLayer *v3; // x19
v3 = (BrowseSmartTemplateLayer *)operator new(0x2A8u);
cocos2d::CCLayerColor::CCLayerColor(v3);
v3->m_reverseKeyBack = 0;
v3->m_noElasticity = 0;
v3->m_containsBorder = 0;
v3->m_noAction = 0;
v3->m_forcePrioRegistered = 0;
v3->m_controlConnected = -1;
v3->m_joystickConnected = -1;
v3->m_buttonMenu = nullptr;
v3->m_alertProtocol = nullptr;
v3->m_scene = nullptr;
v3->m_mainLayer = nullptr;
v3->m_ZOrder = 0;
v3->m_button1 = nullptr;
v3->m_button2 = nullptr;
v3->m_scrollingLayer = nullptr;
v3->m_template = nullptr;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (BrowseSmartTemplateLayer_vtbl *)&off_11CB2B0;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_11CB7D8;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_11CB848;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_11CB860;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_11CB880;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_11CB8A0;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_11CB8C8;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_11CB948;
v3->m_pages = nullptr;
v3->m_page = 0;
v3->m_nextPageBtn = nullptr;
v3->m_prevPageBtn = nullptr;
v3->m_dotsArray = nullptr;
if ( BrowseSmartTemplateLayer::init(v3, a1, a2) )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
else
{
v3->~BrowseSmartTemplateLayer_0(v3);
return nullptr;
}
}