//
// SecretLayer::onBack from 0x1006d26f0 to 0x1006d2756 (102 bytes)
//
// 1 xrefs:
// > SecretLayer::init @ 0x1006d219d
//
// 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:35:39 +0000
//
__int64 __fastcall SecretLayer::onBack(_QWORD **a1, double a2)
{
__int64 v2; // rax
__int64 v3; // rbx
_DWORD *v4; // rax
char *v5; // rax
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1[56] + 1160LL))(a1[56], 0);
((void (__fastcall *)(_QWORD **, _QWORD))(*a1)[134])(a1, 0);
v2 = GameManager::sharedState();
GameManager::fadeInMenuMusic(v2, a2);
v3 = cocos2d::CCDirector::sharedDirector();
v4 = MenuLayer::scene(0, 0);
v5 = cocos2d::CCTransitionFade::create_1((__int64)v4, 0.5);
return cocos2d::CCDirector::replaceScene(v3, v5);
}