//
// EditorSoundBrowserLayer::onClose from 0x1004cd52c to 0x1004cd5c0 (148 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009880e0
//
// 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:26 +0000
//
__int64 __fastcall EditorSoundBrowserLayer::onClose(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
if ( GameLevelManager::sharedState() && *(_QWORD *)(GameLevelManager::sharedState() + 1328) == a1 + 1016 )
*(_QWORD *)(GameLevelManager::sharedState() + 1328) = 0;
v2 = *(_QWORD *)(a1 + 1192);
if ( v2 )
FLAlertLayer::requestRebuild(v2);
if ( (*(_BYTE *)(a1 + 1188) & 1) == 0 )
{
dword_1009D4708 = *(_DWORD *)(a1 + 1048);
std::string::operator=((std::string *)&qword_1009F8000, (const std::string *)(a1 + 1120));
}
v3 = *(_QWORD *)(a1 + 1056);
if ( v3 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 536LL))(v3);
*(_QWORD *)(a1 + 1056) = 0;
}
return SetupTriggerPopup::onClose(a1);
}