//
// MenuGameLayer::create from 0x492140 to 0x4921e8 (168 bytes)
//
// 1 xrefs:
// > MenuLayer::init @ 0x3f9fd8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:49:38 +0000
//
int *__fastcall MenuGameLayer::create(MenuGameLayer *this)
{
int *v1; // r4
int v2; // r3
int v3; // r3
int *v4; // r0
v1 = (int *)operator new(0x164u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v1);
*v1 = (int)&off_C96430;
v1[66] = (int)&off_C96678;
v1[67] = (int)&off_C966B0;
v1[68] = (int)&off_C966BC;
v1[69] = (int)&off_C966CC;
v1[70] = (int)&off_C966E0;
v1[80] = 0;
*((_BYTE *)v1 + 316) = 0;
*((_BYTE *)v1 + 324) = 0;
v1[82] = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v1 + 83));
v2 = *v1;
v1[85] = 0;
v1[86] = 0;
v1[87] = 0;
v1[88] = 0;
if ( (*(int (__fastcall **)(int *))(v2 + 40))(v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
v3 = *v1;
v4 = v1;
v1 = nullptr;
(*(void (__fastcall **)(int *))(v3 + 8))(v4);
}
return v1;
}