//
// cocos2d::CCPointArray::removeControlPointAtIndex from 0xd26b44 to 0xd26bc8 (132 bytes)
//
// 2 xrefs:
// > cocos2d::CCCardinalSplineBy::reverse @ 0xd27dd0
// > ??> @ 0xebf48
//
// 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::removeControlPointAtIndex(cocos2d::CCPointArray *this, unsigned int a2)
{
_QWORD *v2; // x20
char *v3; // x2
void **v4; // x3
__int64 v5; // x19
void *v6; // x21
char *v7; // x19
v2 = *((_QWORD **)this + 7);
v3 = (char *)v2[1];
v4 = (void **)(*v2 + 8LL * a2);
v5 = v3 - (char *)(v4 + 1);
v6 = *v4;
if ( v5 >> 3 )
{
v4 = (void **)memmove((void *)(*v2 + 8LL * a2), v4 + 1, v3 - (char *)(v4 + 1));
v3 = (char *)v2[1];
}
v7 = (char *)v4 + v5;
if ( v7 != v3 )
v2[1] = &v3[8 * ~((unsigned __int64)(v3 - 8 - v7) >> 3)];
operator delete(v6);
}