//
// LevelSettingsObject::~LevelSettingsObject from 0x794920 to 0x794a38 (280 bytes)
//
// 4 xrefs:
// > LevelSettingsObject::~LevelSettingsObject @ 0x794a48
// > ??> @ 0x42730
// > ??> @ 0xf41b0
// > ??> @ 0x14367a8
//
// 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 12:53:33 +0000
//
// Alternative name is '_ZN19LevelSettingsObjectD2Ev'
void __fastcall LevelSettingsObject::~LevelSettingsObject(LevelSettingsObject *this)
{
cocos2d::CCObject *v2; // x0
_QWORD **v3; // x20
__int64 v4; // x20
void *v5; // x0
void *v6; // x0
v2 = *((cocos2d::CCObject **)this + 40);
*(_QWORD *)this = &off_14367A0;
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *((_QWORD ***)this + 81);
if ( v3 )
{
std::__tree::destroy((__int64)this + 640, *v3);
std::__tree::destroy((__int64)this + 640, v3[1]);
operator delete(v3);
}
if ( (*((_BYTE *)this + 608) & 1) != 0 )
operator delete(*((void **)this + 78));
v4 = *((_QWORD *)this + 74);
if ( v4 )
{
std::__tree,std::string>,std::__map_value_compare,std::__value_type,std::string>,std::less>,true>,std::allocator,std::string>>>::destroy(
(__int64)this + 584,
*(void **)v4);
std::__tree,std::string>,std::__map_value_compare,std::__value_type,std::string>,std::less>,true>,std::allocator,std::string>>>::destroy(
(__int64)this + 584,
*(void **)(v4 + 8));
if ( (*(_BYTE *)(v4 + 40) & 1) != 0 )
operator delete(*(void **)(v4 + 56));
operator delete((void *)v4);
}
sub_78860C(*((_QWORD **)this + 70));
v5 = *((void **)this + 68);
*((_QWORD *)this + 68) = 0;
if ( v5 )
operator delete(v5);
sub_788878(*((void ****)this + 65));
v6 = *((void **)this + 63);
*((_QWORD *)this + 63) = 0;
if ( v6 )
operator delete(v6);
if ( (*((_BYTE *)this + 480) & 1) != 0 )
operator delete(*((void **)this + 62));
if ( (*((_BYTE *)this + 392) & 1) != 0 )
operator delete(*((void **)this + 51));
cocos2d::CCNode::~CCNode(this);
}