//
// SecretLayer3::onBack from 0x10030fd60 to 0x10030fde4 (132 bytes)
//
// 3 xrefs:
// > SecretLayer3::keyBackClicked @ 0x100311874
// > sub_100311878 @ 0x10031187c
// > SecretLayer3::init @ 0x10030edf8
//
// 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 SecretLayer3::onBack(SecretLayer3 *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
cocos2d::CCDirector *v4; // x19
cocos2d::CCScene *v5; // x0
cocos2d::CCTransitionFade *v6; // x1
if ( !a1->m_lockInput )
{
v3 = GameManager::sharedState();
if ( GameManager::getUGV(v3, "12") )
{
((void (__fastcall *)(SecretLayer3 *, _QWORD))a1->setKeypadEnabled)(a1, 0);
v4 = cocos2d::CCDirector::sharedDirector();
v5 = SecretLayer2::scene();
v6 = cocos2d::CCTransitionFade::create_1(0.5, v5);
cocos2d::CCDirector::replaceScene(v4, v6);
}
else
{
SecretLayer3::firstInteractionStep1(a1);
}
}
}