//
// cocos2d::CCPointArray::addControlPoint from 0x7b7640 to 0x7b768e (78 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:12 +0000
//
int __fastcall cocos2d::CCPointArray::addControlPoint(int a1, float *a2, int a3)
{
int v4; // r5
cocos2d::CCPoint *v5; // r6
int result; // r0
cocos2d::CCPoint **v7; // r3
unsigned int v8; // r2
_DWORD v9[3]; // [sp+0h] [bp-Ch] BYREF
v9[0] = a1;
v9[1] = a2;
v9[2] = a3;
v4 = *(_DWORD *)(a1 + 52);
v5 = (cocos2d::CCPoint *)operator new(8u);
result = cocos2d::CCPoint::CCPoint(v5, *a2, a2[1]);
v7 = *(cocos2d::CCPoint ***)(v4 + 4);
v8 = *(_DWORD *)(v4 + 8);
v9[0] = v5;
if ( (unsigned int)v7 >= v8 )
return std::vector::__push_back_slow_path((const void **)v4, v9);
if ( v7 )
*v7 = v5;
*(_DWORD *)(v4 + 4) += 4;
return result;
}