//
// cocos2d::CCArray::initWithCapacity from 0xad3e94 to 0xad3ed0 (60 bytes)
//
// 11 xrefs:
// > cocos2d::CCArray::CCArray @ 0xad3f0c
// > cocos2d::CCArray::init @ 0xad3f14
// > cocos2d::CCArray::createWithCapacity @ 0xad3fe4
// > cocos2d::CCArray::initWithObject @ 0xad42fc
// > cocos2d::CCArray::copyWithZone @ 0xad4524
// > cocos2d::CCArray::initWithArray @ 0xad45cc
// > cocos2d::CCParticleBatchNode::initWithTexture @ 0xb02068
// > cocos2d::CCParticleBatchNode::addChildHelper @ 0xb0246c
// > cocos2d::CCSpriteBatchNode::initWithTexture @ 0xb18250
// > cocos2d::CCSpriteBatchNode::initWithTexture @ 0xb18270
// > ??> @ 0x8c9e8
//
// 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
//
__int64 __fastcall cocos2d::CCArray::initWithCapacity(cocos2d::CCArray *this, cocos2d::_ccArray **a2)
{
unsigned int v4; // [xsp+28h] [xbp+28h]
v4 = (unsigned int)a2;
cocos2d::ccArrayFree((cocos2d *)&this->data, a2);
this->data = (cocos2d::ccArray *)cocos2d::ccArrayNew((cocos2d *)v4, v4);
return 1;
}