//
// MenuGameLayer::create from 0x7d9eb8 to 0x7d9fb4 (252 bytes)
//
// 2 xrefs:
// > MenuLayer::init @ 0x6eb524
// > ??> @ 0xd07e0
//
// This function is hookable on this platform (idp: arm, 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:54:23 +0000
//
__int64 __fastcall MenuGameLayer::create(MenuGameLayer *this)
{
__int64 v1; // x19
__int64 v2; // x1
v1 = operator new(0x1D0u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v1);
*(_BYTE *)(v1 + 404) = 0;
*(_QWORD *)v1 = &off_1439300;
*(_QWORD *)(v1 + 320) = off_1439790;
*(_QWORD *)(v1 + 328) = &off_1439800;
*(_QWORD *)(v1 + 336) = off_1439818;
*(_QWORD *)(v1 + 344) = off_1439838;
*(_QWORD *)(v1 + 352) = off_1439860;
*(_BYTE *)(v1 + 412) = 0;
*(_DWORD *)(v1 + 416) = 0;
*(_DWORD *)(v1 + 408) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v1 + 420));
v2 = *(_QWORD *)v1;
*(_QWORD *)(v1 + 432) = 0;
*(_QWORD *)(v1 + 440) = 0;
*(_QWORD *)(v1 + 448) = 0;
*(_DWORD *)(v1 + 456) = 0;
if ( (*(unsigned __int8 (__fastcall **)(__int64))(v2 + 80))(v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
return v1;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 16LL))(v1);
return 0;
}
}