//
// EditorSoundConfigInfoLayer::~EditorSoundConfigInfoLayer from 0x784650 to 0x78478c (316 bytes)
//
// 2 xrefs:
// > `non-virtual thunk to'EditorSoundConfigInfoLayer::~EditorSoundConfigInfoLayer @ 0x784794
// > EditorSoundConfigInfoLayer::~EditorSoundConfigInfoLayer @ 0x78479c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:59:31 +0000
//
// Alternative name is '_ZN26EditorSoundConfigInfoLayerD1Ev'
void __fastcall EditorSoundConfigInfoLayer::~EditorSoundConfigInfoLayer(EditorSoundConfigInfoLayer *this)
{
GameLevelManager *v2; // r0
GameLevelManager *v3; // r0
GameLevelManager *v4; // r0
cocos2d::CCArray **v5; // r0
int v6; // r3
cocos2d::CCObject *v7; // r0
*(_DWORD *)this = &off_CF9600;
*((_DWORD *)this + 66) = &off_CF992C;
*((_DWORD *)this + 67) = &off_CF9964;
*((_DWORD *)this + 68) = &off_CF9970;
*((_DWORD *)this + 69) = &off_CF9980;
*((_DWORD *)this + 70) = &off_CF9994;
*((_DWORD *)this + 79) = &off_CF99AC;
*((_DWORD *)this + 83) = &off_CF99EC;
*((_DWORD *)this + 110) = &off_CF99FC;
*((_DWORD *)this + 130) = &off_CF9A20;
*((_DWORD *)this + 131) = &off_CF9A2C;
*((_DWORD *)this + 178) = &off_CF9A3C;
*((_DWORD *)this + 179) = &off_CF9A4C;
*((_DWORD *)this + 180) = &off_CF9A5C;
*((_DWORD *)this + 181) = &off_CF9A68;
*((_DWORD *)this + 182) = &off_CF9A74;
*((_DWORD *)this + 183) = &off_CF9A80;
*((_DWORD *)this + 184) = &off_CF9A8C;
*((_DWORD *)this + 185) = &off_CF9A9C;
*((_DWORD *)this + 186) = &off_CF9AA8;
v2 = (GameLevelManager *)GameLevelManager::sharedState(this);
if ( v2 )
{
v2 = (GameLevelManager *)GameLevelManager::sharedState(v2);
if ( *((EditorSoundConfigInfoLayer **)v2 + 219) == (EditorSoundConfigInfoLayer *)((char *)this + 712) )
{
v2 = (GameLevelManager *)GameLevelManager::sharedState(v2);
*((_DWORD *)v2 + 219) = 0;
}
}
v3 = (GameLevelManager *)GameLevelManager::sharedState(v2);
if ( v3 )
{
v3 = (GameLevelManager *)GameLevelManager::sharedState(v3);
if ( *((EditorSoundConfigInfoLayer **)v3 + 220) == (EditorSoundConfigInfoLayer *)((char *)this + 716) )
{
v3 = (GameLevelManager *)GameLevelManager::sharedState(v3);
*((_DWORD *)v3 + 220) = 0;
}
}
v4 = (GameLevelManager *)GameLevelManager::sharedState(v3);
if ( v4 )
{
v4 = (GameLevelManager *)GameLevelManager::sharedState(v4);
if ( *((EditorSoundConfigInfoLayer **)v4 + 222) == (EditorSoundConfigInfoLayer *)((char *)this + 736) )
{
v4 = (GameLevelManager *)GameLevelManager::sharedState(v4);
*((_DWORD *)v4 + 222) = 0;
}
}
v5 = (cocos2d::CCArray **)MusicDownloadManager::sharedState(v4);
MusicDownloadManager::removeMusicDownloadDelegate(v5, (EditorSoundConfigInfoLayer *)((char *)this + 744));
v6 = *((_DWORD *)this + 201);
if ( v6 )
*(_DWORD *)(v6 + 520) = 0;
v7 = *((cocos2d::CCObject **)this + 187);
if ( v7 )
cocos2d::CCObject::release(v7);
SetupTriggerPopup::~SetupTriggerPopup(this);
}