//
// LevelSearchLayer::create from 0x3af058 to 0x3af104 (172 bytes)
//
// 1 xrefs:
// > LevelSearchLayer::scene @ 0x3af11a
//
// 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
//
LevelSearchLayer *LevelSearchLayer::create(int a1)
{
LevelSearchLayer *v2; // r4
LevelSearchLayer_vtbl *v3; // r3
LevelSearchLayer *v4; // r0
v2 = (LevelSearchLayer *)operator new(0x168u);
cocos2d::CCLayer::CCLayer(v2);
v2->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (LevelSearchLayer_vtbl *)&off_A4E030;
v2->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A4E284;
v2->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A4E2BC;
v2->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A4E2C8;
v2->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A4E2D8;
v2->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A4E2E8;
v2->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&off_A4E2FC;
v2->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&off_A4E320;
v2->DemonFilterDelegate::__vftable = (DemonFilterDelegate_vtbl *)&off_A4E32C;
v2->m_type = 0;
v2->m_searchInput = nullptr;
v2->m_starsSprite = nullptr;
v2->m_difficultySprites = nullptr;
v2->m_lengthSprites = nullptr;
v2->m_difficultyDict = nullptr;
v2->m_lastDifficultySprite = nullptr;
v2->m_demonTypeButton = nullptr;
if ( LevelSearchLayer::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
v3 = v2->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v4 = v2;
v2 = nullptr;
v3->~LevelSearchLayer_0(v4);
}
return v2;
}