//
// LevelAreaLayer::onBack from 0xa2d4a0 to 0xa2d510 (112 bytes)
//
// 4 xrefs:
// > LevelAreaLayer::keyBackClicked @ 0xa2d514
// > ??> @ 0x6b430
// > LevelAreaLayer::init @ 0xa2f788
// > ??> @ 0x122b830
//
// 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 LevelAreaLayer::onBack(LevelAreaLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
cocos2d::CCDirector *v4; // x19
cocos2d::CCScene *v5; // x0
cocos2d::CCTransitionFade *v6; // x0
if ( !a1->m_enteringTower )
{
a1->setKeypadEnabled(a1, 0);
v3 = GameManager::sharedState();
GameManager::fadeInMenuMusic(v3);
a1->m_exiting = (unsigned __int8)&dword_0 + 1;
v4 = cocos2d::CCDirector::sharedDirector();
v5 = LevelSelectLayer::scene((int)&dword_14 + 2);
v6 = cocos2d::CCTransitionFade::create(0.5, v5);
cocos2d::CCDirector::replaceScene(v4, v6);
}
}