//
// cocos2d::CCArray::copyWithZone from 0x7c91cc to 0x7c9222 (86 bytes)
//
// 0 xrefs:
//
// 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
//
cocos2d::CCArray *__fastcall cocos2d::CCArray::copyWithZone(cocos2d::CCArray *this, cocos2d::CCZone *a2)
{
cocos2d::CCArray *v3; // r6
cocos2d *v4; // r1
_DWORD *v5; // r2
cocos2d::CCObject **v6; // r5
cocos2d::CCObject **v7; // r4
cocos2d::CCObject *v8; // r0
cocos2d::CCObject *v9; // t1
cocos2d::CCObject *v10; // r7
v3 = (cocos2d::CCArray *)operator new(0x38u);
cocos2d::CCArray::CCArray(v3);
v4 = **((cocos2d ***)this + 13);
if ( !v4 )
v4 = (cocos2d *)(&dword_0 + 1);
cocos2d::CCArray::initWithCapacity(v3, v4);
v5 = *((_DWORD **)this + 13);
if ( *v5 )
{
v6 = (cocos2d::CCObject **)v5[3];
v7 = &v6[*v5] + 0x3FFFFFFF;
while ( v6 <= v7 )
{
v9 = *v6++;
v8 = v9;
if ( !v9 )
break;
v10 = (cocos2d::CCObject *)cocos2d::CCObject::copy(v8);
cocos2d::CCArray::addObject(v3, v10);
cocos2d::CCObject::release(v10);
}
}
return v3;
}