//
// cocos2d::CCMenu::createWithItems from 0x1001d7ef8 to 0x1001d7f58 (96 bytes)
//
// 1 xrefs:
// > sub_1001D7ED0 @ 0x1001d7ee8
//
// 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 *__fastcall cocos2d::CCMenu::createWithItems(cocos2d::CCMenuItem *a1, va_list a2)
{
cocos2d::CCArray *i; // x19
va_list v3; // x8
if ( a1 )
{
for ( i = (cocos2d::CCArray *)sub_10024A258(a1); ; sub_10024A2D0(i, *(_QWORD *)v3) )
{
v3 = a2;
a2 += 8;
if ( !*(_QWORD *)v3 )
break;
}
}
else
{
i = nullptr;
}
return cocos2d::CCMenu::createWithArray(i);
}