//
// EditorSoundBrowserLayer::onClose from 0x1008f09c0 to 0x1008f0a66 (166 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bb50d8
//
// This function is hookable on this platform (idp: pc, 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 12:37:55 +0000
//
__int64 __fastcall EditorSoundBrowserLayer::onClose(__int64 a1, __int64 a2)
{
__int64 v3; // rdx
__int64 v4; // rdi
__int64 v5; // rdi
if ( GameLevelManager::sharedState() && *(_QWORD *)(GameLevelManager::sharedState() + 1328) == a1 + 1016 )
*(_QWORD *)(GameLevelManager::sharedState() + 1328) = 0;
v4 = *(_QWORD *)(a1 + 1192);
if ( v4 )
sub_100495650(v4);
if ( !*(_BYTE *)(a1 + 1188) )
{
dword_100BE0834 = *(_DWORD *)(a1 + 1048);
std::string::operator=(&stru_100BE7180, (const std::string *)(a1 + 1120));
}
v5 = *(_QWORD *)(a1 + 1056);
if ( v5 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 536LL))(v5);
*(_QWORD *)(a1 + 1056) = 0;
}
return SetupTriggerPopup::onClose(a1, a2, v3);
}