//
// SecretLayer2::keyBackClicked from 0x10049c040 to 0x10049c0ab (107 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b507d0
//
// 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:50 +0000
//
__int64 __fastcall SecretLayer2::keyBackClicked(__int64 a1, double a2)
{
__int64 v3; // rdi
__int64 v4; // r14
_QWORD *v5; // rax
char *v6; // rax
__int64 result; // rax
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 456) + 1160LL))(*(_QWORD *)(a1 + 456), 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
v3 = GameManager::sharedState();
GameManager::fadeInMenuMusic(v3, a2);
v4 = cocos2d::CCDirector::sharedDirector();
v5 = CreatorLayer::scene(v3, 0);
v6 = cocos2d::CCTransitionFade::create_1((__int64)v5, 0.5);
result = cocos2d::CCDirector::replaceScene(v4, v6);
*(_BYTE *)(a1 + 488) = 1;
return result;
}