//
// cocos2d::CCPointArray::addControlPoint from 0x180025670 to 0x1800256e1 (113 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801af304
//
// 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
//
// Hidden C++ exception states: #wind=1
float *__fastcall cocos2d::CCPointArray::addControlPoint(cocos2d::CCPointArray *this, struct cocos2d::CCPoint a2)
{
float *result; // rax
__int64 v5; // rcx
_BYTE *v6; // rdx
float *v7; // [rsp+30h] [rbp+8h] BYREF
result = (float *)operator new(8u);
v7 = result;
if ( result )
result = kmVec2Fill(result, **(float **)&a2, *(float *)(*(_QWORD *)&a2 + 4LL));
v7 = result;
v5 = *((_QWORD *)this + 7);
v6 = *(_BYTE **)(v5 + 8);
if ( v6 == *(_BYTE **)(v5 + 16) )
return (float *)sub_180015D80((const void **)v5, v6, &v7);
*(_QWORD *)v6 = result;
*(_QWORD *)(v5 + 8) += 8LL;
return result;
}