//
// cocos2d::CCAnimate::~CCAnimate from 0x1800315f0 to 0x1800316bf (207 bytes)
//
// 4 xrefs:
// > sub_180031870 @ 0x1800318ce
// > sub_180031870 @ 0x18003188c
// > ??> @ 0x18014cf68
// > ??> @ 0x1801ba42c
//
// 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:33 +0000
//
void __fastcall cocos2d::CCAnimate::~CCAnimate(cocos2d::CCAnimate *this)
{
cocos2d::CCObject *v2; // rcx
cocos2d::CCObject *v3; // rcx
_QWORD *v4; // rdi
_QWORD *v5; // rcx
*(_QWORD *)this = &cocos2d::CCAnimate::`vftable';
v2 = *((cocos2d::CCObject **)this + 12);
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *((cocos2d::CCObject **)this + 15);
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = *((_QWORD **)this + 13);
if ( v4 )
{
v5 = (_QWORD *)*v4;
if ( *v4 )
{
if ( ((v4[2] - (_QWORD)v5) & 0xFFFFFFFFFFFFFFFCuLL) >= 0x1000 )
{
if ( (unsigned __int64)v5 - *(v5 - 1) - 8 > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
v5 = (_QWORD *)*(v5 - 1);
}
j_j_free_0(v5);
*v4 = 0;
v4[1] = 0;
v4[2] = 0;
}
j_j_free_0(v4);
*((_QWORD *)this + 13) = 0;
}
*(_QWORD *)this = &cocos2d::CCFiniteTimeAction::`vftable';
cocos2d::CCAction::~CCAction(this);
}