//
// BrowseSmartTemplateLayer::create from 0x540088 to 0x54012a (162 bytes)
//
// 2 xrefs:
// > SetupSmartTemplateLayer::onClick @ 0x540164
// > BrowseSmartKeyLayer::onBack @ 0x540210
//
// 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; // r4
BrowseSmartTemplateLayer_vtbl *v4; // r3
BrowseSmartTemplateLayer *v5; // r0
v3 = (BrowseSmartTemplateLayer *)operator new(0x208u);
FLAlertLayer::FLAlertLayer(v3);
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (BrowseSmartTemplateLayer_vtbl *)&off_A86C38;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A86ECC;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A86F04;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A86F10;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A86F20;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A86F30;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A86F44;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_A86F84;
v3->m_template = nullptr;
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);
}
else
{
v4 = v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v5 = v3;
v3 = nullptr;
v4->~BrowseSmartTemplateLayer_0(v5);
}
return v3;
}