//
// SecretLayer::onBack from 0x1405779c0 to 0x140577a5f (159 bytes)
//
// 3 xrefs:
// > SecretLayer::keyBackClicked @ 0x140577a69
// > SecretLayer::init @ 0x14057371f
// > ??> @ 0x14092c7f8
//
// 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 11:34:23 +0000
//
// Hidden C++ exception states: #wind=1
double __fastcall SecretLayer::onBack(_QWORD **a1)
{
__int64 v2; // rcx
__int64 v3; // rdx
__int64 v4; // r8
__int64 v5; // r9
struct cocos2d::CCScene *v6; // rax
struct cocos2d::CCScene *v7; // rbx
__int64 v8; // rcx
cocos2d::CCDirector *v9; // rax
void *v11; // [rsp+30h] [rbp+8h]
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1[56] + 1032LL))(a1[56], 0);
((void (__fastcall *)(_QWORD **, _QWORD))(*a1)[124])(a1, 0);
v2 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v11 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v2 = qword_14090BFD0;
}
GameManager::fadeInMenuMusic(v2);
v6 = (struct cocos2d::CCScene *)MenuLayer::scene(0, v3, v4, v5);
v7 = cocos2d::CCTransitionFade::create(0.5, v6);
v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8);
return cocos2d::CCDirector::replaceScene(v9, v7);
}