//
// SecretLayer2::onBack from 0xa8a478 to 0xa8a4f0 (120 bytes)
//
// 4 xrefs:
// > SecretLayer2::keyBackClicked @ 0xa8a4f4
// > ??> @ 0x4cdc8
// > SecretLayer2::init @ 0xa907dc
// > ??> @ 0x1541900
//
// 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:37 +0000
//
__int64 __fastcall SecretLayer2::onBack(SecretLayer2 *this, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
GameManager *v4; // x0
cocos2d::CCDirector *v5; // x0
CreatorLayer *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 **)(SecretLayer2 *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
v4 = (GameManager *)GameManager::sharedState(v3);
v5 = (cocos2d::CCDirector *)GameManager::fadeInMenuMusic(v4);
v6 = (CreatorLayer *)cocos2d::CCDirector::sharedDirector(v5);
v7 = CreatorLayer::scene(v6);
v9 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v7, 0.5, v8);
cocos2d::CCDirector::replaceScene(v6, v9);
*((_BYTE *)this + 488) = 1;
return 1;
}