//
// SecretLayer5::onBack from 0xa8fe4c to 0xa8fec4 (120 bytes)
//
// 4 xrefs:
// > SecretLayer5::keyBackClicked @ 0xa8fec8
// > ??> @ 0xc2b68
// > SecretLayer5::init @ 0xa96034
// > ??> @ 0x122ec10
//
// 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)
{
cocos2d::CCDirector *v3; // x20
cocos2d::CCScene *v4; // x0
cocos2d::CCTransitionFade *v5; // x0
if ( !a1->m_uiLocked )
{
((void (__fastcall *)(CCTextInputNode *))a1->m_textInput->onClickTrackNode)(a1->m_textInput);
a1->setKeypadEnabled(a1, 0);
v3 = cocos2d::CCDirector::sharedDirector();
v4 = LevelAreaInnerLayer::scene((bool)&dword_0 + 1);
v5 = cocos2d::CCTransitionFade::create(0.5, v4);
cocos2d::CCDirector::replaceScene(v3, v5);
a1->m_exiting = 1;
}
}