//
// DrawGridLayer::~DrawGridLayer from 0x45f860 to 0x45f958 (248 bytes)
//
// 2 xrefs:
// > `non-virtual thunk to'DrawGridLayer::~DrawGridLayer @ 0x45f960
// > DrawGridLayer::~DrawGridLayer @ 0x45f968
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:52 +0000
//
// Alternative name is '_ZN13DrawGridLayerD1Ev'
void __fastcall DrawGridLayer::~DrawGridLayer(DrawGridLayer *this)
{
cocos2d::CCObject *v2; // r0
cocos2d::CCObject *v3; // r0
cocos2d::CCObject *v4; // r0
cocos2d::CCObject *v5; // r0
void *v6; // r0
void *v7; // r0
void *v8; // r0
_DWORD *i; // r0
_DWORD *v10; // r5
_DWORD *v11; // r3
_DWORD *j; // r3
_DWORD *v13; // r5
void *v14; // r0
*(_DWORD *)this = &off_C94BB0;
*((_DWORD *)this + 66) = &off_C94DF8;
*((_DWORD *)this + 67) = &off_C94E30;
*((_DWORD *)this + 68) = &off_C94E3C;
*((_DWORD *)this + 69) = &off_C94E4C;
*((_DWORD *)this + 70) = &off_C94E60;
v2 = *((cocos2d::CCObject **)this + 98);
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *((cocos2d::CCObject **)this + 99);
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = *((cocos2d::CCObject **)this + 100);
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = *((cocos2d::CCObject **)this + 101);
if ( v5 )
cocos2d::CCObject::release(v5);
v6 = *((void **)this + 79);
if ( v6 )
{
operator delete[](v6);
*((_DWORD *)this + 79) = 0;
}
v7 = *((void **)this + 80);
if ( v7 )
{
operator delete[](v7);
*((_DWORD *)this + 80) = 0;
}
v8 = *((void **)this + 81);
if ( v8 )
{
operator delete[](v8);
*((_DWORD *)this + 81) = 0;
}
if ( *((_DWORD *)this + 85) )
{
for ( i = *((_DWORD **)this + 84); i; i = v10 )
{
v10 = (_DWORD *)*i;
operator delete(i);
}
v11 = *((_DWORD **)this + 83);
*((_DWORD *)this + 84) = 0;
while ( i != v11 )
{
*(_DWORD *)(*((_DWORD *)this + 82) + 4 * (_DWORD)i) = 0;
i = (_DWORD *)((char *)i + 1);
}
*((_DWORD *)this + 85) = 0;
}
std::string::~string((int)this + 376);
for ( j = *((_DWORD **)this + 84); j; j = v13 )
{
v13 = (_DWORD *)*j;
operator delete(j);
}
v14 = *((void **)this + 82);
*((_DWORD *)this + 82) = 0;
if ( v14 )
operator delete(v14);
cocos2d::CCLayer::~CCLayer(this);
}