//
// SecretLayer4::onBack from 0x10039b490 to 0x10039b500 (112 bytes)
//
// 1 xrefs:
// > SecretLayer4::init @ 0x10039a85b
//
// 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:29:18 +0000
//
__int64 __fastcall SecretLayer4::onBack(__int64 a1, double a2)
{
__int64 v3; // rdi
__int64 v4; // r14
__int64 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(v3, 0);
v5 = LevelSelectLayer::scene(23);
v6 = cocos2d::CCTransitionFade::create_1(v5, 0.5);
result = cocos2d::CCDirector::replaceScene(v4, v6);
*(_BYTE *)(a1 + 488) = 1;
return result;
}