//
// sub_1003E2E3C from 0x1003e2e3c to 0x1003e2ea4 (104 bytes)
//
// 3 xrefs:
// > LevelAreaLayer::keyBackClicked @ 0x1003e3d98
// > sub_1003E3D9C @ 0x1003e3da0
// > LevelAreaLayer::init @ 0x1003e23d4
//
// 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:23 +0000
//
_BYTE *__fastcall sub_1003E2E3C(_BYTE *result)
{
_BYTE *v1; // x19
__int64 v2; // x0
__int64 v3; // x19
__int64 v4; // x0
char *v5; // x0
if ( (result[432] & 1) == 0 )
{
v1 = result;
(*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)result + 1072LL))(result, 0);
v2 = GameManager::sharedState();
GameManager::fadeInMenuMusic(v2);
v1[433] = 1;
v3 = cocos2d::CCDirector::sharedDirector();
v4 = LevelSelectLayer::scene(22);
v5 = cocos2d::CCTransitionFade::create_1(v4, 0.5);
return (_BYTE *)cocos2d::CCDirector::replaceScene(v3, v5);
}
return result;
}