//
// MapSelectLayer::onBack from 0x97d78c to 0x97d7f8 (108 bytes)
//
// 4 xrefs:
// > MapSelectLayer::keyBackClicked @ 0x97d7fc
// > ??> @ 0xbdf18
// > MapSelectLayer::init @ 0x98054c
// > ??> @ 0x122e940
//
// 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; // x4
cocos2d::CCDirector *v3; // x19
cocos2d::CCScene *v4; // x0
cocos2d::CCTransitionFade *v5; // x0
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;
v2->setKeypadEnabled(a1, 0);
v3 = cocos2d::CCDirector::sharedDirector();
v4 = CreatorLayer::scene();
v5 = cocos2d::CCTransitionFade::create(0.5, v4);
cocos2d::CCDirector::replaceScene(v3, v5);
}
}