//
// EditorSoundConfigInfoLayer::onClose from 0x784b1c to 0x784bd0 (180 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall EditorSoundConfigInfoLayer::onClose(EditorSoundConfigInfoLayer *this, cocos2d::CCObject *a2)
{
GameLevelManager *v4; // r0
GameLevelManager *v5; // r0
GameLevelManager *v6; // r0
cocos2d::CCArray **v7; // r0
int v8; // r1
int v9; // r2
int v10; // r3
cocos2d::CCNode **v11; // r0
FLAlertLayer *v12; // r0
v4 = (GameLevelManager *)GameLevelManager::sharedState(this);
if ( v4 )
{
v5 = (GameLevelManager *)GameLevelManager::sharedState(v4);
if ( *((EditorSoundConfigInfoLayer **)v5 + 219) == (EditorSoundConfigInfoLayer *)((char *)this + 712) )
{
v5 = (GameLevelManager *)GameLevelManager::sharedState(v5);
*((_DWORD *)v5 + 219) = 0;
}
v6 = (GameLevelManager *)GameLevelManager::sharedState(v5);
if ( *((EditorSoundConfigInfoLayer **)v6 + 220) == (EditorSoundConfigInfoLayer *)((char *)this + 716) )
{
v6 = (GameLevelManager *)GameLevelManager::sharedState(v6);
*((_DWORD *)v6 + 220) = 0;
}
v4 = (GameLevelManager *)GameLevelManager::sharedState(v6);
if ( *((EditorSoundConfigInfoLayer **)v4 + 222) == (EditorSoundConfigInfoLayer *)((char *)this + 736) )
{
v4 = (GameLevelManager *)GameLevelManager::sharedState(v4);
*((_DWORD *)v4 + 222) = 0;
}
}
v7 = (cocos2d::CCArray **)MusicDownloadManager::sharedState(v4);
MusicDownloadManager::removeMusicDownloadDelegate(v7, (EditorSoundConfigInfoLayer *)((char *)this + 744));
v10 = *((_DWORD *)this + 205);
if ( v10 )
{
*(_DWORD *)(v10 + 420) = 0;
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 205) + 580))(*((_DWORD *)this + 205), 0);
*((_DWORD *)this + 205) = 0;
}
v11 = *((cocos2d::CCNode ***)this + 190);
if ( v11 )
LoadingCircle::fadeAndRemove(v11, v8, v9);
v12 = *((FLAlertLayer **)this + 189);
*((_DWORD *)this + 190) = 0;
if ( v12 && (unsigned int)(*((_DWORD *)this + 188) - 1) <= 1 )
EditorSoundBrowserLayer::onConfigListChanged(v12);
return SetupTriggerPopup::onClose(this, a2);
}