//
// cocos2d::CCAnimate::~CCAnimate from 0x180030fa0 to 0x180031060 (192 bytes)
//
// 4 xrefs:
// > sub_180031210 @ 0x18003126e
// > sub_180031210 @ 0x18003122c
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b030c
//
// 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::CCAnimate::~CCAnimate(cocos2d::CCAnimate *this)
{
cocos2d::CCObject *m_pSplitTimes; // rcx
cocos2d::CCObject *v3; // rcx
_QWORD *v4; // rdi
_QWORD *v5; // rcx
this->__vftable = (cocos2d::CCAnimate_vtbl *)&cocos2d::CCAnimate::`vftable';
m_pSplitTimes = (cocos2d::CCObject *)this->m_pSplitTimes;
if ( m_pSplitTimes )
cocos2d::CCObject::release(m_pSplitTimes);
v3 = *(cocos2d::CCObject **)&this->m_uExecutedLoops;
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = *(_QWORD **)&this->m_nNextFrame;
if ( v4 )
{
v5 = (_QWORD *)*v4;
if ( *v4 )
{
if ( ((v4[2] - (_QWORD)v5) & 0xFFFFFFFFFFFFFFFCuLL) >= 0x1000 )
{
if ( (unsigned __int64)v5 - *(v5 - 1) - 8 > 0x1F )
invalid_parameter_noinfo_noreturn();
v5 = (_QWORD *)*(v5 - 1);
}
j_j_free_0(v5);
*v4 = 0;
v4[1] = 0;
v4[2] = 0;
}
j_j_free_0(v4);
*(_QWORD *)&this->m_nNextFrame = 0;
}
this->__vftable = (cocos2d::CCAnimate_vtbl *)&cocos2d::CCFiniteTimeAction::`vftable';
cocos2d::CCAction::~CCAction(this);
}