//
// cocos2d::CCArray::initWithObject from 0x5c1fd4 to 0x5c1ff8 (36 bytes)
//
// 1 xrefs:
// > cocos2d::CCArray::createWithObject @ 0x5c200c
//
// 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::initWithObject(cocos2d::CCArray *this, cocos2d::_ccArray **a2)
{
cocos2d::CCObject *v4; // r2
int v5; // r5
cocos2d::ccArrayFree((cocos2d *)&this->data, a2);
v5 = cocos2d::CCArray::initWithCapacity(this, (cocos2d::_ccArray **)((char *)&dword_0 + 1));
if ( v5 )
cocos2d::CCArray::addObject(this, (cocos2d::_ccArray *)a2, v4);
return v5;
}