//
// LevelInfoLayer::onBack from 0x6d59d8 to 0x6d5a58 (128 bytes)
//
// 5 xrefs:
// > LevelInfoLayer::keyBackClicked @ 0x6d5a5c
// > LevelInfoLayer::onDelete @ 0x6d9444
// > ??> @ 0x6f930
// > LevelInfoLayer::init @ 0x6dc004
// > ??> @ 0x122bac0
//
// 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 LevelInfoLayer::onBack(LevelInfoLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
cocos2d::CCDirector *v4; // x19
GameManager *v5; // x0
cocos2d::CCScene *v6; // x0
cocos2d::CCTransitionFade *v7; // x0
if ( !a1->m_isBusy )
{
a1->setKeypadEnabled(a1, 0);
if ( a1->m_level->m_gauntletLevel )
{
v4 = cocos2d::CCDirector::sharedDirector();
v5 = GameManager::sharedState();
v6 = GauntletLayer::scene((GauntletType)v5->m_currentGauntlet);
v7 = cocos2d::CCTransitionFade::create(0.5, v6);
cocos2d::CCDirector::replaceScene(v4, v7);
}
else
{
v3 = GameManager::sharedState();
GameManager::safePopScene(v3);
}
}
}