//
// LevelAreaLayer::onBack from 0x100264cc0 to 0x100264d25 (101 bytes)
//
// 1 xrefs:
// > LevelAreaLayer::init @ 0x100263fd6
//
// 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:27:33 +0000
//
__int64 __fastcall LevelAreaLayer::onBack(_BYTE *a1)
{
__int64 v2; // rdx
double v3; // xmm0_8
__int64 v4; // rax
__int64 v5; // rdi
__int64 v6; // rbx
__int64 v7; // rax
char *v8; // rax
__int64 result; // rax
if ( !a1[432] )
{
(*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
*(_QWORD *)&v3 = GameManager::sharedState(a1, 0, v2).u64[0];
v5 = v4;
GameManager::fadeInMenuMusic(v4, v3);
a1[433] = 1;
v6 = cocos2d::CCDirector::sharedDirector(v5, 0);
v7 = LevelSelectLayer::scene(22);
v8 = cocos2d::CCTransitionFade::create_1(v7, 0.5);
return cocos2d::CCDirector::replaceScene(v6, v8);
}
return result;
}