//
// cocos2d::CCPointArray::setControlPoints from 0x7b6f9a to 0x7b6fd4 (58 bytes)
//
// 2 xrefs:
// > cocos2d::CCPointArray::copyWithZone @ 0x7b771a
// > cocos2d::CCPointArray::reverse @ 0x7b77ac
//
// 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
//
void __fastcall cocos2d::CCPointArray::setControlPoints(int a1, int a2)
{
void **i; // r6
void ***v5; // r4
void *v6; // t1
void **v7; // r0
void **v8; // r3
for ( i = **(void ****)(a1 + 52); ; ++i )
{
v5 = *(void ****)(a1 + 52);
if ( i == v5[1] )
break;
v6 = *i;
operator delete(v6);
}
v7 = *v5;
if ( *v5 )
{
while ( 1 )
{
v8 = v5[1];
if ( v7 == v8 )
break;
v5[1] = v8 - 1;
}
operator delete(v7);
}
operator delete(v5);
*(_DWORD *)(a1 + 52) = a2;
}