//
// cocos2d::CCPointArray::addControlPoint from 0x180025d70 to 0x180025de1 (113 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b9418
//
// 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:29 +0000
//
// Hidden C++ exception states: #wind=1
float *__fastcall cocos2d::CCPointArray::addControlPoint(__int64 a1, float *a2)
{
float *result; // rax
__int64 v5; // rcx
_BYTE *v6; // rdx
float *v7; // [rsp+30h] [rbp+8h] BYREF
result = (float *)sub_1800E4AC0(8u);
v7 = result;
if ( result )
result = kmVec2Fill(result, *a2, a2[1]);
v7 = result;
v5 = *(_QWORD *)(a1 + 56);
v6 = *(_BYTE **)(v5 + 8);
if ( v6 == *(_BYTE **)(v5 + 16) )
return (float *)sub_180025630((const void **)v5, v6, &v7);
*(_QWORD *)v6 = result;
*(_QWORD *)(v5 + 8) += 8LL;
return result;
}