//
// cocos2d::CCMenu::createWithItems from 0x18005b340 to 0x18005b39a (90 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bcd78
//
// 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:49 +0000
//
struct cocos2d::CCMenu *__fastcall cocos2d::CCMenu::createWithItems(struct cocos2d::CCMenuItem *a1, char *a2)
{
cocos2d::CCArray *v2; // rdi
struct cocos2d::CCArray *v4; // rax
struct cocos2d::CCObject *v5; // rcx
v2 = nullptr;
if ( a1 )
{
v4 = cocos2d::CCArray::create(a1, 0);
v5 = *(struct cocos2d::CCObject **)a2;
v2 = v4;
if ( *(_QWORD *)a2 )
{
do
{
cocos2d::CCArray::addObject(v2, v5);
v5 = *((struct cocos2d::CCObject **)a2 + 1);
a2 += 8;
}
while ( v5 );
}
}
return cocos2d::CCMenu::createWithArray(v2);
}