//
// cocos2d::CCTMXTilesetInfo::~CCTMXTilesetInfo from 0x1800aef80 to 0x1800af046 (198 bytes)
//
// 4 xrefs:
// > sub_1800AF1A0 @ 0x1800af1fe
// > sub_1800AF1A0 @ 0x1800af1bc
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b8454
//
// 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::CCTMXTilesetInfo::~CCTMXTilesetInfo(cocos2d::CCTMXTilesetInfo *this)
{
unsigned __int64 v2; // rdx
_QWORD *v3; // rcx
unsigned __int64 v4; // rdx
void *v5; // rcx
this->__vftable = (cocos2d::CCTMXTilesetInfo_vtbl *)&cocos2d::CCTMXTilesetInfo::`vftable';
v2 = *((_QWORD *)this + 17);
if ( v2 > 0xF )
{
v3 = *((_QWORD **)this + 14);
if ( v2 + 1 >= 0x1000 )
{
if ( (unsigned __int64)v3 - *(v3 - 1) - 8 > 0x1F )
goto LABEL_12;
v3 = (_QWORD *)*(v3 - 1);
}
j_j_free_0(v3);
}
*((_QWORD *)this + 16) = 0;
*((_QWORD *)this + 17) = 15;
*((_BYTE *)this + 112) = 0;
v4 = *((_QWORD *)this + 10);
if ( v4 > 0xF )
{
v5 = *((void **)this + 7);
if ( v4 + 1 < 0x1000 )
{
LABEL_10:
j_j_free_0(v5);
goto LABEL_11;
}
if ( (unsigned __int64)v5 - *((_QWORD *)v5 - 1) - 8 <= 0x1F )
{
v5 = *((void **)v5 - 1);
goto LABEL_10;
}
LABEL_12:
invalid_parameter_noinfo_noreturn();
}
LABEL_11:
*((_QWORD *)this + 9) = 0;
*((_QWORD *)this + 10) = 15;
*((_BYTE *)this + 56) = 0;
cocos2d::CCObject::~CCObject(this);
}