//
// cocos2d::CCArray::initWithArray from 0x5c20e4 to 0x5c2108 (36 bytes)
//
// 0 xrefs:
//
// 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::initWithArray(cocos2d::CCArray *this, cocos2d::_ccArray **a2)
{
int result; // r0
cocos2d::_ccArray *v5; // r2
cocos2d::ccArrayFree((cocos2d *)&this->data, a2);
result = cocos2d::CCArray::initWithCapacity(this, (cocos2d::_ccArray **)a2[13]->num);
if ( result )
{
cocos2d::CCArray::addObjectsFromArray(this, (cocos2d::CCArray *)a2, v5);
return 1;
}
return result;
}