//
// SecretLayer6::onBack from 0xa8fdec to 0xa8fe3c (80 bytes)
//
// 4 xrefs:
// > SecretLayer6::keyBackClicked @ 0xa8fe40
// > ??> @ 0xbf2c8
// > SecretLayer6::init @ 0xa970c8
// > ??> @ 0x122ea28
//
// 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 SecretLayer6::onBack(SecretLayer6 *a1, cocos2d::CCObject *a2)
{
GameManager *v2; // x0
cocos2d::CCDirector *v3; // x19
cocos2d::CCScene *v4; // x0
cocos2d::CCTransitionFade *v5; // x0
a1->setKeypadEnabled(a1, 0);
v2 = GameManager::sharedState();
GameManager::fadeInMenuMusic(v2);
v3 = cocos2d::CCDirector::sharedDirector();
v4 = MenuLayer::scene(0);
v5 = cocos2d::CCTransitionFade::create(0.5, v4);
cocos2d::CCDirector::replaceScene(v3, v5);
}