//
// GauntletSelectLayer::onBack from 0x1402ff5a0 to 0x1402ff659 (185 bytes)
//
// 3 xrefs:
// > GauntletSelectLayer::keyBackClicked @ 0x1402ff669
// > GauntletSelectLayer::init @ 0x1402fe0ee
// > ??> @ 0x14091e44c
//
// 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:30:07 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall GauntletSelectLayer::onBack(__int64 a1)
{
__int64 v2; // rax
struct cocos2d::CCScene *v3; // rax
struct cocos2d::CCScene *v4; // rbx
__int64 v5; // rcx
cocos2d::CCDirector *v6; // rax
void *v7; // [rsp+30h] [rbp+8h]
if ( !*(_BYTE *)(a1 + 473) && !*(_BYTE *)(a1 + 513) )
{
v2 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v7 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v2 = qword_14090BFD0;
}
*(_DWORD *)(v2 + 1116) = 1;
*(_WORD *)(a1 + 472) = 257;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);
v3 = (struct cocos2d::CCScene *)CreatorLayer::scene();
v4 = cocos2d::CCTransitionFade::create(0.5, v3);
v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);
cocos2d::CCDirector::replaceScene(v6, v4);
}
}