//
// cocos2d::CCMenu::createWithArray from 0xd6516c to 0xd65220 (180 bytes)
//
// 3 xrefs:
// > cocos2d::CCMenu::createWithItems @ 0xd6529c
// > cocos2d::CCMenu::createWithItems @ 0xd652e4
// > ??> @ 0xecaa0
//
// 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 13:07:53 +0000
//
cocos2d::CCLayerRGBA *__fastcall cocos2d::CCMenu::createWithArray(cocos2d::CCMenu *this, cocos2d::CCArray *a2)
{
cocos2d::CCLayerRGBA *v2; // x19
v2 = (cocos2d::CCLayerRGBA *)operator new(0x1B8u);
cocos2d::CCLayerRGBA::CCLayerRGBA(v2);
*((_QWORD *)v2 + 54) = 0;
*(_QWORD *)v2 = &off_1523F40;
*((_QWORD *)v2 + 40) = off_1524450;
*((_QWORD *)v2 + 41) = &off_15244C0;
*((_QWORD *)v2 + 42) = off_15244D8;
*((_QWORD *)v2 + 43) = off_15244F8;
*((_QWORD *)v2 + 44) = off_1524520;
*((_QWORD *)v2 + 51) = &off_1524550;
if ( (unsigned __int8)cocos2d::CCMenu::initWithArray(v2, this) )
{
cocos2d::CCObject::autorelease(v2);
return v2;
}
else
{
(*(void (__fastcall **)(cocos2d::CCLayerRGBA *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
}