//
// GJSmartTemplate::~GJSmartTemplate from 0xb0d9a4 to 0xb0dabc (280 bytes)
//
// 4 xrefs:
// > GJSmartTemplate::~GJSmartTemplate @ 0xb0dacc
// > ??> @ 0x70078
// > ??> @ 0x7bf28
// > ??> @ 0x14b1438
//
// This function is hookable on this platform (idp: arm, 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 13:01:27 +0000
//
// Alternative name is '_ZN15GJSmartTemplateD1Ev'
void __fastcall GJSmartTemplate::~GJSmartTemplate(GJSmartTemplate *this)
{
cocos2d::CCObject *v2; // x0
cocos2d::CCObject *v3; // x0
cocos2d::CCObject *v4; // x0
cocos2d::CCObject *v5; // x0
cocos2d::CCObject *v6; // x0
cocos2d::CCObject *v7; // x0
cocos2d::CCObject *v8; // x0
_QWORD **v9; // x20
v2 = *((cocos2d::CCObject **)this + 7);
*(_QWORD *)this = &off_14B1430;
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *((cocos2d::CCObject **)this + 8);
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = *((cocos2d::CCObject **)this + 9);
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = *((cocos2d::CCObject **)this + 10);
if ( v5 )
cocos2d::CCObject::release(v5);
v6 = *((cocos2d::CCObject **)this + 11);
if ( v6 )
cocos2d::CCObject::release(v6);
v7 = *((cocos2d::CCObject **)this + 12);
if ( v7 )
cocos2d::CCObject::release(v7);
v8 = *((cocos2d::CCObject **)this + 13);
if ( v8 )
cocos2d::CCObject::release(v8);
if ( (*((_BYTE *)this + 168) & 1) != 0 )
operator delete(*((void **)this + 23));
if ( (*((_BYTE *)this + 144) & 1) != 0 )
operator delete(*((void **)this + 20));
v9 = *((_QWORD ***)this + 15);
if ( v9 )
{
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 112,
*v9);
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 112,
v9[1]);
if ( ((_BYTE)v9[11] & 1) != 0 )
operator delete(v9[13]);
if ( ((_BYTE)v9[8] & 1) != 0 )
operator delete(v9[10]);
if ( ((_BYTE)v9[4] & 1) != 0 )
operator delete(v9[6]);
operator delete(v9);
}
cocos2d::CCObject::~CCObject(this);
}