//
// cocos2d::CCPointArray::setControlPoints from 0x180026e80 to 0x180026f54 (212 bytes)
//
// 4 xrefs:
// > cocos2d::CCPointArray::copyWithZone @ 0x18002616c
// > cocos2d::CCPointArray::reverse @ 0x180026dbc
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b9508
//
// This function is hookable on this platform (idp: pc, 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 11:21:30 +0000
//
void __fastcall cocos2d::CCPointArray::setControlPoints(__int64 a1, __int64 a2)
{
void ***v2; // rdi
void **i; // rbx
void **v6; // rcx
v2 = *(void ****)(a1 + 56);
for ( i = *v2; i != v2[1]; ++i )
{
j_j_free_0(*i);
v2 = *(void ****)(a1 + 56);
}
if ( v2 )
{
v6 = *v2;
if ( *v2 )
{
if ( (((char *)v2[2] - (char *)v6) & 0xFFFFFFFFFFFFFFF8uLL) >= 0x1000 )
{
if ( (unsigned __int64)((char *)v6 - (_BYTE *)*(v6 - 1) - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
v6 = (void **)*(v6 - 1);
}
j_j_free_0(v6);
*v2 = nullptr;
v2[1] = nullptr;
v2[2] = nullptr;
}
j_j_free_0(v2);
}
*(_QWORD *)(a1 + 56) = a2;
}