//
// SecretLayer::onBack from 0x4c951c to 0x4c9564 (72 bytes)
//
// 1 xrefs:
// > SecretLayer::keyBackClicked @ 0x4c9566
//
// 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 SecretLayer::onBack(SecretLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
cocos2d::CCDirector *v4; // r4
cocos2d::CCScene *v5; // r0
cocos2d::CCTransitionFade *v6; // r1
a1->m_searchInput->onClickTrackNode(a1->m_searchInput, 0);
a1->setKeypadEnabled(a1, 0);
v3 = GameManager::sharedState();
GameManager::fadeInMenuMusic(v3);
v4 = cocos2d::CCDirector::sharedDirector();
v5 = MenuLayer::scene(0);
v6 = cocos2d::CCTransitionFade::create(0.5, v5);
cocos2d::CCDirector::replaceScene(v4, v6);
}