//
// cocos2d::CCArray::initWithObject from 0x7c9120 to 0x7c9144 (36 bytes)
//
// 1 xrefs:
// > cocos2d::CCArray::createWithObject @ 0x7c9158
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:28 +0000
//
int __fastcall cocos2d::CCArray::initWithObject(cocos2d::CCArray *this, cocos2d::CCObject *a2)
{
int v4; // r5
cocos2d::ccArrayFree((char *)this + 52);
v4 = cocos2d::CCArray::initWithCapacity(this, (cocos2d *)((char *)&dword_0 + 1));
if ( v4 )
cocos2d::CCArray::addObject(this, a2);
return v4;
}