//
// SecretLayer6::onBack from 0x1004739a0 to 0x1004739ee (78 bytes)
//
// 1 xrefs:
// > SecretLayer6::init @ 0x100473791
//
// This function is hookable on this platform (idp: pc, 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 12:30:34 +0000
//
__int64 __fastcall SecretLayer6::onBack(__int64 a1, double a2)
{
__int64 v2; // rdi
__int64 v3; // rbx
_DWORD *v4; // rax
char *v5; // rax
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
v2 = GameManager::sharedState();
GameManager::fadeInMenuMusic(v2, a2);
v3 = cocos2d::CCDirector::sharedDirector(v2, 0);
v4 = MenuLayer::scene(0, 0);
v5 = cocos2d::CCTransitionFade::create_1((__int64)v4, 0.5);
return cocos2d::CCDirector::replaceScene(v3, v5);
}