//
// cocos2d::CCPointArray::addControlPoint from 0xab5dec to 0xab5e90 (164 bytes)
//
// 1 xrefs:
// > ??> @ 0x73dd0
//
// 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
//
void cocos2d::CCPointArray::addControlPoint(cocos2d::CCPointArray *a1, cocos2d::CCPoint a2)
{
float *v2; // x1
cocos2d::CCPointArray_vtbl *v3; // x20
cocos2d::CCPoint *v4; // x21
cocos2d::CCPoint **v5; // x0
float *v6; // [xsp+38h] [xbp+38h]
cocos2d::CCPoint *v7; // [xsp+40h] [xbp+40h] BYREF
v3 = a1[1].__vftable;
v6 = v2;
v4 = (cocos2d::CCPoint *)operator new(8u);
cocos2d::CCPoint::CCPoint(v4, *v6, v6[1]);
v7 = v4;
v5 = (cocos2d::CCPoint **)v3->~CCPointArray;
if ( v5 == (cocos2d::CCPoint **)v3->~CCPointArray_0 )
{
std::vector::_M_emplace_back_aux((__int64)v3, &v7);
}
else
{
if ( v5 )
{
*v5 = v4;
v5 = (cocos2d::CCPoint **)v3->~CCPointArray;
}
v3->~CCPointArray = (void (__fastcall *)(cocos2d::CCPointArray *__hidden))(v5 + 1);
}
}