//
// SecretLayer2::onBack from 0x10030a6ec to 0x10030a760 (116 bytes)
//
// 3 xrefs:
// > SecretLayer2::keyBackClicked @ 0x10030db88
// > sub_10030DB8C @ 0x10030db90
// > SecretLayer2::init @ 0x100309de0
//
// 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 *v3; // x0
cocos2d::CCDirector *v4; // x20
cocos2d::CCScene *v5; // x0
cocos2d::CCTransitionFade *v6; // x0
((void (__fastcall *)(CCTextInputNode *, _QWORD))a1->m_searchInput->onClickTrackNode)(a1->m_searchInput, 0);
((void (__fastcall *)(SecretLayer2 *, _QWORD))a1->setKeypadEnabled)(a1, 0);
v3 = GameManager::sharedState();
GameManager::fadeInMenuMusic(v3);
v4 = cocos2d::CCDirector::sharedDirector();
v5 = CreatorLayer::scene();
v6 = cocos2d::CCTransitionFade::create_1(0.5, v5);
cocos2d::CCDirector::replaceScene(v4, v6);
a1->m_exiting = 1;
}