//
// WorldSelectLayer::onBack from 0x1003c2640 to 0x1003c269d (93 bytes)
//
// 1 xrefs:
// > WorldSelectLayer::init @ 0x1003c2331
//
// 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
//
void __fastcall WorldSelectLayer::onBack(WorldSelectLayer *a1, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v2; // rbx
cocos2d::CCScene *v3; // rax
cocos2d::CCTransitionFade *v4; // rax
if ( !a1->m_enteringLevel && !a1->m_buttonsLocked )
{
*(_WORD *)&a1->m_cleanupSprites = 257;
((void (__fastcall *)(WorldSelectLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
v2 = cocos2d::CCDirector::sharedDirector();
v3 = MenuLayer::scene(0);
v4 = cocos2d::CCTransitionFade::create_1(0.5, v3);
cocos2d::CCDirector::replaceScene(v2, v4);
}
}