//
// GauntletLayer::onBack from 0x1402fd230 to 0x1402fd272 (66 bytes)
//
// 2 xrefs:
// > GauntletLayer::init @ 0x1402fb253
// > ??> @ 0x14091e3a4
//
// 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:06 +0000
//
bool __fastcall GauntletLayer::onBack(__int64 a1)
{
struct cocos2d::CCScene *v1; // rax
struct cocos2d::CCScene *v2; // rbx
__int64 v3; // rcx
cocos2d::CCDirector *v4; // rax
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);
v1 = (struct cocos2d::CCScene *)GauntletSelectLayer::scene();
v2 = cocos2d::CCTransitionFade::create(0.5, v1);
v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v3);
return cocos2d::CCDirector::replaceScene(v4, v2);
}