//
// cocos2d::CCMenu::createWithArray from 0x1800592c0 to 0x180059335 (117 bytes)
//
// 4 xrefs:
// > cocos2d::CCMenu::create @ 0x18005929b
// > cocos2d::CCMenu::createWithItems @ 0x1800593a5
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b2ad8
//
// 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
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCMenu *__fastcall cocos2d::CCMenu::createWithArray(struct cocos2d::CCArray *a1)
{
cocos2d::CCMenu *v2; // rax
cocos2d::CCMenu *v3; // rbx
v2 = (cocos2d::CCMenu *)operator new(0x1C0u);
if ( v2 )
v3 = cocos2d::CCMenu::CCMenu(v2);
else
v3 = nullptr;
if ( v3 )
{
if ( cocos2d::CCMenu::initWithArray(v3, a1) )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
((void (__fastcall *)(cocos2d::CCMenu *, __int64))v3->~CCMenu)(v3, 1);
return nullptr;
}
return v3;
}