//
// LevelSearchLayer::scene from 0x14030c040 to 0x14030c188 (328 bytes)
//
// 3 xrefs:
// > CreatorLayer::onOnlineLevels @ 0x14009db07
// > LevelSearchLayer::onSearchMode @ 0x14030e533
// > ??> @ 0x1406d46f4
//
// 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
//
// local variable allocation has failed, the output may be wrong!
// Hidden C++ exception states: #wind=1
cocos2d::CCScene *LevelSearchLayer::scene(int a1)
{
cocos2d::CCScene *v2; // rsi
__int64 v3; // rdx
__int64 v4; // rcx
LevelSearchLayer *v5; // rdi
v2 = (cocos2d::CCScene *)cocos2d::CCScene::create(*(_QWORD *)&a1);
*(_QWORD *)(cocos2d::CCApplication::sharedApplication(v4, v3) + 224) = v2;
v5 = (LevelSearchLayer *)operator new(0x1F0u);
cocos2d::CCLayer::CCLayer(v5);
v5->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (LevelSearchLayer_vtbl *)&LevelSearchLayer::`vftable';
v5->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&LevelSearchLayer::`vftable';
v5->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&LevelSearchLayer::`vftable';
v5->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&LevelSearchLayer::`vftable';
v5->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&LevelSearchLayer::`vftable';
v5->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&LevelSearchLayer::`vftable';
v5->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&LevelSearchLayer::`vftable';
v5->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&LevelSearchLayer::`vftable';
v5->DemonFilterDelegate::__vftable = (DemonFilterDelegate_vtbl *)&LevelSearchLayer::`vftable';
v5->m_type = 0;
v5->m_searchInput = nullptr;
v5->m_starsSprite = nullptr;
v5->m_difficultySprites = nullptr;
v5->m_lengthSprites = nullptr;
v5->m_difficultyDict = nullptr;
v5->m_lastDifficultySprite = nullptr;
v5->m_demonTypeButton = nullptr;
if ( LevelSearchLayer::init(v5, a1) )
{
cocos2d::CCObject::autorelease(v5);
}
else
{
((void (__fastcall *)(LevelSearchLayer *, __int64))v5->~LevelSearchLayer)(v5, 1);
v5 = nullptr;
}
v2->addChild_1(v2, v5);
return v2;
}