//
// LevelSelectLayer::create from 0x100401898 to 0x100401940 (168 bytes)
//
// 1 xrefs:
// > LevelSelectLayer::scene @ 0x100401870
//
// 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
//
LevelSelectLayer *__fastcall LevelSelectLayer::create(int a1)
{
LevelSelectLayer *v2; // x19
v2 = (LevelSelectLayer *)operator new(0x1D8u);
cocos2d::CCLayer::CCLayer((__int64)v2);
v2->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (LevelSelectLayer_vtbl *)&off_1008174E0;
v2->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_100817970;
v2->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_1008179E0;
v2->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_1008179F8;
v2->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)off_100817A18;
v2->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_100817A38;
v2->BoomScrollLayerDelegate::__vftable = (BoomScrollLayerDelegate_vtbl *)off_100817A60;
v2->DynamicScrollDelegate::__vftable = (DynamicScrollDelegate_vtbl *)&off_100817A90;
v2->m_width = 0.0;
*(_OWORD *)&v2->m_backgroundSprite = 0u;
*(_OWORD *)&v2->m_scrollLayer = 0u;
v2->m_masterDetectiveUnlocked = 0;
if ( LevelSelectLayer::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
((void (__fastcall *)(LevelSelectLayer *))v2->~LevelSelectLayer_0)(v2);
return nullptr;
}
return v2;
}