//
// MultiplayerLayer::scene from 0x1003848a0 to 0x100384956 (182 bytes)
//
// 6 xrefs:
// > MPLobbyLayer::onBack @ 0x10048af39
// > MPLobbyLayer::keyBackClicked @ 0x10048af79
// > sub_10048AFA0 @ 0x10048afc4
// > MPLobbyLayer::uploadActionFinished @ 0x10048b937
// > MPLobbyLayer::onClosePopup @ 0x10048bbe1
// > sub_10048BC30 @ 0x10048bc82
//
// This function is hookable on this platform (idp: pc, 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 12:29:09 +0000
//
_BYTE *__fastcall MultiplayerLayer::scene(__int64 a1, __int64 a2)
{
_BYTE *v2; // rbx
_QWORD *v3; // r14
v2 = cocos2d::CCScene::create();
*(_QWORD *)(AppDelegate::get(a1, a2) + 72) = v2;
v3 = operator new(0x198u);
cocos2d::CCLayer::CCLayer(v3);
*v3 = off_100B2AA78;
v3[40] = off_100B2AF08;
v3[41] = &off_100B2AF78;
v3[42] = off_100B2AF90;
v3[43] = off_100B2AFB0;
v3[44] = off_100B2AFD8;
if ( (unsigned __int8)cocos2d::CCLayer::init(v3) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v3 + 16LL))(v3);
v3 = nullptr;
}
(*(void (__fastcall **)(_BYTE *, _QWORD *))(*(_QWORD *)v2 + 456LL))(v2, v3);
return v2;
}