//
// CreateMenuItem::create from 0xbcb15c to 0xbcb348 (492 bytes)
//
// 4 xrefs:
// > EditorUI::getCreateMenuItemButton @ 0x7c1218
// > EditorUI::menuItemFromObjectString @ 0xbdf3e4
// > EditorUI::getCreateBtn @ 0xbe241c
// > ??> @ 0x6b260
//
// 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 13:03:34 +0000
//
__int64 __fastcall CreateMenuItem::create(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)
{
__int64 v10; // x19
v10 = operator new(0x220u);
cocos2d::CCNodeRGBA::CCNodeRGBA((cocos2d::CCNodeRGBA *)v10);
*(_BYTE *)(v10 + 338) = 0;
*(_BYTE *)(v10 + 339) = 0;
*(_QWORD *)(v10 + 344) = 0;
*(_QWORD *)(v10 + 352) = 0;
*(_QWORD *)(v10 + 360) = 0;
*(_DWORD *)(v10 + 368) = 0;
*(_QWORD *)(v10 + 376) = 0;
*(_QWORD *)(v10 + 384) = 0;
*(_QWORD *)(v10 + 392) = 0;
*(_DWORD *)(v10 + 372) = 0;
*(_DWORD *)(v10 + 404) = 0;
*(_BYTE *)(v10 + 408) = 0;
*(float *)(v10 + 400) = 1.0;
*(_BYTE *)(v10 + 409) = 0;
*(float *)(v10 + 412) = 1.0;
*(_QWORD *)(v10 + 416) = 0;
*(_QWORD *)v10 = &off_14167B0;
*(_QWORD *)(v10 + 320) = &off_1416C28;
*(_QWORD *)(v10 + 424) = 0;
*(_QWORD *)(v10 + 432) = 0;
*(_QWORD *)(v10 + 440) = 0;
*(_QWORD *)(v10 + 448) = 0;
*(_QWORD *)(v10 + 456) = 0;
*(_DWORD *)(v10 + 464) = 1061734601;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v10 + 468));
*(_DWORD *)(v10 + 484) = 0;
*(_DWORD *)(v10 + 476) = 1050253722;
*(_DWORD *)(v10 + 480) = 1053609165;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v10 + 488));
*(_DWORD *)(v10 + 496) = 0;
*(_BYTE *)(v10 + 500) = 0;
*(_QWORD *)(v10 + 504) = 0;
*(_QWORD *)v10 = &off_14E1410;
*(_QWORD *)(v10 + 320) = &off_14E1888;
*(_QWORD *)(v10 + 512) = 0;
*(_QWORD *)(v10 + 520) = 0;
*(_DWORD *)(v10 + 532) = 0;
*(_DWORD *)(v10 + 536) = 0;
if ( (unsigned __int8)CreateMenuItem::init(v10, a1, a2, a3, a4, a5) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v10);
return v10;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 16LL))(v10);
return 0;
}
}