//
// GauntletLayer::onBack from 0x60daba to 0x60dae8 (46 bytes)
//
// 1 xrefs:
// > GauntletLayer::keyBackClicked @ 0x60daea
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:49 +0000
//
int __fastcall GauntletLayer::onBack(GauntletLayer *this, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v2; // r0
cocos2d::CCDirector *v3; // r4
int v4; // r1
AppDelegate *v5; // r0
cocos2d::CCScene *v6; // r2
cocos2d::CCScene *v7; // r1
v2 = (cocos2d::CCDirector *)(*(int (__fastcall **)(GauntletLayer *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2);
v5 = GauntletSelectLayer::scene(nullptr, v4);
v7 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create((cocos2d::CCTransitionFade *)0x3F000000, *(float *)&v5, v6);
return cocos2d::CCDirector::replaceScene(v3, v7);
}