//
// SetupReverbPopup::updateReverbLabel from 0xa3f27c to 0xa3f3a8 (300 bytes)
//
// 3 xrefs:
// > SetupReverbPopup::init @ 0xa3f810
// > SetupReverbPopup::onReverb @ 0xa3fd7c
// > ??> @ 0x58ae8
//
// 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::updateReverbLabel(SetupReverbPopup *a1)
{
const unsigned __int8 *v2; // x21
unsigned __int8 *v3; // x0
unsigned int *v4; // x21
int v5; // w1
float v6; // [xsp+30h] [xbp+30h]
const unsigned __int8 *v7; // [xsp+40h] [xbp+40h] BYREF
v6 = COERCE_FLOAT(COERCE_UNSIGNED_INT128(((long double (__fastcall *)(SetupReverbPopup *, __int64))a1->getValue)(a1, 502)));
FMODAudioEngine::sharedEngine();
FMODAudioEngine::reverbToString((int)v6, (__int64)&v7);
v2 = v7;
a1->m_reverbLabel->setString(a1->m_reverbLabel, v7);
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_reverbLabel, 150.0, 0.8, 0.0);
v3 = (unsigned __int8 *)(v2 - 24);
if ( v2 - 24 != (const unsigned __int8 *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v4 = (unsigned int *)(v2 - 8);
do
v5 = __ldaxr(v4);
while ( __stlxr(v5 - 1, v4) );
}
else
{
v5 = *((_DWORD *)v2 - 2);
*((_DWORD *)v2 - 2) = v5 - 1;
}
if ( v5 <= 0 )
operator delete(v3);
}
}