//
// GauntletSelectLayer::onBack from 0xa71b3c to 0xa71bb8 (124 bytes)
//
// 4 xrefs:
// > GauntletSelectLayer::keyBackClicked @ 0xa71bbc
// > ??> @ 0xadae8
// > GauntletSelectLayer::init @ 0xa770f8
// > ??> @ 0x1544ef8
//
// 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:24 +0000
//
_BYTE *__fastcall GauntletSelectLayer::onBack(_BYTE *this, cocos2d::CCObject *a2)
{
_BYTE *v2; // x19
__int64 v3; // x3
cocos2d::CCDirector *v4; // x0
CreatorLayer *v5; // x19
AppDelegate *v6; // x0
cocos2d::CCScene *v7; // x1
cocos2d::CCScene *v8; // x0
if ( !*(this + 473) && !*(this + 513) )
{
v2 = this;
*(_DWORD *)(GameManager::sharedState((GameManager *)this) + 1084) = 1;
v3 = *(_QWORD *)v2;
v2[473] = 1;
v2[472] = 1;
v4 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(_BYTE *, _QWORD))(v3 + 1072))(v2, 0);
v5 = (CreatorLayer *)cocos2d::CCDirector::sharedDirector(v4);
v6 = CreatorLayer::scene(v5);
v8 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v6, 0.5, v7);
return (_BYTE *)cocos2d::CCDirector::replaceScene(v5, v8);
}
return this;
}