//
// cocos2d::CCTMXLayer::~CCTMXLayer from 0x1800af490 to 0x1800af535 (165 bytes)
//
// 4 xrefs:
// > sub_1800AF540 @ 0x1800af59e
// > sub_1800AF540 @ 0x1800af55c
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c2364
//
// 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:22:19 +0000
//
void __fastcall cocos2d::CCTMXLayer::~CCTMXLayer(cocos2d::CCTMXLayer *this)
{
cocos2d::CCObject *v2; // rcx
cocos2d::CCObject *v3; // rcx
cocos2d::CCObject *v4; // rcx
void **v5; // rcx
void *v6; // rcx
*(_QWORD *)this = &cocos2d::CCTMXLayer::`vftable'{for `cocos2d::CCNode'};
*((_QWORD *)this + 40) = &cocos2d::CCTMXLayer::`vftable'{for `cocos2d::CCTextureProtocol'};
v2 = *((cocos2d::CCObject **)this + 48);
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *((cocos2d::CCObject **)this + 58);
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = *((cocos2d::CCObject **)this + 50);
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = *((void ***)this + 59);
if ( v5 )
{
sub_1800A1E70(v5);
*((_QWORD *)this + 59) = 0;
}
v6 = *((void **)this + 47);
if ( v6 )
{
j_j_free_0(v6);
*((_QWORD *)this + 47) = 0;
}
sub_180005C70((__int64)this + 408);
cocos2d::CCSpriteBatchNode::~CCSpriteBatchNode(this);
}