//
// GauntletSelectLayer::onBack from 0x918008 to 0x918084 (124 bytes)
//
// 4 xrefs:
// > GauntletSelectLayer::keyBackClicked @ 0x918088
// > ??> @ 0x82a40
// > GauntletSelectLayer::init @ 0x91cb18
// > ??> @ 0x122c690
//
// 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 GauntletSelectLayer::onBack(GauntletSelectLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
GauntletSelectLayer_vtbl *v4; // x3
void (__fastcall *setKeypadEnabled)(cocos2d::CCLayer *__hidden, bool); // x3
cocos2d::CCDirector *v6; // x19
cocos2d::CCScene *v7; // x0
cocos2d::CCTransitionFade *v8; // x0
if ( !a1->m_playing && !a1->m_locked )
{
v3 = GameManager::sharedState();
v4 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v3->m_currentGauntlet = 1;
setKeypadEnabled = v4->setKeypadEnabled;
a1->m_playing = 1;
a1->m_exiting = 1;
setKeypadEnabled(a1, 0);
v6 = cocos2d::CCDirector::sharedDirector();
v7 = CreatorLayer::scene();
v8 = cocos2d::CCTransitionFade::create(0.5, v7);
cocos2d::CCDirector::replaceScene(v6, v8);
}
}