//
// cocos2d::CCArray::initWithArray from 0xad45a4 to 0xad45f8 (84 bytes)
//
// 1 xrefs:
// > ??> @ 0x6ce40
//
// 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::initWithArray(cocos2d::CCArray *this, cocos2d::_ccArray **a2)
{
int v4; // w1
cocos2d::_ccArray *v5; // x2
__int64 result; // x0
cocos2d::ccArrayFree((cocos2d *)&this->data, a2);
v4 = (unsigned __int8)cocos2d::CCArray::initWithCapacity(this, (cocos2d::_ccArray **)a2[7]->num);
result = 0;
if ( v4 )
{
cocos2d::CCArray::addObjectsFromArray(this, (cocos2d::CCArray *)a2, v5);
return 1;
}
return result;
}