//
// MenuGameLayer::create from 0x3a937c to 0x3a9424 (168 bytes)
//
// 1 xrefs:
// > MenuLayer::init @ 0x30a7b8
//
// 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()
{
MenuGameLayer *v0; // r4
MenuGameLayer_vtbl *v1; // r3
MenuGameLayer_vtbl *v2; // r3
int *v3; // r0
v0 = (MenuGameLayer *)operator new(0x164u);
cocos2d::CCLayer::CCLayer(v0);
v0->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (MenuGameLayer_vtbl *)&off_A4D6E0;
v0->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A4D920;
v0->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A4D958;
v0->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A4D964;
v0->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A4D974;
v0->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A4D984;
v0->m_deltaCount = 0.0;
v0->m_videoOptionsOpen = 0;
v0->m_isDestroyingPlayer = 0;
v0->m_initCount = 0;
cocos2d::CCPoint::CCPoint(&v0->m_realBackgroundPosition);
v1 = v0->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v0->m_playerObject = nullptr;
v0->m_backgroundSprite = nullptr;
v0->m_groundLayer = nullptr;
v0->m_backgroundWrapPosition = 0.0;
if ( ((int (__fastcall *)(MenuGameLayer *))v1->init)(v0) )
{
cocos2d::CCObject::autorelease(v0);
}
else
{
v2 = v0->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v3 = (int *)v0;
v0 = nullptr;
v2->~MenuGameLayer_0((MenuGameLayer *)v3);
}
return v0;
}