//
// EditorSoundBrowserLayer::~EditorSoundBrowserLayer from 0xcc83e0 to 0xcc84f0 (272 bytes)
//
// 5 xrefs:
// > `non-virtual thunk to'EditorSoundBrowserLayer::~EditorSoundBrowserLayer @ 0xcc84f4
// > EditorSoundBrowserLayer::~EditorSoundBrowserLayer @ 0xcc8508
// > ??> @ 0x780a0
// > ??> @ 0x9dc18
// > ??> @ 0x14fd858
//
// 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:22 +0000
//
// Alternative name is '_ZN23EditorSoundBrowserLayerD1Ev'
void __fastcall EditorSoundBrowserLayer::~EditorSoundBrowserLayer(EditorSoundBrowserLayer *this)
{
GameLevelManager *v2; // x0
cocos2d::CCObject *v3; // x0
cocos2d::CCObject *v4; // x0
cocos2d::CCObject *v5; // x0
*(_QWORD *)this = &off_14FD850;
*((_QWORD *)this + 40) = off_14FDE70;
*((_QWORD *)this + 41) = &off_14FDEE0;
*((_QWORD *)this + 42) = off_14FDEF8;
*((_QWORD *)this + 43) = off_14FDF18;
*((_QWORD *)this + 44) = off_14FDF40;
*((_QWORD *)this + 51) = &off_14FDF70;
*((_QWORD *)this + 54) = &off_14FDFF0;
*((_QWORD *)this + 68) = off_14FE010;
*((_QWORD *)this + 83) = &off_14FE058;
*((_QWORD *)this + 84) = off_14FE070;
*((_QWORD *)this + 127) = &off_14FE090;
*((_QWORD *)this + 128) = &off_14FE0B0;
*((_QWORD *)this + 129) = &off_14FE0C8;
*((_QWORD *)this + 130) = &off_14FE120;
v2 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)&off_14FE120);
if ( v2
&& *(EditorSoundBrowserLayer **)(GameLevelManager::sharedState(v2) + 1328) == (EditorSoundBrowserLayer *)((char *)this + 1016) )
{
*(_QWORD *)(GameLevelManager::sharedState((EditorSoundBrowserLayer *)((char *)this + 1016)) + 1328) = 0;
}
v3 = *((cocos2d::CCObject **)this + 138);
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = *((cocos2d::CCObject **)this + 146);
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = *((cocos2d::CCObject **)this + 147);
if ( v5 )
cocos2d::CCObject::release(v5);
if ( (*((_BYTE *)this + 1144) & 1) != 0 )
operator delete(*((void **)this + 145));
if ( (*((_BYTE *)this + 1120) & 1) != 0 )
operator delete(*((void **)this + 142));
SetupTriggerPopup::~SetupTriggerPopup(this);
}