//
// cocos2d::CCPointArray::getControlPointAtIndex from 0xab4f54 to 0xab4fb8 (100 bytes)
//
// 13 xrefs:
// > cocos2d::CCCardinalSplineTo::update @ 0xab531c
// > cocos2d::CCCardinalSplineTo::update @ 0xab5338
// > cocos2d::CCCardinalSplineTo::update @ 0xab534c
// > cocos2d::CCCardinalSplineTo::update @ 0xab5360
// > cocos2d::CCCardinalSplineBy::reverse @ 0xab6020
// > cocos2d::CCCardinalSplineBy::reverse @ 0xab6034
// > cocos2d::CCCardinalSplineBy::reverse @ 0xab60a8
// > cocos2d::CCCardinalSplineBy::reverse @ 0xab6104
// > cocos2d::ccDrawCardinalSpline @ 0xad8ad4
// > cocos2d::ccDrawCardinalSpline @ 0xad8ae4
// > cocos2d::ccDrawCardinalSpline @ 0xad8af4
// > cocos2d::ccDrawCardinalSpline @ 0xad8b04
// > ??> @ 0xa85b8
//
// 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
//
// local variable allocation has failed, the output may be wrong!
cocos2d::CCPoint cocos2d::CCPointArray::getControlPointAtIndex(cocos2d::CCPointArray *a1, unsigned int a2)
{
cocos2d::CCPoint *v2; // x8
cocos2d::CCPointArray_vtbl *v3; // x0
unsigned __int64 v4; // x2
cocos2d::CCPoint result; // 0:s0.4,4:s1.4
*(_QWORD *)&a2 = a2;
v3 = a1[1].__vftable;
v4 = ((char *)v3->~CCPointArray - (char *)v3->copyWithZone) >> 3;
if ( v4 - 1 <= a2 )
*(_QWORD *)&a2 = (unsigned int)(v4 - 1);
if ( v4 <= *(_QWORD *)&a2 )
sub_D13C5C("vector::_M_range_check: __n (which is %zu) >= this->size() (which is %zu)", *(size_t *)&a2, v4);
cocos2d::CCPoint::CCPoint(v2, *((const cocos2d::CCPoint **)v3->copyWithZone + *(_QWORD *)&a2));
return result;
}