//
// SFXBrowser::setTextPopupClosed from 0x1404806e0 to 0x140480778 (152 bytes)
//
// 3 xrefs:
// > ??> @ 0x140605c78
// > ??> @ 0x1406db9fc
// > ??> @ 0x1406dba08
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall SFXBrowser::setTextPopupClosed(__int64 a1, __int64 a2, void **a3)
{
__int64 v5; // rcx
void **v6; // rcx
void *v7; // rdx
v5 = *(_QWORD *)(a1 + 16);
if ( v5 )
{
v6 = (void **)(v5 + 96);
if ( v6 != a3 )
{
v7 = a3;
if ( (unsigned __int64)a3[3] > 0xF )
v7 = *a3;
sub_14003CCE0(v6, v7, (size_t)a3[2]);
}
*(_DWORD *)(*(_QWORD *)(a1 + 16) + 88LL) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 16) + 72LL))(
*(_QWORD *)(a1 + 16),
*(unsigned int *)(a1 + 144));
SFXBrowser::setupList((SFXBrowser *)(a1 - 648), *(SFXSearchResult **)(a1 + 16));
}
sub_14003A830((__int64)a3);
}