//
// MenuGameLayer::create from 0x6c8e88 to 0x6c8f84 (252 bytes)
//
// 2 xrefs:
// > MenuLayer::init @ 0x5c2f74
// > ??> @ 0x9e688
//
// 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 *MenuGameLayer::create()
{
__int64 v0; // x19
__int64 v1; // x1
unsigned __int8 (__fastcall *v2)(__int64); // x1
v0 = operator new(0x1D0u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v0);
*(_BYTE *)(v0 + 404) = 0;
*(_QWORD *)v0 = &off_1158A30;
*(_QWORD *)(v0 + 320) = off_1158EB0;
*(_QWORD *)(v0 + 328) = &off_1158F20;
*(_QWORD *)(v0 + 336) = off_1158F38;
*(_QWORD *)(v0 + 344) = &off_1158F58;
*(_QWORD *)(v0 + 352) = off_1158F78;
*(_BYTE *)(v0 + 412) = 0;
*(_DWORD *)(v0 + 416) = 0;
*(_DWORD *)(v0 + 408) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 420));
v1 = *(_QWORD *)v0;
*(_QWORD *)(v0 + 432) = 0;
*(_QWORD *)(v0 + 440) = 0;
*(_QWORD *)(v0 + 448) = 0;
v2 = *(unsigned __int8 (__fastcall **)(__int64))(v1 + 80);
*(_DWORD *)(v0 + 456) = 0;
if ( v2(v0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
return (MenuGameLayer *)v0;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
}