//
// cocos2d::CCArray::initWithCapacity from 0xd46cb4 to 0xd46cf0 (60 bytes)
//
// 11 xrefs:
// > cocos2d::CCArray::CCArray @ 0xd46d2c
// > cocos2d::CCArray::init @ 0xd46d34
// > cocos2d::CCArray::createWithCapacity @ 0xd46e04
// > cocos2d::CCArray::initWithObject @ 0xd4711c
// > cocos2d::CCArray::copyWithZone @ 0xd47344
// > cocos2d::CCArray::initWithArray @ 0xd473ec
// > cocos2d::CCParticleBatchNode::initWithTexture @ 0xd72600
// > cocos2d::CCParticleBatchNode::addChildHelper @ 0xd72a04
// > cocos2d::CCSpriteBatchNode::initWithTexture @ 0xd89730
// > cocos2d::CCSpriteBatchNode::initWithTexture @ 0xd89750
// > ??> @ 0xba3a0
//
// 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:34 +0000
//
__int64 __fastcall cocos2d::CCArray::initWithCapacity(cocos2d::CCArray *this, unsigned int a2)
{
cocos2d::ccArrayFree((char *)this + 56);
*((_QWORD *)this + 7) = cocos2d::ccArrayNew((cocos2d *)a2, a2);
return 1;
}