//
// SecretLayer::onBack from 0xa5e350 to 0xa5e3c0 (112 bytes)
//
// 4 xrefs:
// > SecretLayer::keyBackClicked @ 0xa5e3c4
// > ??> @ 0xdecd0
// > SecretLayer::init @ 0xa61c44
// > ??> @ 0x1546ad8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:00:13 +0000
//
__int64 __fastcall SecretLayer::onBack(SecretLayer *this, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
GameManager *v4; // x0
cocos2d::CCDirector *v5; // x0
cocos2d::CCDirector *v6; // x19
cocos2d::CCTransitionFade *v7; // x0
cocos2d::CCScene *v8; // x1
cocos2d::CCScene *v9; // x0
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 56) + 1160LL))(*((_QWORD *)this + 56), 0);
v3 = (GameManager *)(*(__int64 (__fastcall **)(SecretLayer *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
v4 = (GameManager *)GameManager::sharedState(v3);
v5 = (cocos2d::CCDirector *)GameManager::fadeInMenuMusic(v4);
v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);
v7 = (cocos2d::CCTransitionFade *)MenuLayer::scene(nullptr);
v9 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v7, 0.5, v8);
return cocos2d::CCDirector::replaceScene(v6, v9);
}