//
// LevelAreaLayer::onBack from 0x6a3840 to 0x6a3884 (68 bytes)
//
// 1 xrefs:
// > LevelAreaLayer::keyBackClicked @ 0x6a3886
//
// 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:56:28 +0000
//
_BYTE *__fastcall LevelAreaLayer::onBack(_BYTE *this, cocos2d::CCObject *a2)
{
_BYTE *v2; // r4
GameManager *v3; // r0
GameManager *v4; // r0
int v5; // r1
int v6; // r2
int v7; // r3
char **v8; // r0
cocos2d::CCDirector *v9; // r4
int v10; // r1
AppDelegate *v11; // r0
cocos2d::CCScene *v12; // r2
cocos2d::CCScene *v13; // r1
v2 = this;
if ( !*(this + 328) )
{
v3 = (GameManager *)(*(int (__fastcall **)(_BYTE *))(*(_DWORD *)this + 536))(this);
v4 = (GameManager *)GameManager::sharedState(v3);
v8 = GameManager::fadeInMenuMusic(v4, v5, v6, v7);
v2[329] = 1;
v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v8);
v11 = LevelSelectLayer::scene((LevelSelectLayer *)((char *)&dword_14 + 2), v10);
v13 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(
(cocos2d::CCTransitionFade *)0x3F000000,
*(float *)&v11,
v12);
return (_BYTE *)cocos2d::CCDirector::replaceScene(v9, v13);
}
return this;
}