//
// GauntletSelectLayer::onBack from 0x1001bf088 to 0x1001bf104 (124 bytes)
//
// 3 xrefs:
// > GauntletSelectLayer::keyBackClicked @ 0x1001bffbc
// > sub_1001BFFC0 @ 0x1001bffc4
// > GauntletSelectLayer::init @ 0x1001becb4
//
// 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 GauntletSelectLayer::onBack(GauntletSelectLayer *a1, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // x19
cocos2d::CCScene *v4; // x0
cocos2d::CCTransitionFade *v5; // x1
if ( !a1->m_playing && !a1->m_locked )
{
GameManager::sharedState()->m_currentGauntlet = 1;
*(_WORD *)&a1->m_exiting = 257;
((void (__fastcall *)(GauntletSelectLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
v3 = cocos2d::CCDirector::sharedDirector();
v4 = CreatorLayer::scene();
v5 = cocos2d::CCTransitionFade::create_1(0.5, v4);
cocos2d::CCDirector::replaceScene(v3, v5);
}
}