//
// EditorSFXManager::~EditorSFXManager from 0xcc0300 to 0xcc0428 (296 bytes)
//
// 2 xrefs:
// > ??> @ 0x6ad20
// > ??> @ 0x6e8f0
//
// 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 13:06:17 +0000
//
// Alternative name is '_ZN16EditorSFXManagerD2Ev'
void __fastcall EditorSFXManager::~EditorSFXManager(void **this)
{
cocos2d::CCObject *v2; // x0
cocos2d::CCObject *v3; // x0
char v4; // w0
__int64 v5; // x19
_QWORD *v6; // x0
_QWORD *v7; // x19
void *v8; // x0
_QWORD *v9; // x0
_QWORD *v10; // x19
void *v11; // x0
_QWORD *v12; // x0
_QWORD *v13; // x19
void *v14; // x0
EditorSFXManager::clearAll((EditorSFXManager *)this);
v2 = (cocos2d::CCObject *)*(this + 18);
if ( v2 )
{
cocos2d::CCObject::release(v2);
*(this + 18) = nullptr;
}
v3 = (cocos2d::CCObject *)*(this + 19);
if ( v3 )
{
cocos2d::CCObject::release(v3);
*(this + 19) = nullptr;
}
v4 = *((_BYTE *)this + 168);
qword_155F1C8 = 0;
if ( (v4 & 1) != 0 )
operator delete(*(this + 23));
v5 = (__int64)*(this + 16);
if ( v5 )
{
std::__tree,std::string>,std::__map_value_compare,std::__value_type,std::string>,std::less>,true>,std::allocator,std::string>>>::destroy(
(__int64)(this + 15),
*(void **)v5);
std::__tree,std::string>,std::__map_value_compare,std::__value_type,std::string>,std::less>,true>,std::allocator,std::string>>>::destroy(
(__int64)(this + 15),
*(void **)(v5 + 8));
if ( (*(_BYTE *)(v5 + 40) & 1) != 0 )
operator delete(*(void **)(v5 + 56));
operator delete((void *)v5);
}
v6 = *(this + 12);
if ( v6 )
{
do
{
v7 = (_QWORD *)*v6;
operator delete(v6);
v6 = v7;
}
while ( v7 );
}
v8 = *(this + 10);
*(this + 10) = nullptr;
if ( v8 )
operator delete(v8);
v9 = *(this + 7);
if ( v9 )
{
do
{
v10 = (_QWORD *)*v9;
operator delete(v9);
v9 = v10;
}
while ( v10 );
}
v11 = *(this + 5);
*(this + 5) = nullptr;
if ( v11 )
operator delete(v11);
v12 = *(this + 2);
if ( v12 )
{
do
{
v13 = (_QWORD *)*v12;
operator delete(v12);
v12 = v13;
}
while ( v13 );
}
v14 = *this;
*this = nullptr;
if ( v14 )
operator delete(v14);
}