//
// LevelSettingsLayer::create from 0x14031e830 to 0x14031ea18 (488 bytes)
//
// 3 xrefs:
// > EditorUI::onSettings @ 0x1400e1978
// > EditorUI::editObject @ 0x14011c2ec
// > ??> @ 0x1406d4bbc
//
// 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
//
// Hidden C++ exception states: #wind=1
LevelSettingsLayer *LevelSettingsLayer::create(LevelSettingsObject *a1, LevelEditorLayer *a2)
{
LevelSettingsLayer *v4; // rsi
v4 = (LevelSettingsLayer *)operator new(0x370u);
FLAlertLayer::FLAlertLayer(v4);
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (LevelSettingsLayer_vtbl *)&LevelSettingsLayer::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&LevelSettingsLayer::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&LevelSettingsLayer::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&LevelSettingsLayer::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&LevelSettingsLayer::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&LevelSettingsLayer::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&LevelSettingsLayer::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&LevelSettingsLayer::`vftable';
v4->ColorSelectDelegate::__vftable = (ColorSelectDelegate_vtbl *)&LevelSettingsLayer::`vftable';
v4->SelectArtDelegate::__vftable = (SelectArtDelegate_vtbl *)&LevelSettingsLayer::`vftable';
v4->SelectSettingDelegate::__vftable = (SelectSettingDelegate_vtbl *)&LevelSettingsLayer::`vftable';
v4->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&LevelSettingsLayer::`vftable';
v4->CustomSongLayerDelegate::__vftable = (CustomSongLayerDelegate_vtbl *)&LevelSettingsLayer::`vftable';
v4->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&LevelSettingsLayer::`vftable';
v4->m_songSelectNode = nullptr;
v4->m_speed = Normal;
v4->m_bgColorSprite = nullptr;
v4->m_gColorSprite = nullptr;
v4->m_g2ColorSprite = nullptr;
v4->m_lineColorSprite = nullptr;
v4->m_mgColorSprite = nullptr;
v4->m_mg2ColorSprite = nullptr;
v4->m_moreColorsSprite = nullptr;
v4->m_backgroundSprite = nullptr;
v4->m_groundSprite = nullptr;
v4->m_middlegroundSprite = nullptr;
v4->m_speedSprite = nullptr;
v4->m_modeSprite = nullptr;
v4->m_settingsObject = nullptr;
v4->m_unkPtr = nullptr;
v4->m_modeToggles = nullptr;
v4->m_speedButtons = nullptr;
v4->m_delegate = nullptr;
v4->m_editorLayer = nullptr;
v4->m_orderInput = nullptr;
v4->m_channelInput = nullptr;
v4->m_classicButton = nullptr;
v4->m_platformerButton = nullptr;
v4->m_disableInput = 0;
if ( LevelSettingsLayer::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease(v4);
return v4;
}
else
{
((void (__fastcall *)(LevelSettingsLayer *, __int64))v4->~LevelSettingsLayer)(v4, 1);
return nullptr;
}
}