//
// LevelAreaLayer::onBack from 0x1403df5f0 to 0x1403df697 (167 bytes)
//
// 3 xrefs:
// > LevelAreaLayer::keyBackClicked @ 0x1403df6f9
// > LevelAreaLayer::init @ 0x1403dd7ff
// > ??> @ 0x140924da0
//
// 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 11:31:40 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall LevelAreaLayer::onBack(_BYTE *a1)
{
__int64 v2; // rcx
__int64 v3; // rdx
__int64 v4; // r8
struct cocos2d::CCScene *v5; // rax
struct cocos2d::CCScene *v6; // rbx
__int64 v7; // rcx
cocos2d::CCDirector *v8; // rax
void *v9; // [rsp+30h] [rbp+8h]
if ( !a1[432] )
{
(*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);
v2 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v9 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v2 = qword_14090BFD0;
}
GameManager::fadeInMenuMusic(v2);
a1[433] = 1;
v5 = (struct cocos2d::CCScene *)LevelSelectLayer::scene(22, v3, v4);
v6 = cocos2d::CCTransitionFade::create(0.5, v5);
v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);
cocos2d::CCDirector::replaceScene(v8, v6);
}
}