//
// cocos2d::CCPointArray::~CCPointArray from 0x1800259a0 to 0x180025a72 (210 bytes)
//
// 5 xrefs:
// > sub_180025CC0 @ 0x180025d1e
// > sub_180025CC0 @ 0x180025cdc
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b93c4
// > ??> @ 0x1801b93d0
//
// 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
//
void __fastcall cocos2d::CCPointArray::~CCPointArray(cocos2d::CCPointArray *this)
{
void ***v1; // rdi
void **i; // rbx
void **v4; // rcx
v1 = *((void ****)this + 7);
*(_QWORD *)this = &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 )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
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);
}