//
// cocos2d::CCTMXMapInfo::~CCTMXMapInfo from 0x1800aede0 to 0x1800aef74 (404 bytes)
//
// 4 xrefs:
// > sub_1800AF110 @ 0x1800af16e
// > sub_1800AF110 @ 0x1800af12c
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b8448
//
// 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::CCTMXMapInfo::~CCTMXMapInfo(cocos2d::CCTMXMapInfo *this)
{
cocos2d::CCObject *v2; // rcx
cocos2d::CCObject *v3; // rcx
cocos2d::CCObject *v4; // rcx
cocos2d::CCObject *v5; // rcx
cocos2d::CCObject *v6; // rcx
unsigned __int64 v7; // rdx
_QWORD *v8; // rcx
unsigned __int64 v9; // rdx
_QWORD *v10; // rcx
unsigned __int64 v11; // rdx
void *v12; // rcx
this->cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCTMXMapInfo_vtbl *)&cocos2d::CCTMXMapInfo::`vftable'{for `cocos2d::CCObject'};
this->cocos2d::CCSAXDelegator::__vftable = (cocos2d::CCSAXDelegator_vtbl *)&cocos2d::CCTMXMapInfo::`vftable'{for `cocos2d::CCSAXDelegator'};
v2 = *((cocos2d::CCObject **)this + 12);
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *((cocos2d::CCObject **)this + 11);
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = *((cocos2d::CCObject **)this + 16);
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = *((cocos2d::CCObject **)this + 29);
if ( v5 )
cocos2d::CCObject::release(v5);
v6 = *((cocos2d::CCObject **)this + 13);
if ( v6 )
cocos2d::CCObject::release(v6);
v7 = *((_QWORD *)this + 28);
if ( v7 > 0xF )
{
v8 = *((_QWORD **)this + 25);
if ( v7 + 1 >= 0x1000 )
{
if ( (unsigned __int64)v8 - *(v8 - 1) - 8 > 0x1F )
goto LABEL_27;
v8 = (_QWORD *)*(v8 - 1);
}
j_j_free_0(v8);
}
*((_QWORD *)this + 27) = 0;
*((_QWORD *)this + 28) = 15;
*((_BYTE *)this + 200) = 0;
v9 = *((_QWORD *)this + 24);
if ( v9 > 0xF )
{
v10 = *((_QWORD **)this + 21);
if ( v9 + 1 >= 0x1000 )
{
if ( (unsigned __int64)v10 - *(v10 - 1) - 8 > 0x1F )
goto LABEL_27;
v10 = (_QWORD *)*(v10 - 1);
}
j_j_free_0(v10);
}
*((_QWORD *)this + 23) = 0;
*((_QWORD *)this + 24) = 15;
*((_BYTE *)this + 168) = 0;
v11 = *((_QWORD *)this + 20);
if ( v11 > 0xF )
{
v12 = *((void **)this + 17);
if ( v11 + 1 < 0x1000 )
{
LABEL_25:
j_j_free_0(v12);
goto LABEL_26;
}
if ( (unsigned __int64)v12 - *((_QWORD *)v12 - 1) - 8 <= 0x1F )
{
v12 = *((void **)v12 - 1);
goto LABEL_25;
}
LABEL_27:
invalid_parameter_noinfo_noreturn();
}
LABEL_26:
*((_QWORD *)this + 19) = 0;
*((_QWORD *)this + 20) = 15;
*((_BYTE *)this + 136) = 0;
cocos2d::CCObject::~CCObject(this);
}