//
// MapSelectLayer::onBack from 0x50dcb2 to 0x50dcf4 (66 bytes)
//
// 1 xrefs:
// > MapSelectLayer::keyBackClicked @ 0x50dcf6
//
// 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 MapSelectLayer::onBack(MapSelectLayer *a1, cocos2d::CCObject *a2)
{
MapSelectLayer_vtbl *v2; // r3
cocos2d::CCDirector *v3; // r4
cocos2d::CCScene *v4; // r0
cocos2d::CCTransitionFade *v5; // r1
if ( !a1->m_backPressed && !a1->m_blockExit )
{
v2 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_backPressed = 1;
a1->m_unloadTexturesOnExit = 1;
((void (*)(void))v2->setKeypadEnabled)();
v3 = cocos2d::CCDirector::sharedDirector();
v4 = CreatorLayer::scene();
v5 = cocos2d::CCTransitionFade::create(0.5, v4);
cocos2d::CCDirector::replaceScene(v3, v5);
}
}