//
// cocos2d::CCPointArray::~CCPointArray from 0x1800252b0 to 0x180025371 (193 bytes)
//
// 5 xrefs:
// > sub_1800255C0 @ 0x18002561e
// > sub_1800255C0 @ 0x1800255dc
// > ??> @ 0x1801438a8
// > ??> @ 0x1801af2b0
// > ??> @ 0x1801af2bc
//
// 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 __fastcall cocos2d::CCPointArray::~CCPointArray(cocos2d::CCPointArray *this)
{
void ***v1; // rdi
void **i; // rbx
void **v4; // rcx
v1 = *((void ****)this + 7);
this->__vftable = (cocos2d::CCPointArray_vtbl *)&cocos2d::CCPointArray::`vftable';
for ( i = *v1; i != v1[1]; ++i )
{
j_j_free_0(*i);
v1 = *((void ****)this + 7);
}
if ( v1 )
{
v4 = *v1;
if ( *v1 )
{
if ( (((char *)v1[2] - (char *)v4) & 0xFFFFFFFFFFFFFFF8uLL) >= 0x1000 )
{
if ( (unsigned __int64)((char *)v4 - (_BYTE *)*(v4 - 1) - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
v4 = (void **)*(v4 - 1);
}
j_j_free_0(v4);
*v1 = nullptr;
v1[1] = nullptr;
v1[2] = nullptr;
}
j_j_free_0(v1);
}
cocos2d::CCObject::~CCObject(this);
}