//
// LevelAreaInnerLayer::onBack from 0xb5c6f8 to 0xb5c750 (88 bytes)
//
// 4 xrefs:
// > LevelAreaInnerLayer::keyBackClicked @ 0xb5c754
// > ??> @ 0x69610
// > LevelAreaInnerLayer::init @ 0xb5c880
// > ??> @ 0x1542978
//
// 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:09 +0000
//
_BYTE *__fastcall LevelAreaInnerLayer::onBack(_BYTE *this, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v2; // x0
LevelAreaLayer *v3; // x19
AppDelegate *v4; // x0
cocos2d::CCScene *v5; // x1
cocos2d::CCScene *v6; // x0
if ( !*(this + 424) )
{
v2 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
v3 = (LevelAreaLayer *)cocos2d::CCDirector::sharedDirector(v2);
v4 = LevelAreaLayer::scene(v3);
v6 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v4, 0.5, v5);
return (_BYTE *)cocos2d::CCDirector::replaceScene(v3, v6);
}
return this;
}