//
// MapSelectLayer::onBack from 0x63ee0e to 0x63ee50 (66 bytes)
//
// 1 xrefs:
// > MapSelectLayer::keyBackClicked @ 0x63ee52
//
// 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:55:27 +0000
//
int *__fastcall MapSelectLayer::onBack(int *this, cocos2d::CCObject *a2)
{
int v2; // r3
cocos2d::CCDirector *v3; // r0
CreatorLayer *v4; // r4
AppDelegate *v5; // r0
cocos2d::CCScene *v6; // r2
cocos2d::CCScene *v7; // r1
if ( !*((_BYTE *)this + 329) && !*((_BYTE *)this + 330) )
{
v2 = *this;
*((_BYTE *)this + 329) = 1;
*((_BYTE *)this + 328) = 1;
v3 = (cocos2d::CCDirector *)(*(int (**)(void))(v2 + 536))();
v4 = (CreatorLayer *)cocos2d::CCDirector::sharedDirector(v3);
v5 = CreatorLayer::scene(v4);
v7 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(
(cocos2d::CCTransitionFade *)0x3F000000,
*(float *)&v5,
v6);
return (int *)cocos2d::CCDirector::replaceScene(v4, v7);
}
return this;
}