//
// cocos2d::CCPointArray::setControlPoints from 0xd26a44 to 0xd26ad4 (144 bytes)
//
// 3 xrefs:
// > cocos2d::CCPointArray::copyWithZone @ 0xd27750
// > cocos2d::CCPointArray::reverse @ 0xd27874
// > ??> @ 0x1011a0
//
// 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:14 +0000
//
void __fastcall cocos2d::CCPointArray::setControlPoints(__int64 a1, __int64 a2)
{
void ***v4; // x20
void **v5; // x19
void **v6; // x0
void *v7; // t1
void ***v8; // x0
void **v9; // x2
v4 = *(void ****)(a1 + 56);
v5 = *v4;
v6 = v4[1];
if ( *v4 != v6 )
{
do
{
v7 = *v5++;
operator delete(v7);
v8 = *(void ****)(a1 + 56);
}
while ( v8[1] != v5 );
v4 = *(void ****)(a1 + 56);
v6 = *v8;
}
if ( v6 )
{
v9 = v4[1];
if ( v6 != v9 )
v4[1] = &v9[~((unsigned __int64)((char *)(v9 - 1) - (char *)v6) >> 3)];
operator delete(v6);
}
operator delete(v4);
*(_QWORD *)(a1 + 56) = a2;
}