//
// sub_1003A7408 from 0x1003a7408 to 0x1003a747c (116 bytes)
//
// 3 xrefs:
// > SecretLayer2::keyBackClicked @ 0x1003aa8a0
// > sub_1003AA8A4 @ 0x1003aa8a8
// > SecretLayer2::init @ 0x1003a6afc
//
// 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:03:49 +0000
//
__int64 __fastcall sub_1003A7408(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
__int64 v4; // x20
_QWORD *v5; // x0
char *v6; // x0
__int64 result; // x0
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 456) + 1160LL))(*(_QWORD *)(a1 + 456), 0);
v2 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
v3 = GameManager::sharedState(v2);
GameManager::fadeInMenuMusic(v3);
v4 = cocos2d::CCDirector::sharedDirector();
v5 = CreatorLayer::scene();
v6 = cocos2d::CCTransitionFade::create_1((__int64)v5, 0.5);
result = cocos2d::CCDirector::replaceScene(v4, v6);
*(_BYTE *)(a1 + 488) = 1;
return result;
}