//
// cocos2d::CCArray::initWithObject from 0xd470f4 to 0xd4714c (88 bytes)
//
// 2 xrefs:
// > cocos2d::CCArray::createWithObject @ 0xd47174
// > ??> @ 0x576e8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:07:35 +0000
//
__int64 __fastcall cocos2d::CCArray::initWithObject(cocos2d::CCArray *this, cocos2d::CCObject *a2)
{
unsigned __int8 v4; // w0
unsigned int v5; // w20
cocos2d::ccArrayFree((char *)this + 56);
v4 = cocos2d::CCArray::initWithCapacity(this, 1u);
v5 = v4;
if ( v4 )
cocos2d::CCArray::addObject(this, a2);
return v5;
}