//
// cocos2d::CCGrid3D::~CCGrid3D from 0x180022760 to 0x180022811 (177 bytes)
//
// 4 xrefs:
// > sub_180022920 @ 0x18002297e
// > sub_180022920 @ 0x18002293c
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b8ff8
//
// 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:28 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall cocos2d::CCGrid3D::~CCGrid3D(cocos2d::CCGrid3D *this)
{
void *v2; // rcx
void *v3; // rcx
void *v4; // rcx
void *v5; // rcx
cocos2d::CCObject *v6; // rcx
cocos2d::CCObject *v7; // rcx
*(_QWORD *)this = &cocos2d::CCGrid3D::`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 + 18);
if ( v4 )
{
free(v4);
*((_QWORD *)this + 18) = 0;
}
v5 = *((void **)this + 17);
if ( v5 )
{
free(v5);
*((_QWORD *)this + 17) = 0;
}
*(_QWORD *)this = &cocos2d::CCGridBase::`vftable';
v6 = *((cocos2d::CCObject **)this + 9);
if ( v6 )
cocos2d::CCObject::release(v6);
v7 = *((cocos2d::CCObject **)this + 11);
if ( v7 )
cocos2d::CCObject::release(v7);
cocos2d::CCObject::~CCObject(this);
}