//
// SecretLayer5::onBack from 0x59c3a0 to 0x59c3ea (74 bytes)
//
// 1 xrefs:
// > SecretLayer5::keyBackClicked @ 0x59c3ec
//
// 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)
{
_BOOL4 m_uiLocked; // r5
cocos2d::CCDirector *v4; // r5
cocos2d::CCScene *v5; // r0
cocos2d::CCTransitionFade *v6; // r0
m_uiLocked = a1->m_uiLocked;
if ( !a1->m_uiLocked )
{
a1->m_textInput->onClickTrackNode(a1->m_textInput, m_uiLocked);
a1->setKeypadEnabled(a1, m_uiLocked);
v4 = cocos2d::CCDirector::sharedDirector();
v5 = LevelAreaInnerLayer::scene((bool)&dword_0 + 1);
v6 = cocos2d::CCTransitionFade::create(0.5, v5);
cocos2d::CCDirector::replaceScene(v4, v6);
a1->m_exiting = 1;
}
}