//
// EditorSoundConfigInfoLayer::onClose from 0x1004d42c0 to 0x1004d439c (220 bytes)
//
// 1 xrefs:
// > ??> @ 0x100988ff8
//
// 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 11:06:30 +0000
//
__int64 __fastcall EditorSoundConfigInfoLayer::onClose(__int64 a1)
{
__int64 v2; // x0
_QWORD *v3; // x0
__int64 v4; // x0
__int64 v5; // x0
if ( GameLevelManager::sharedState() )
{
if ( *(_QWORD *)(GameLevelManager::sharedState() + 1336) == a1 + 1016 )
*(_QWORD *)(GameLevelManager::sharedState() + 1336) = 0;
if ( *(_QWORD *)(GameLevelManager::sharedState() + 1344) == a1 + 1024 )
*(_QWORD *)(GameLevelManager::sharedState() + 1344) = 0;
if ( *(_QWORD *)(GameLevelManager::sharedState() + 1360) == a1 + 1064 )
*(_QWORD *)(GameLevelManager::sharedState() + 1360) = 0;
}
v2 = MusicDownloadManager::sharedState();
MusicDownloadManager::removeMusicDownloadDelegate(v2, a1 + 1080);
v3 = *(_QWORD **)(a1 + 1232);
if ( v3 )
{
v3[73] = 0;
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v3 + 1160LL))(v3, 0);
*(_QWORD *)(a1 + 1232) = 0;
}
v4 = *(_QWORD *)(a1 + 1112);
if ( v4 )
LoadingCircle::fadeAndRemove(v4);
*(_QWORD *)(a1 + 1112) = 0;
v5 = *(_QWORD *)(a1 + 1104);
if ( v5 && (unsigned int)(*(_DWORD *)(a1 + 1096) - 1) <= 1 )
j_FLAlertLayer::requestRebuild(v5);
return SetupTriggerPopup::onClose(a1);
}