//
// SecretLayer6::onBack from 0x6e27e4 to 0x6e281a (54 bytes)
//
// 1 xrefs:
// > SecretLayer6::keyBackClicked @ 0x6e281c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:57:22 +0000
//
int __fastcall SecretLayer6::onBack(SecretLayer6 *this, cocos2d::CCObject *a2)
{
GameManager *v2; // r0
GameManager *v3; // r0
int v4; // r1
int v5; // r2
int v6; // r3
char **v7; // r0
cocos2d::CCDirector *v8; // r4
bool v9; // r1
int v10; // r2
AppDelegate *v11; // r0
cocos2d::CCScene *v12; // r2
cocos2d::CCScene *v13; // r1
v2 = (GameManager *)(*(int (__fastcall **)(SecretLayer6 *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
v3 = (GameManager *)GameManager::sharedState(v2);
v7 = GameManager::fadeInMenuMusic(v3, v4, v5, v6);
v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v7);
v11 = MenuLayer::scene(nullptr, v9, v10);
v13 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(
(cocos2d::CCTransitionFade *)0x3F000000,
*(float *)&v11,
v12);
return cocos2d::CCDirector::replaceScene(v8, v13);
}