//
// cocos2d::CCPointArray::replaceControlPoint from 0x1002be080 to 0x1002be0af (47 bytes)
//
// 0 xrefs:
//
// 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 12:28:04 +0000
//
_QWORD *__fastcall cocos2d::CCPointArray::replaceControlPoint(__int64 a1, _QWORD *a2, unsigned int a3)
{
_QWORD *v3; // rdi
_QWORD *result; // rax
v3 = *(_QWORD **)(a1 + 56);
if ( (__int64)(v3[1] - *v3) >> 3 <= (unsigned __int64)a3 )
sub_1002BF6D0(v3);
result = *(_QWORD **)(*v3 + 8LL * a3);
*result = *a2;
return result;
}