//
// EditorSoundConfigUploadPopup::onClose from 0x14019c250 to 0x14019c323 (211 bytes)
//
// 2 xrefs:
// > ??> @ 0x14074ee10
// > ??> @ 0x140919700
//
// 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 11:27:47 +0000
//
// Hidden C++ exception states: #wind=3
__int64 __fastcall EditorSoundConfigUploadPopup::onClose(__int64 a1, __int64 a2)
{
__int64 v4; // rax
__int64 v5; // rdi
void *v7; // [rsp+40h] [rbp+18h]
void *v8; // [rsp+40h] [rbp+18h]
v4 = *(_QWORD *)&qword_14090BFB0;
if ( *(_QWORD *)&qword_14090BFB0
|| (v7 = operator new(0x690u),
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v7),
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0),
(v4 = *(_QWORD *)&qword_14090BFB0) != 0) )
{
v5 = a1 + 1000;
if ( !a1 )
v5 = 0;
if ( !v4 )
{
v8 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v8);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v4 = *(_QWORD *)&qword_14090BFB0;
}
if ( *(_QWORD *)(v4 + 1448) == v5 )
*(_QWORD *)(v4 + 1448) = 0;
}
return SetupTriggerPopup::onClose(a1, a2);
}