//
// cocos2d::CCMenu::createWithItems from 0x5d4b24 to 0x5d4b4e (42 bytes)
//
// 1 xrefs:
// > cocos2d::CCMenu::create @ 0x5d4b66
//
// 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
//
cocos2d::CCMenu *cocos2d::CCMenu::createWithItems(cocos2d::CCMenuItem *a1, va_list a2)
{
int v2; // r2
cocos2d::CCArray *v4; // r4
cocos2d::CCArray *v5; // r0
cocos2d::CCObject *v6; // r2
cocos2d::_ccArray *v7; // r1
cocos2d::_ccArray *v8; // t1
v4 = (cocos2d::CCArray *)a1;
if ( a1 )
{
v5 = cocos2d::CCArray::create((cocos2d::CCArray *)a1, nullptr, v2);
v7 = *(cocos2d::_ccArray **)a2;
v4 = v5;
while ( v7 )
{
cocos2d::CCArray::addObject(v4, v7, v6);
v8 = *((cocos2d::_ccArray **)a2 + 1);
a2 = (char *)a2 + 4;
v7 = v8;
}
}
return cocos2d::CCMenu::createWithArray(v4);
}