//
// SetupReverbPopup::onReverb from 0xb6c4b4 to 0xb6c530 (124 bytes)
//
// 4 xrefs:
// > ??> @ 0xe6ce0
// > SetupReverbPopup::init @ 0xb6ce5c
// > SetupReverbPopup::init @ 0xb6cf44
// > ??> @ 0x1546f48
//
// 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 13:02:18 +0000
//
__int64 __fastcall SetupReverbPopup::onReverb(cocos2d::CCDictionary **this, cocos2d::CCObject *a2)
{
float v4; // s0
__int64 v5; // x1
cocos2d::CCObject *v6; // x0
int v7; // w19
int v8; // w0
int v9; // w2
v4 = (*((float (__fastcall **)(cocos2d::CCDictionary **, __int64))*this + 183))(this, 502);
v5 = *(_QWORD *)a2;
v6 = a2;
v7 = (int)v4;
v8 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(v5 + 64))(v6);
v9 = v7 + 1;
if ( v8 != 1 )
v9 = v7 - 1;
if ( v9 > 22 )
v9 = 22;
if ( v9 < 0 )
v9 = 0;
SetupTriggerPopup::updateValue(this, 0x1F6u, (float)v9);
return SetupReverbPopup::updateReverbLabel((SetupReverbPopup *)this);
}