//
// LevelInfoLayer::onBack from 0x3b173c to 0x3b178e (82 bytes)
//
// 2 xrefs:
// > LevelInfoLayer::keyBackClicked @ 0x3b1790
// > LevelInfoLayer::onDelete @ 0x3b2942
//
// 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)
{
cocos2d::CCDirector *v3; // r4
GameManager *v4; // r0
cocos2d::CCScene *v5; // r0
cocos2d::CCTransitionFade *v6; // r1
GameManager *v7; // r0
if ( !a1->m_isBusy )
{
((void (__fastcall *)(LevelInfoLayer *))a1->setKeypadEnabled)(a1);
if ( a1->m_level->m_gauntletLevel )
{
v3 = cocos2d::CCDirector::sharedDirector();
v4 = GameManager::sharedState();
v5 = GauntletLayer::scene((GauntletType)v4->m_currentGauntlet);
v6 = cocos2d::CCTransitionFade::create(0.5, v5);
cocos2d::CCDirector::replaceScene(v3, v6);
}
else
{
v7 = GameManager::sharedState();
GameManager::safePopScene(v7);
}
}
}