//
// SetupReverbPopup::onReverb from 0x10017f860 to 0x10017f8dc (124 bytes)
//
// 1 xrefs:
// > SetupReverbPopup::init @ 0x10017f578
//
// 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 SetupReverbPopup::onReverb(SetupReverbPopup *a1, cocos2d::CCObject *a2)
{
int v4; // w21
int v5; // w8
int v6; // w8
v4 = (int)((float (__fastcall *)(SetupReverbPopup *, __int64))a1->getValue)(a1, 502);
if ( ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 1 )
v5 = 1;
else
v5 = -1;
v6 = v5 + v4;
if ( v6 >= 22 )
v6 = 22;
SetupTriggerPopup::updateValue(a1, 502, (float)(v6 & (unsigned int)~(v6 >> 31)));
SetupReverbPopup::updateReverbLabel(a1);
}