//
// LevelSearchLayer::scene from 0x100627830 to 0x100627950 (288 bytes)
//
// 2 xrefs:
// > CreatorLayer::onOnlineLevels @ 0x100298b49
// > LevelSearchLayer::onSearchMode @ 0x10062a23d
//
// 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
//
cocos2d::CCScene *__fastcall LevelSearchLayer::scene(int a1)
{
cocos2d::CCScene *v1; // rbx
char *v2; // r14
v1 = cocos2d::CCScene::create();
AppDelegate::get()->m_runningScene = v1;
v2 = (char *)operator new(0x1F0u);
cocos2d::CCLayer::CCLayer((__int64)v2);
*(_QWORD *)v2 = off_100983DB0;
*((_QWORD *)v2 + 40) = off_100984258;
*((_QWORD *)v2 + 41) = &off_1009842C8;
*((_QWORD *)v2 + 42) = off_1009842E0;
*((_QWORD *)v2 + 43) = off_100984300;
*((_QWORD *)v2 + 44) = off_100984320;
*((_QWORD *)v2 + 51) = off_100984348;
*((_QWORD *)v2 + 52) = &off_100984390;
*((_QWORD *)v2 + 53) = &off_1009843A8;
*((_DWORD *)v2 + 108) = 0;
*(_OWORD *)(v2 + 440) = 0;
*(_OWORD *)(v2 + 456) = 0;
*(_OWORD *)(v2 + 472) = 0;
*((_QWORD *)v2 + 61) = 0;
if ( LevelSearchLayer::init((LevelSearchLayer *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
v2 = nullptr;
}
((void (__fastcall *)(cocos2d::CCScene *, char *))v1->addChild)(v1, v2);
return v1;
}