//
// SecretRewardsLayer::onBack from 0xa613c4 to 0xa6142c (104 bytes)
//
// 4 xrefs:
// > SecretRewardsLayer::keyBackClicked @ 0xa61430
// > ??> @ 0xa1b08
// > SecretRewardsLayer::init @ 0xa62774
// > ??> @ 0x122d908
//
// 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 SecretRewardsLayer::onBack(SecretRewardsLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
cocos2d::CCDirector *v4; // x19
cocos2d::CCScene *v5; // x0
cocos2d::CCTransitionFade *v6; // x0
if ( a1->m_inMainLayer )
{
v3 = GameManager::sharedState();
GameManager::fadeInMenuMusic(v3);
a1->setKeypadEnabled(a1, 0);
v4 = cocos2d::CCDirector::sharedDirector();
v5 = CreatorLayer::scene();
v6 = cocos2d::CCTransitionFade::create(0.5, v5);
cocos2d::CCDirector::replaceScene(v4, v6);
}
else
{
SecretRewardsLayer::moveToMainLayer(a1, a2);
}
}