//
// cocos2d::CCTiledGrid3D::~CCTiledGrid3D from 0x180022330 to 0x1800223e1 (177 bytes)
//
// 4 xrefs:
// > sub_180022530 @ 0x18002258e
// > sub_180022530 @ 0x18002254c
// > ??> @ 0x1801438a8
// > ??> @ 0x1801aef2c
//
// 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::CCTiledGrid3D::~CCTiledGrid3D(cocos2d::CCTiledGrid3D *this)
{
void *v2; // rcx
void *v3; // rcx
void *v4; // rcx
void *v5; // rcx
cocos2d::CCTexture2D *m_pTexture; // rcx
cocos2d::CCGrabber *m_pGrabber; // rcx
this->__vftable = (cocos2d::CCTiledGrid3D_vtbl *)&cocos2d::CCTiledGrid3D::`vftable';
v2 = *((void **)this + 15);
if ( v2 )
{
free(v2);
*((_QWORD *)this + 15) = 0;
}
v3 = *((void **)this + 16);
if ( v3 )
{
free(v3);
*((_QWORD *)this + 16) = 0;
}
v4 = *((void **)this + 17);
if ( v4 )
{
free(v4);
*((_QWORD *)this + 17) = 0;
}
v5 = *((void **)this + 18);
if ( v5 )
{
free(v5);
*((_QWORD *)this + 18) = 0;
}
this->__vftable = (cocos2d::CCTiledGrid3D_vtbl *)&cocos2d::CCGridBase::`vftable';
m_pTexture = this->m_pTexture;
if ( m_pTexture )
cocos2d::CCObject::release(m_pTexture);
m_pGrabber = this->m_pGrabber;
if ( m_pGrabber )
cocos2d::CCObject::release(m_pGrabber);
cocos2d::CCObject::~CCObject(this);
}