//
// GauntletLayer::onBack from 0xa779cc to 0xa77a14 (72 bytes)
//
// 4 xrefs:
// > GauntletLayer::keyBackClicked @ 0xa77a18
// > ??> @ 0x8f320
// > GauntletLayer::init @ 0xa79914
// > ??> @ 0x1543ce8
//
// This function is hookable on this platform (idp: arm, 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 13:00:26 +0000
//
__int64 __fastcall GauntletLayer::onBack(GauntletLayer *this, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v2; // x0
cocos2d::CCDirector *v3; // x19
AppDelegate *v4; // x0
cocos2d::CCScene *v5; // x1
cocos2d::CCScene *v6; // x0
v2 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(GauntletLayer *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2);
v4 = GauntletSelectLayer::scene(nullptr);
v6 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v4, 0.5, v5);
return cocos2d::CCDirector::replaceScene(v3, v6);
}