//
// cocos2d::CCPointArray::getControlPointAtIndex from 0x180025eb0 to 0x180025f07 (87 bytes)
//
// 6 xrefs:
// > cocos2d::ccDrawCardinalSpline @ 0x180010886
// > cocos2d::ccDrawCardinalSpline @ 0x180010896
// > cocos2d::ccDrawCardinalSpline @ 0x1800108a7
// > cocos2d::ccDrawCardinalSpline @ 0x1800108b8
// > ??> @ 0x1801438a8
// > ??> @ 0x1801af370
//
// 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
//
_DWORD *__fastcall cocos2d::CCPointArray::getControlPointAtIndex(
cocos2d::CCPointArray *this,
_DWORD *a2,
unsigned int a3)
{
__int64 *v3; // rax
__int64 v5; // r9
__int64 v6; // rcx
unsigned int v7; // eax
unsigned __int64 v8; // rcx
__int64 v9; // r8
v3 = *((__int64 **)this + 7);
v5 = *v3;
v6 = v3[1];
v7 = 0;
v8 = (v6 - v5) >> 3;
if ( a3 )
v7 = a3;
v9 = v7;
if ( v8 - 1 < v7 )
v9 = (unsigned int)(v8 - 1);
if ( v8 <= (unsigned int)v9 )
std::vector::_Xlen();
cocos2d::cc_timeval::operator=(a2, *(_DWORD **)(v5 + 8 * v9));
return a2;
}