//
// CreateMenuItem::create from 0x14019f300 to 0x14019f3db (219 bytes)
//
// 7 xrefs:
// > EditorUI::menuItemFromObjectString @ 0x1401f1311
// > EditorUI::getCreateBtn @ 0x1401f17d9
// > EditorUI::createCustomItems @ 0x1401f6486
// > EditorUI::createCustomItems @ 0x1401f6542
// > EditorUI::createCustomItems @ 0x1401f65fd
// > EditorUI::createCustomItems @ 0x1401f66b9
// > ??> @ 0x14091988c
//
// This function is hookable on this platform (idp: pc, 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 11:27:48 +0000
//
// Hidden C++ exception states: #wind=1
char *__fastcall CreateMenuItem::create(__int64 *a1, __int64 a2, __int64 a3, __int64 a4)
{
char *v7; // r14
v7 = (char *)operator new(0x238u);
CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v7);
*(_QWORD *)v7 = &CreateMenuItem::`vftable';
*((_QWORD *)v7 + 40) = &CreateMenuItem::`vftable';
*(_OWORD *)(v7 + 520) = 0;
*((_QWORD *)v7 + 67) = 0;
*((_QWORD *)v7 + 68) = 15;
v7[520] = 0;
*(_QWORD *)(v7 + 556) = 0;
if ( CCMenuItemSpriteExtra::init((__int64 *)v7, a1, 0, a3, a4) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v7);
return v7;
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v7 + 8LL))(v7, 1);
return nullptr;
}
}