//
// LevelAreaLayer::onBack from 0xb59fd8 to 0xb5a048 (112 bytes)
//
// 4 xrefs:
// > LevelAreaLayer::keyBackClicked @ 0xb5a04c
// > ??> @ 0x91060
// > LevelAreaLayer::init @ 0xb5baa8
// > ??> @ 0x1543e20
//
// 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:02:08 +0000
//
_BYTE *__fastcall LevelAreaLayer::onBack(_BYTE *this, cocos2d::CCObject *a2)
{
_BYTE *v2; // x19
GameManager *v3; // x0
GameManager *v4; // x0
cocos2d::CCDirector *v5; // x19
AppDelegate *v6; // x0
cocos2d::CCScene *v7; // x1
cocos2d::CCScene *v8; // x0
if ( !*(this + 432) )
{
v2 = this;
v3 = (GameManager *)(*(__int64 (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
v4 = (GameManager *)GameManager::sharedState(v3);
GameManager::fadeInMenuMusic(v4);
v2[433] = (unsigned __int8)&dword_0 + 1;
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)((char *)&dword_0 + 1));
v6 = LevelSelectLayer::scene((LevelSelectLayer *)((char *)&dword_14 + 2));
v8 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v6, 0.5, v7);
return (_BYTE *)cocos2d::CCDirector::replaceScene(v5, v8);
}
return this;
}