//
// GauntletSelectLayer::onBack from 0x60a14a to 0x60a19a (80 bytes)
//
// 1 xrefs:
// > GauntletSelectLayer::keyBackClicked @ 0x60a19c
//
// 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:47 +0000
//
_BYTE *__fastcall GauntletSelectLayer::onBack(_BYTE *this, cocos2d::CCObject *a2)
{
_BYTE *v2; // r4
int v3; // r5
cocos2d::CCDirector *v4; // r0
CreatorLayer *v5; // r4
AppDelegate *v6; // r0
cocos2d::CCScene *v7; // r2
cocos2d::CCScene *v8; // r1
v2 = this;
if ( !*(this + 349) )
{
v3 = (unsigned __int8)*(this + 373);
if ( !*(this + 373) )
{
*(_DWORD *)(GameManager::sharedState((GameManager *)this) + 864) = 1;
v2[349] = 1;
v2[348] = 1;
v4 = (cocos2d::CCDirector *)(*(int (__fastcall **)(_BYTE *, int))(*(_DWORD *)v2 + 536))(v2, v3);
v5 = (CreatorLayer *)cocos2d::CCDirector::sharedDirector(v4);
v6 = CreatorLayer::scene(v5);
v8 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(
(cocos2d::CCTransitionFade *)0x3F000000,
*(float *)&v6,
v7);
return (_BYTE *)cocos2d::CCDirector::replaceScene(v5, v8);
}
}
return this;
}