//
// SetupReverbPopup::onReverb from 0x140446ed0 to 0x140446f53 (131 bytes)
//
// 3 xrefs:
// > SetupReverbPopup::init @ 0x140446b83
// > SetupReverbPopup::init @ 0x140446c41
// > ??> @ 0x1406da610
//
// 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 SetupReverbPopup::onReverb(SetupReverbPopup *a1, cocos2d::CCObject *a2)
{
int v4; // ebx
int v5; // eax
int v6; // r8d
bool v7; // zf
int v8; // eax
int v9; // r8d
v4 = (int)a1->getValue(a1, 502);
v5 = a2->getTag(a2);
v6 = 1;
v7 = v5 == 1;
v8 = 22;
if ( !v7 )
v6 = -1;
v9 = v4 + v6;
if ( v9 < 22 )
v8 = v9;
if ( v8 < 0 )
v8 = 0;
SetupTriggerPopup::updateValue(a1, 502, (float)v8);
SetupReverbPopup::updateReverbLabel(a1);
}