//
// MPLobbyLayer::scene from 0x10048a990 to 0x10048aab5 (293 bytes)
//
// 2 xrefs:
// > MultiplayerLayer::onBtn1 @ 0x100384a4b
// > MultiplayerLayer::onBtn2 @ 0x100384a9e
//
// 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:30:44 +0000
//
_BYTE *__fastcall MPLobbyLayer::scene(__int64 a1, __int64 a2)
{
_BYTE *v2; // rbx
char *v3; // r14
v2 = cocos2d::CCScene::create();
*(_QWORD *)(AppDelegate::get(a1, a2) + 72) = v2;
v3 = (char *)operator new(0x1F0u);
cocos2d::CCLayer::CCLayer(v3);
*(_QWORD *)v3 = off_100B4DBD0;
*((_QWORD *)v3 + 40) = off_100B4E0C0;
*((_QWORD *)v3 + 41) = &off_100B4E130;
*((_QWORD *)v3 + 42) = off_100B4E148;
*((_QWORD *)v3 + 43) = off_100B4E168;
*((_QWORD *)v3 + 44) = off_100B4E190;
*((_QWORD *)v3 + 51) = &off_100B4E1C0;
*((_QWORD *)v3 + 52) = &off_100B4E1F0;
*((_QWORD *)v3 + 53) = off_100B4E208;
*((_QWORD *)v3 + 54) = &off_100B4E228;
*((_QWORD *)v3 + 55) = off_100B4E240;
*((_DWORD *)v3 + 112) = 0;
*(_OWORD *)(v3 + 456) = 0;
*(_OWORD *)(v3 + 472) = 0;
*(_QWORD *)(v3 + 486) = 0;
if ( (unsigned __int8)cocos2d::CCLayer::init(v3) )
{
cocos2d::CCObject::autorelease((__int64)v3);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v3 + 16LL))(v3);
v3 = nullptr;
}
(*(void (__fastcall **)(_BYTE *, char *))(*(_QWORD *)v2 + 456LL))(v2, v3);
return v2;
}