//
// LevelInfoLayer::onBack from 0x100028c14 to 0x100028c98 (132 bytes)
//
// 4 xrefs:
// > LevelInfoLayer::onDelete @ 0x10002aaec
// > LevelInfoLayer::keyBackClicked @ 0x10002ae40
// > sub_10002AE44 @ 0x10002ae48
// > LevelInfoLayer::init @ 0x100025794
//
// 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 __fastcall LevelInfoLayer::onBack(LevelInfoLayer *a1, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // x19
GameManager *v4; // x0
cocos2d::CCScene *v5; // x0
cocos2d::CCTransitionFade *v6; // x1
GameManager *v7; // x0
if ( !a1->m_isBusy )
{
((void (__fastcall *)(LevelInfoLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
if ( a1->m_level->m_gauntletLevel )
{
v3 = cocos2d::CCDirector::sharedDirector();
v4 = GameManager::sharedState();
v5 = GauntletLayer::scene((GauntletType)v4->m_currentGauntlet);
v6 = cocos2d::CCTransitionFade::create_1(0.5, v5);
cocos2d::CCDirector::replaceScene(v3, v6);
}
else
{
v7 = GameManager::sharedState();
GameManager::safePopScene(v7);
}
}
}