//
// LevelInfoLayer::onBack from 0x1404264d0 to 0x1404265bb (235 bytes)
//
// 4 xrefs:
// > LevelInfoLayer::FLAlert_Clicked @ 0x140426039
// > LevelInfoLayer::keyBackClicked @ 0x1404265c9
// > LevelInfoLayer::init @ 0x14041db14
// > ??> @ 0x14092699c
//
// 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:32:11 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall LevelInfoLayer::onBack(__int64 a1)
{
__int64 v2; // rdx
__int64 v3; // rcx
__int64 v4; // r8
__int64 v5; // r9
__int64 v6; // rcx
struct cocos2d::CCScene *v7; // rax
struct cocos2d::CCScene *v8; // rbx
__int64 v9; // rcx
cocos2d::CCDirector *v10; // rax
void *v11; // [rsp+30h] [rbp+8h]
void *v12; // [rsp+30h] [rbp+8h]
if ( !*(_BYTE *)(a1 + 488) )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);
if ( *(_BYTE *)(*(_QWORD *)(a1 + 504) + 721LL) )
{
v6 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v11 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v6 = qword_14090BFD0;
}
v7 = (struct cocos2d::CCScene *)GauntletLayer::scene(*(unsigned int *)(v6 + 1116), v2, v4, v5);
v8 = cocos2d::CCTransitionFade::create(0.5, v7);
v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9);
cocos2d::CCDirector::replaceScene(v10, v8);
}
else
{
if ( !qword_14090BFD0 )
{
v12 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v12);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
GameManager::safePopScene(v3);
}
}
}