//
// cocos2d::CCMenu::createWithItems from 0x10027045c to 0x1002704bc (96 bytes)
//
// 1 xrefs:
// > sub_100270434 @ 0x10027044c
//
// This function is hookable on this platform (idp: arm, 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:01:46 +0000
//
__int64 __fastcall cocos2d::CCMenu::createWithItems(__int64 a1, _QWORD *a2)
{
__int64 i; // x19
_QWORD *v3; // x8
if ( a1 )
{
for ( i = sub_1002E7468(a1); ; sub_1002E74E0(i, *v3) )
{
v3 = a2++;
if ( !*v3 )
break;
}
}
else
{
i = 0;
}
return cocos2d::CCMenu::createWithArray(i);
}