//
// SetupSFXPopup::onBrowseSFX from 0x1405dea10 to 0x1405dea8a (122 bytes)
//
// 2 xrefs:
// > SetupSFXPopup::init @ 0x1405dd806
// > ??> @ 0x14092ed48
//
// 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:35:00 +0000
//
__int64 __fastcall SetupSFXPopup::onBrowseSFX(__int64 a1)
{
__int64 v2; // rcx
float v3; // xmm0_4
_QWORD *v4; // rax
__int64 v5; // rcx
v2 = *(_QWORD *)(a1 + 1032);
if ( v2 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 528LL))(v2);
*(_QWORD *)(a1 + 1032) = 0;
}
v3 = (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 601);
v4 = (_QWORD *)SFXBrowser::create(*(unsigned int *)(a1 + 1024), (unsigned int)(int)v3);
v5 = a1 + 1016;
if ( !a1 )
v5 = 0;
v4[139] = v5;
return (*(__int64 (__fastcall **)(_QWORD *))(*v4 + 1064LL))(v4);
}