//
// SecretLayer2::onBack from 0x10049e3c0 to 0x10049e42b (107 bytes)
//
// 1 xrefs:
// > SecretLayer2::init @ 0x10049d96e
//
// 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 __fastcall SecretLayer2::onBack(SecretLayer2 *a1, cocos2d::CCObject *a2)
{
GameManager *v2; // rax
cocos2d::CCDirector *v3; // r14
cocos2d::CCScene *v4; // rax
cocos2d::CCTransitionFade *v5; // rax
((void (__fastcall *)(CCTextInputNode *, _QWORD))a1->m_searchInput->onClickTrackNode)(a1->m_searchInput, 0);
((void (__fastcall *)(SecretLayer2 *, _QWORD))a1->setKeypadEnabled)(a1, 0);
v2 = GameManager::sharedState();
GameManager::fadeInMenuMusic(v2);
v3 = cocos2d::CCDirector::sharedDirector();
v4 = CreatorLayer::scene();
v5 = cocos2d::CCTransitionFade::create_1(0.5, v4);
cocos2d::CCDirector::replaceScene(v3, v5);
a1->m_exiting = 1;
}