//
// MenuGameLayer::create from 0x1004f98f0 to 0x1004f99c8 (216 bytes)
//
// 1 xrefs:
// > MenuLayer::init @ 0x10039020e
//
// 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
//
MenuGameLayer *__fastcall MenuGameLayer::create()
{
char *v0; // rbx
v0 = (char *)operator new(0x1D0u);
cocos2d::CCLayer::CCLayer((__int64)v0);
*(_QWORD *)v0 = off_1009586D8;
*((_QWORD *)v0 + 40) = off_100958B58;
*((_QWORD *)v0 + 41) = &off_100958BC8;
*((_QWORD *)v0 + 42) = off_100958BE0;
*((_QWORD *)v0 + 43) = off_100958C00;
*((_QWORD *)v0 + 44) = off_100958C20;
v0[404] = 0;
*((_DWORD *)v0 + 102) = 0;
v0[412] = 0;
*((_DWORD *)v0 + 104) = 0;
sub_10028CC30(v0 + 420);
*(_OWORD *)(v0 + 444) = 0;
*((_OWORD *)v0 + 27) = 0;
if ( (*(unsigned __int8 (__fastcall **)(char *))(*(_QWORD *)v0 + 80LL))(v0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
return (MenuGameLayer *)v0;
}