//
// cocos2d::CCPointArray::getControlPointAtIndex from 0x1002d1360 to 0x1002d13ab (75 bytes)
//
// 4 xrefs:
// > cocos2d::ccDrawCardinalSpline @ 0x1002099e0
// > cocos2d::ccDrawCardinalSpline @ 0x1002099ef
// > cocos2d::ccDrawCardinalSpline @ 0x100209a09
// > cocos2d::ccDrawCardinalSpline @ 0x100209a22
//
// 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 __fastcall cocos2d::CCPointArray::getControlPointAtIndex(cocos2d::CCPointArray *a1, unsigned int a2)
{
unsigned int v2; // edx
__int64 *v3; // rcx
__int64 v4; // rax
unsigned __int64 v5; // rsi
unsigned __int64 v6; // rcx
cocos2d::CCPoint result; // 0:xmm0_8.8
v3 = *(__int64 **)(*(_QWORD *)&a2 + 56LL);
v4 = *v3;
v5 = (v3[1] - *v3) >> 3;
v6 = (unsigned int)(v5 - 1);
if ( v5 - 1 > v2 )
v6 = v2;
if ( v5 <= v6 )
sub_1002D2A00(v5 - 1);
*(double *)&result = sub_10028CC60(a1, *(double **)(v4 + 8 * v6));
return result;
}