//
// BrowseSmartTemplateLayer::create from 0x100070f04 to 0x100070fbc (184 bytes)
//
// 2 xrefs:
// > SetupSmartTemplateLayer::onClick @ 0x100070e40
// > BrowseSmartKeyLayer::onBack @ 0x100073b08
//
// 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 *__fastcall BrowseSmartTemplateLayer::create(GJSmartTemplate *a1, SmartBrowseFilter a2)
{
char *v3; // x19
SmartBrowseFilter v4; // w2
v3 = (char *)operator new(0x2A8u);
FLAlertLayer::FLAlertLayer((FLAlertLayer *)v3);
*(_QWORD *)v3 = off_100778E78;
*((_QWORD *)v3 + 40) = off_1007793A0;
*((_QWORD *)v3 + 41) = &off_100779410;
*((_QWORD *)v3 + 42) = off_100779428;
*((_QWORD *)v3 + 43) = off_100779448;
*((_QWORD *)v3 + 44) = off_100779468;
*((_QWORD *)v3 + 51) = off_100779490;
*((_QWORD *)v3 + 54) = off_100779510;
*((_DWORD *)v3 + 162) = 0;
*(_OWORD *)(v3 + 632) = 0u;
*((_QWORD *)v3 + 82) = 0;
*((_QWORD *)v3 + 84) = 0;
*((_QWORD *)v3 + 83) = 0;
if ( BrowseSmartTemplateLayer::init((BrowseSmartTemplateLayer *)v3, a1, v4) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v3 + 16LL))(v3);
return nullptr;
}
return (BrowseSmartTemplateLayer *)v3;
}