//
// MPLobbyLayer::onBack from 0x66a540 to 0x66a56c (44 bytes)
//
// 3 xrefs:
// > MPLobbyLayer::keyBackClicked @ 0x66a56e
// > MPLobbyLayer::onClosePopup @ 0x66a5a4
// > MPLobbyLayer::uploadActionFinished @ 0x66ab96
//
// 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:45 +0000
//
int __fastcall MPLobbyLayer::onBack(MPLobbyLayer *this, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v2; // r0
MultiplayerLayer *v3; // r4
AppDelegate *v4; // r0
cocos2d::CCScene *v5; // r2
cocos2d::CCScene *v6; // r1
v2 = (cocos2d::CCDirector *)(*(int (__fastcall **)(MPLobbyLayer *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
v3 = (MultiplayerLayer *)cocos2d::CCDirector::sharedDirector(v2);
v4 = MultiplayerLayer::scene(v3);
v6 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create((cocos2d::CCTransitionFade *)0x3F000000, *(float *)&v4, v5);
return cocos2d::CCDirector::replaceScene(v3, v6);
}