//
// SetupReverbPopup::onReverb from 0x1004b13d0 to 0x1004b1442 (114 bytes)
//
// 2 xrefs:
// > SetupReverbPopup::init @ 0x1004b10d8
// > SetupReverbPopup::init @ 0x1004b11bc
//
// 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:30:59 +0000
//
double __fastcall SetupReverbPopup::onReverb(_QWORD *a1, __int64 a2)
{
int v2; // r15d
int v3; // eax
int v4; // ecx
int v5; // eax
v2 = (int)(*(float (__fastcall **)(_QWORD *, __int64))(*a1 + 1464LL))(a1, 502);
v3 = v2 + 2 * ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1) - 1;
v4 = 22;
if ( v3 < 22 )
v4 = v3;
v5 = 0;
if ( v4 > 0 )
v5 = v4;
SetupTriggerPopup::updateValue(a1, 0x1F6u, (float)v5);
return SetupReverbPopup::updateReverbLabel(a1);
}