//
// SecretLayer6::onBack from 0xbc3498 to 0xbc34e8 (80 bytes)
//
// 4 xrefs:
// > SecretLayer6::keyBackClicked @ 0xbc34ec
// > ??> @ 0xf9298
// > SecretLayer6::init @ 0xbc9240
// > ??> @ 0x1547920
//
// 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:03:30 +0000
//
__int64 __fastcall SecretLayer6::onBack(SecretLayer6 *this, cocos2d::CCObject *a2)
{
GameManager *v2; // x0
GameManager *v3; // x0
cocos2d::CCDirector *v4; // x0
cocos2d::CCDirector *v5; // x19
cocos2d::CCTransitionFade *v6; // x0
cocos2d::CCScene *v7; // x1
cocos2d::CCScene *v8; // x0
v2 = (GameManager *)(*(__int64 (__fastcall **)(SecretLayer6 *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
v3 = (GameManager *)GameManager::sharedState(v2);
v4 = (cocos2d::CCDirector *)GameManager::fadeInMenuMusic(v3);
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);
v6 = (cocos2d::CCTransitionFade *)MenuLayer::scene(nullptr);
v8 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v6, 0.5, v7);
return cocos2d::CCDirector::replaceScene(v5, v8);
}