//
// ColorSelectPopup::sliderChanged from 0x4df63c to 0x4df6e8 (172 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:50:59 +0000
//
int __fastcall ColorSelectPopup::sliderChanged(ColorSelectPopup *this, cocos2d::CCObject *a2)
{
float v4; // s16
const char *v5; // r1
int result; // r0
const char *v7; // r1
cocos2d::CCString *v8; // r0
float v9; // r0
int v10; // r3
const char *v11; // r1
v4 = COERCE_FLOAT(SliderThumb::getValue(a2));
if ( (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2) == 1 )
{
*((float *)this + 192) = v4 * 10.0;
ColorSelectPopup::updateDuration(this);
return ColorSelectPopup::updateDurLabel(this, v5);
}
result = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
if ( result == 2 )
{
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v7, v4);
v9 = COERCE_FLOAT(cocos2d::CCString::floatValue(v8));
if ( v9 > 0.02 )
{
if ( v9 < 0.98 )
{
*((float *)this + 195) = v9;
LABEL_10:
ColorSelectPopup::updateOpacity(this);
return ColorSelectPopup::updateOpacityLabel((int)this, v11);
}
v10 = 1065353216;
}
else
{
v10 = 0;
}
*((_DWORD *)this + 195) = v10;
goto LABEL_10;
}
return result;
}