//
// SecretLayer3::onBack from 0x4ee0cc to 0x4ee11c (80 bytes)
//
// 1 xrefs:
// > SecretLayer3::keyBackClicked @ 0x4ee122
//
// 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 SecretLayer3::onBack(SecretLayer3 *a1, cocos2d::CCObject *a2)
{
_BOOL4 m_lockInput; // r5
GameManager *v4; // r0
cocos2d::CCDirector *v5; // r4
cocos2d::CCScene *v6; // r0
cocos2d::CCTransitionFade *v7; // r1
m_lockInput = a1->m_lockInput;
if ( !a1->m_lockInput )
{
v4 = GameManager::sharedState();
if ( GameManager::getUGV(v4, "12") )
{
a1->setKeypadEnabled(a1, m_lockInput);
v5 = cocos2d::CCDirector::sharedDirector();
v6 = SecretLayer2::scene();
v7 = cocos2d::CCTransitionFade::create(0.5, v6);
cocos2d::CCDirector::replaceScene(v5, v7);
}
else
{
SecretLayer3::firstInteractionStep1(a1);
}
}
}