//
// cocos2d::CCArray::initWithObject from 0xad42d4 to 0xad432c (88 bytes)
//
// 2 xrefs:
// > cocos2d::CCArray::createWithObject @ 0xad4354
// > ??> @ 0x3c558
//
// 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::initWithObject(cocos2d::CCArray *this, cocos2d::_ccArray **a2)
{
unsigned __int8 v4; // w0
cocos2d::CCObject *v5; // x2
unsigned int v6; // w20
cocos2d::ccArrayFree((cocos2d *)&this->data, a2);
v4 = cocos2d::CCArray::initWithCapacity(this, (cocos2d::_ccArray **)((char *)&dword_0 + 1));
v6 = v4;
if ( v4 )
cocos2d::CCArray::addObject(this, (cocos2d::_ccArray *)a2, v5);
return v6;
}