//
// sub_1003F471C from 0x1003f471c to 0x1003f4794 (120 bytes)
//
// 3 xrefs:
// > SecretLayer4::keyBackClicked @ 0x1003f5d8c
// > sub_1003F5D90 @ 0x1003f5d94
// > SecretLayer4::init @ 0x1003f3d90
//
// This function is hookable on this platform (idp: arm, 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:04:32 +0000
//
__int64 __fastcall sub_1003F471C(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x20
__int64 v4; // x0
char *v5; // x0
__int64 result; // x0
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 456) + 1160LL))(*(_QWORD *)(a1 + 456), 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
v2 = GameManager::sharedState();
GameManager::fadeInMenuMusic(v2);
v3 = cocos2d::CCDirector::sharedDirector();
v4 = LevelSelectLayer::scene(23);
v5 = cocos2d::CCTransitionFade::create_1(v4, 0.5);
result = cocos2d::CCDirector::replaceScene(v3, v5);
*(_BYTE *)(a1 + 488) = 1;
return result;
}