//
// LevelSelectLayer::scene from 0x1403182c0 to 0x1403183ec (300 bytes)
//
// 5 xrefs:
// > GameManager::returnToLastScene @ 0x14018a05e
// > LevelAreaLayer::onBack @ 0x1402c632d
// > MenuLayer::onPlay @ 0x140335a2b
// > SecretLayer4::onBack @ 0x1403f36e2
// > ??> @ 0x1406d4a18
//
// 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 *LevelSelectLayer::scene(int a1)
{
cocos2d::CCScene *v2; // rsi
__int64 v3; // rdx
__int64 v4; // rcx
LevelSelectLayer *v5; // rdi
v2 = (cocos2d::CCScene *)cocos2d::CCScene::create(*(_QWORD *)&a1);
*(_QWORD *)(cocos2d::CCApplication::sharedApplication(v4, v3) + 224) = v2;
v5 = (LevelSelectLayer *)operator new(0x1D8u);
cocos2d::CCLayer::CCLayer(v5);
v5->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (LevelSelectLayer_vtbl *)&LevelSelectLayer::`vftable';
v5->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&LevelSelectLayer::`vftable';
v5->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&LevelSelectLayer::`vftable';
v5->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&LevelSelectLayer::`vftable';
v5->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&LevelSelectLayer::`vftable';
v5->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&LevelSelectLayer::`vftable';
v5->BoomScrollLayerDelegate::__vftable = (BoomScrollLayerDelegate_vtbl *)&LevelSelectLayer::`vftable';
v5->DynamicScrollDelegate::__vftable = (DynamicScrollDelegate_vtbl *)&LevelSelectLayer::`vftable';
v5->m_width = 0.0;
v5->m_backgroundSprite = nullptr;
v5->m_groundLayer = nullptr;
v5->m_scrollLayer = nullptr;
*(_QWORD *)&v5->m_unknown = 0;
v5->m_masterDetectiveUnlocked = 0;
if ( LevelSelectLayer::init(v5, a1) )
{
cocos2d::CCObject::autorelease(v5);
}
else
{
((void (__fastcall *)(LevelSelectLayer *, __int64))v5->~LevelSelectLayer)(v5, 1);
v5 = nullptr;
}
v2->addChild_1(v2, v5);
return v2;
}