//
// cocos2d::CCArray::initWithCapacity from 0x5c1dda to 0x5c1df2 (24 bytes)
//
// 10 xrefs:
// > cocos2d::CCArray::CCArray @ 0x5c1e10
// > cocos2d::CCArray::init @ 0x5c1e1e
// > cocos2d::CCArray::createWithCapacity @ 0x5c1e8a
// > cocos2d::CCArray::initWithObject @ 0x5c1fe4
// > cocos2d::CCArray::copyWithZone @ 0x5c209c
// > cocos2d::CCArray::initWithArray @ 0x5c20f6
// > cocos2d::CCParticleBatchNode::initWithTexture @ 0x5dd1f0
// > cocos2d::CCParticleBatchNode::addChildHelper @ 0x5dd396
// > cocos2d::CCSpriteBatchNode::initWithTexture @ 0x5e83e6
// > cocos2d::CCSpriteBatchNode::initWithTexture @ 0x5e83fe
//
// 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
//
int __fastcall cocos2d::CCArray::initWithCapacity(cocos2d::CCArray *this, cocos2d::_ccArray **a2)
{
unsigned int v4; // r1
cocos2d::ccArrayFree((cocos2d *)&this->data, a2);
this->data = (cocos2d::ccArray *)cocos2d::ccArrayNew((cocos2d *)a2, v4);
return 1;
}