//
// SecretLayer::onBack from 0x5fc94c to 0x5fc994 (72 bytes)
//
// 1 xrefs:
// > SecretLayer::keyBackClicked @ 0x5fc996
//
// 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:54:36 +0000
//
int __fastcall SecretLayer::onBack(SecretLayer *this, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
GameManager *v4; // r0
int v5; // r1
int v6; // r2
int v7; // r3
char **v8; // r0
cocos2d::CCDirector *v9; // r4
bool v10; // r1
int v11; // r2
AppDelegate *v12; // r0
cocos2d::CCScene *v13; // r2
cocos2d::CCScene *v14; // r1
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 86) + 580))(*((_DWORD *)this + 86), 0);
v3 = (GameManager *)(*(int (__fastcall **)(SecretLayer *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
v4 = (GameManager *)GameManager::sharedState(v3);
v8 = GameManager::fadeInMenuMusic(v4, v5, v6, v7);
v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v8);
v12 = MenuLayer::scene(nullptr, v10, v11);
v14 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(
(cocos2d::CCTransitionFade *)0x3F000000,
*(float *)&v12,
v13);
return cocos2d::CCDirector::replaceScene(v9, v14);
}