//
// cocos2d::CCPointArray::getControlPointAtIndex from 0x1800265b0 to 0x180026605 (85 bytes)
//
// 6 xrefs:
// > cocos2d::ccDrawCardinalSpline @ 0x180010a46
// > cocos2d::ccDrawCardinalSpline @ 0x180010a56
// > cocos2d::ccDrawCardinalSpline @ 0x180010a67
// > cocos2d::ccDrawCardinalSpline @ 0x180010a78
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b9484
//
// 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
//
_DWORD *__fastcall cocos2d::CCPointArray::getControlPointAtIndex(__int64 a1, _DWORD *a2, unsigned int a3)
{
_QWORD *v3; // r9
unsigned int v4; // eax
__int64 v6; // r8
unsigned __int64 v7; // rcx
v3 = *(_QWORD **)(a1 + 56);
v4 = 0;
if ( a3 )
v4 = a3;
v6 = v4;
v7 = (__int64)(v3[1] - *v3) >> 3;
if ( v7 - 1 < v4 )
v6 = (unsigned int)(v7 - 1);
if ( v7 <= (unsigned int)v6 )
std::vector::_Xlen();
cocos2d::cc_timeval::operator=(a2, *(_DWORD **)(*v3 + 8 * v6));
return a2;
}