//
// cocos2d::CCPointArray::setControlPoints from 0x180026770 to 0x180026833 (195 bytes)
//
// 4 xrefs:
// > cocos2d::CCPointArray::copyWithZone @ 0x180025a6c
// > cocos2d::CCPointArray::reverse @ 0x1800266ad
// > ??> @ 0x1801438a8
// > ??> @ 0x1801af3f4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
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 )
invalid_parameter_noinfo_noreturn();
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;
}