//
// SetupSFXPopup::onBrowseSFX from 0x100213724 to 0x10021378c (104 bytes)
//
// 1 xrefs:
// > SetupSFXPopup::init @ 0x100213418
//
// 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:01:03 +0000
//
__int64 __fastcall SetupSFXPopup::onBrowseSFX(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x20
float v4; // s0
_QWORD *v5; // x0
v2 = *(_QWORD *)(a1 + 1048);
if ( v2 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 536LL))(v2);
*(_QWORD *)(a1 + 1048) = 0;
}
v3 = *(unsigned int *)(a1 + 1040);
v4 = (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 601);
v5 = SFXBrowser::create(v3, (unsigned int)(int)v4);
v5[140] = a1 + 1032;
return (*(__int64 (__fastcall **)(_QWORD *))(*v5 + 1312LL))(v5);
}