//
// MPLobbyLayer::create from 0x100493ba0 to 0x100493ca1 (257 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
MPLobbyLayer *__fastcall MPLobbyLayer::create(int a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x1F0u);
cocos2d::CCLayer::CCLayer(v1);
*(_QWORD *)v1 = off_1009437F0;
*((_QWORD *)v1 + 40) = off_100943CD0;
*((_QWORD *)v1 + 41) = &off_100943D40;
*((_QWORD *)v1 + 42) = off_100943D58;
*((_QWORD *)v1 + 43) = off_100943D78;
*((_QWORD *)v1 + 44) = off_100943D98;
*((_QWORD *)v1 + 51) = &off_100943DC0;
*((_QWORD *)v1 + 52) = &off_100943DF0;
*((_QWORD *)v1 + 53) = off_100943E08;
*((_QWORD *)v1 + 54) = &off_100943E28;
*((_QWORD *)v1 + 55) = off_100943E40;
*((_DWORD *)v1 + 112) = 0;
*(_OWORD *)(v1 + 456) = 0;
*(_OWORD *)(v1 + 472) = 0;
*(_QWORD *)(v1 + 486) = 0;
if ( cocos2d::CCLayer::init((cocos2d::CCLayer *)v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return (MPLobbyLayer *)v1;
}