//
// SecretLayer4::onBack from 0xa93d54 to 0xa93dd0 (124 bytes)
//
// 4 xrefs:
// > SecretLayer4::keyBackClicked @ 0xa93dd4
// > ??> @ 0xbee28
// > SecretLayer4::init @ 0xa9737c
// > ??> @ 0x15458f0
//
// 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:42 +0000
//
__int64 __fastcall SecretLayer4::onBack(SecretLayer4 *this, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
GameManager *v4; // x0
cocos2d::CCDirector *v5; // x0
cocos2d::CCDirector *v6; // x20
AppDelegate *v7; // x0
cocos2d::CCScene *v8; // x1
cocos2d::CCScene *v9; // x0
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 57) + 1160LL))(*((_QWORD *)this + 57), 0);
v3 = (GameManager *)(*(__int64 (__fastcall **)(SecretLayer4 *, _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 = LevelSelectLayer::scene((LevelSelectLayer *)((char *)&dword_14 + 3));
v9 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v7, 0.5, v8);
cocos2d::CCDirector::replaceScene(v6, v9);
*((_BYTE *)this + 488) = 1;
return 1;
}