//
// SecretLayer5::onBack from 0x1403f7f80 to 0x1403f7ff6 (118 bytes)
//
// 5 xrefs:
// > SecretLayer5::keyBackClicked @ 0x1403f8009
// > SecretLayer5::init @ 0x1403f476d
// > ??> @ 0x14069df64
// > ??> @ 0x14069df74
// > ??> @ 0x1406d82dc
//
// 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 SecretLayer5::onBack(SecretLayer5 *a1, cocos2d::CCObject *a2)
{
struct cocos2d::CCScene *v3; // rax
struct cocos2d::CCTransitionFade *v4; // rbx
__int64 v5; // rcx
cocos2d::CCDirector *v6; // rax
if ( !a1->m_uiLocked )
{
a1->m_textInput->onClickTrackNode(a1->m_textInput, 0);
a1->setKeypadEnabled(a1, 0);
v3 = LevelAreaInnerLayer::scene(1);
v4 = cocos2d::CCTransitionFade::create(0.5, v3);
v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);
cocos2d::CCDirector::replaceScene(v6, v4);
a1->m_exiting = 1;
}
}