//
// GauntletSelectLayer::onBack from 0x1401fa6a0 to 0x1401fa756 (182 bytes)
//
// 3 xrefs:
// > GauntletSelectLayer::keyBackClicked @ 0x1401fa769
// > GauntletSelectLayer::init @ 0x1401f92d8
// > ??> @ 0x1406cc9d8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void GauntletSelectLayer::onBack(GauntletSelectLayer *a1, cocos2d::CCObject *a2)
{
__int64 v3; // rax
struct cocos2d::CCScene *v4; // rax
struct cocos2d::CCTransitionFade *v5; // rbx
__int64 v6; // rcx
cocos2d::CCDirector *v7; // rax
void *v8; // [rsp+30h] [rbp+8h]
if ( !a1->m_playing && !a1->m_locked )
{
v3 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v8 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v3 = qword_1406C2ED8;
}
*(_DWORD *)(v3 + 1052) = 1;
*(_WORD *)&a1->m_exiting = 257;
a1->setKeypadEnabled(a1, 0);
v4 = CreatorLayer::scene();
v5 = cocos2d::CCTransitionFade::create(0.5, v4);
v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6);
cocos2d::CCDirector::replaceScene(v7, v5);
}
}