//
// CreateMenuItem::create from 0x1001a8b88 to 0x1001a8c40 (184 bytes)
//
// 3 xrefs:
// > EditorUI::getCreateBtn @ 0x1001846b4
// > EditorUI::menuItemFromObjectString @ 0x100185298
// > EditorUI::getCreateMenuItemButton @ 0x100474cdc
//
// 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 11:00:04 +0000
//
_QWORD *__fastcall CreateMenuItem::create(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)
{
_QWORD *v10; // x19
v10 = operator new(0x220u);
CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v10);
*v10 = off_1008E5A40;
v10[40] = off_1008E5EB8;
v10[65] = 0;
v10[63] = 0;
v10[64] = 0;
*(_QWORD *)((char *)v10 + 532) = 0;
if ( (unsigned int)CCMenuItemSpriteExtra::init(v10, a1, a2, a3, a4, a5) )
{
cocos2d::CCObject::autorelease((__int64)v10);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v10 + 16LL))(v10);
return nullptr;
}
return v10;
}