//
// cocos2d::CCMenu::createWithItems from 0x180059350 to 0x1800593aa (90 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b2ae4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
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);
}