//
// SecretLayer::onBack from 0x1403e1e80 to 0x1403e1f1c (156 bytes)
//
// 3 xrefs:
// > SecretLayer::keyBackClicked @ 0x1403e1f29
// > SecretLayer::init @ 0x1403ddc2e
// > ??> @ 0x1406d7eec
//
// 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 SecretLayer::onBack(SecretLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // rcx
struct cocos2d::CCScene *v4; // rax
struct cocos2d::CCTransitionFade *v5; // rbx
__int64 v6; // rcx
cocos2d::CCDirector *v7; // rax
void *v8; // [rsp+30h] [rbp+8h]
a1->m_searchInput->onClickTrackNode(a1->m_searchInput, 0);
a1->setKeypadEnabled(a1, 0);
v3 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v8 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v3 = (GameManager *)qword_1406C2ED8;
}
GameManager::fadeInMenuMusic(v3);
v4 = MenuLayer::scene(0);
v5 = cocos2d::CCTransitionFade::create(0.5, v4);
v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6);
cocos2d::CCDirector::replaceScene(v7, v5);
}