//
// cocos2d::CCPointArray::copyWithZone from 0x7b7694 to 0x7b7732 (158 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:12 +0000
//
cocos2d::CCPointArray *__fastcall cocos2d::CCPointArray::copyWithZone(
cocos2d::CCPointArray *this,
cocos2d::CCZone *a2,
int a3)
{
_DWORD *v4; // r0
int v5; // r4
float **v6; // r6
float *v7; // t1
float v8; // r11
float v9; // r10
cocos2d::CCPoint *v10; // r9
cocos2d::CCPoint **v11; // r3
unsigned int v12; // r2
cocos2d::CCPointArray *v13; // r6
_DWORD v15[3]; // [sp+0h] [bp-Ch] BYREF
v15[0] = this;
v15[1] = a2;
v15[2] = a3;
v4 = (_DWORD *)operator new(0xCu);
*v4 = 0;
v5 = (int)v4;
v4[1] = 0;
v4[2] = 0;
v6 = **((float ****)this + 13);
while ( v6 != *(float ***)(*((_DWORD *)this + 13) + 4) )
{
v7 = *v6++;
v8 = *v7;
v9 = v7[1];
v10 = (cocos2d::CCPoint *)operator new(8u);
cocos2d::CCPoint::CCPoint(v10, v8, v9);
v11 = *(cocos2d::CCPoint ***)(v5 + 4);
v12 = *(_DWORD *)(v5 + 8);
v15[0] = v10;
if ( (unsigned int)v11 >= v12 )
{
std::vector::__push_back_slow_path((const void **)v5, v15);
}
else
{
if ( v11 )
*v11 = v10;
*(_DWORD *)(v5 + 4) += 4;
}
}
v13 = (cocos2d::CCPointArray *)operator new(0x38u);
cocos2d::CCPointArray::CCPointArray(v13);
cocos2d::CCPointArray::initWithCapacity(v13, 0xAu);
cocos2d::CCPointArray::setControlPoints((int)v13, v5);
return v13;
}