//
// cocos2d::CCTMXLayerInfo::~CCTMXLayerInfo from 0x1800aed40 to 0x1800aeddc (156 bytes)
//
// 4 xrefs:
// > sub_1800AF080 @ 0x1800af0de
// > sub_1800AF080 @ 0x1800af09c
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b843c
//
// 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::CCTMXLayerInfo::~CCTMXLayerInfo(cocos2d::CCTMXLayerInfo *this)
{
cocos2d::CCObject *v2; // rcx
void *v3; // rcx
unsigned __int64 v4; // rdx
_QWORD *v5; // rcx
this->__vftable = (cocos2d::CCTMXLayerInfo_vtbl *)&cocos2d::CCTMXLayerInfo::`vftable';
v2 = *((cocos2d::CCObject **)this + 7);
if ( v2 )
cocos2d::CCObject::release(v2);
if ( *((_BYTE *)this + 114) )
{
v3 = *((void **)this + 13);
if ( v3 )
{
j_j_free_0(v3);
*((_QWORD *)this + 13) = 0;
}
}
v4 = *((_QWORD *)this + 11);
if ( v4 > 0xF )
{
v5 = *((_QWORD **)this + 8);
if ( v4 + 1 >= 0x1000 )
{
if ( (unsigned __int64)v5 - *(v5 - 1) - 8 > 0x1F )
invalid_parameter_noinfo_noreturn();
v5 = (_QWORD *)*(v5 - 1);
}
j_j_free_0(v5);
}
*((_QWORD *)this + 10) = 0;
*((_QWORD *)this + 11) = 15;
*((_BYTE *)this + 64) = 0;
cocos2d::CCObject::~CCObject(this);
}