//
// LevelInfoLayer::onBack from 0x1002c22d0 to 0x1002c2350 (128 bytes)
//
// 5 xrefs:
// > LevelInfoLayer::onDelete @ 0x1002c4952
// > LevelInfoLayer::FLAlert_Clicked @ 0x1002c4cac
// > LevelInfoLayer::keyBackClicked @ 0x1002c4e25
// > sub_1002C4E30 @ 0x1002c4e3c
// > LevelInfoLayer::init @ 0x1002bea18
//
// 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 *v2; // rbx
GameManager *v3; // rax
cocos2d::CCScene *v4; // rax
cocos2d::CCTransitionFade *v5; // rax
GameManager *v6; // rax
if ( !a1->m_isBusy )
{
((void (__fastcall *)(LevelInfoLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
if ( a1->m_level->m_gauntletLevel )
{
v2 = cocos2d::CCDirector::sharedDirector();
v3 = GameManager::sharedState();
v4 = GauntletLayer::scene((GauntletType)v3->m_currentGauntlet);
v5 = cocos2d::CCTransitionFade::create_1(0.5, v4);
cocos2d::CCDirector::replaceScene(v2, v5);
}
else
{
v6 = GameManager::sharedState();
GameManager::safePopScene(v6);
}
}
}