//
// WorldSelectLayer::create from 0x4fe824 to 0x4fe8b8 (148 bytes)
//
// 1 xrefs:
// > WorldSelectLayer::scene @ 0x4fe8ce
//
// 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
//
WorldSelectLayer *WorldSelectLayer::create(int a1)
{
WorldSelectLayer *v2; // r4
WorldSelectLayer_vtbl *v3; // r3
WorldSelectLayer *v4; // r0
v2 = (WorldSelectLayer *)operator new(0x15Cu);
cocos2d::CCLayer::CCLayer(v2);
v2->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (WorldSelectLayer_vtbl *)&off_A7F0C0;
v2->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A7F30C;
v2->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A7F344;
v2->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A7F350;
v2->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A7F360;
v2->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A7F370;
v2->BoomScrollLayerDelegate::__vftable = (BoomScrollLayerDelegate_vtbl *)&off_A7F384;
v2->m_background = nullptr;
v2->m_scrollLayer = nullptr;
v2->m_cleanupSprites = 0;
v2->m_enteringLevel = 0;
v2->m_worldNode = nullptr;
v2->m_buttonsLocked = 0;
if ( WorldSelectLayer::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
v3 = v2->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v4 = v2;
v2 = nullptr;
v3->~WorldSelectLayer_0(v4);
}
return v2;
}