//
// cocos2d::CCMenu::createWithArray from 0x18005b2b0 to 0x18005b325 (117 bytes)
//
// 4 xrefs:
// > cocos2d::CCMenu::create @ 0x18005b28b
// > cocos2d::CCMenu::createWithItems @ 0x18005b395
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bcd6c
//
// 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:21:48 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCMenu *__fastcall cocos2d::CCMenu::createWithArray(struct cocos2d::CCArray *a1)
{
cocos2d::CCMenu *v2; // rax
cocos2d::CCObject *v3; // rbx
v2 = (cocos2d::CCMenu *)sub_1800E4AC0(0x1C0u);
if ( v2 )
v3 = cocos2d::CCMenu::CCMenu(v2);
else
v3 = nullptr;
if ( v3 )
{
if ( cocos2d::CCMenu::initWithArray(v3, a1) )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);
return nullptr;
}
return v3;
}