//
// ColorSelectLiveOverlay::sliderChanged from 0x601510 to 0x6016fe (494 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:54:40 +0000
//
int __fastcall ColorSelectLiveOverlay::sliderChanged(ColorSelectLiveOverlay *this, cocos2d::CCObject *a2)
{
float v4; // s16
int v5; // r0
double v6; // d7
char v7; // r3
double v8; // d7
int v9; // r0
void (__fastcall *v10)(int, char *); // r12
int v11; // r0
void (__fastcall *v12)(int, char *); // r5
int v13; // r5
void (__fastcall *v14)(int, int); // r7
int v15; // r0
char v17; // [sp+14h] [bp-48h] BYREF
char v18; // [sp+15h] [bp-47h]
char v19; // [sp+16h] [bp-46h]
__int64 v20; // [sp+18h] [bp-44h]
double v21; // [sp+20h] [bp-3Ch]
double v22; // [sp+28h] [bp-34h]
double v23; // [sp+30h] [bp-2Ch] BYREF
double v24; // [sp+38h] [bp-24h]
double v25; // [sp+40h] [bp-1Ch]
v4 = COERCE_FLOAT(SliderThumb::getValue(a2));
switch ( (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2) )
{
case 1:
*((double *)this + 77) = (float)(v4 * 360.0);
break;
case 2:
*((double *)this + 78) = v4;
break;
case 3:
*((double *)this + 79) = v4;
break;
case 4:
*((float *)this + 141) = v4;
ColorSelectLiveOverlay::updateOpacity((int)this);
break;
default:
break;
}
cocos2d::extension::CCControlUtils::RGBfromHSV(
(int)&v23,
*((_DWORD *)this + 157),
*((_DWORD *)this + 154),
*((_DWORD *)this + 155),
*((double *)this + 78),
*((double *)this + 79));
v5 = *((_DWORD *)this + 148);
v6 = v25 * 255.0;
*((_BYTE *)this + 547) = (unsigned int)(v24 * 255.0);
v7 = (unsigned int)v6;
v8 = v23 * 255.0;
*((_BYTE *)this + 548) = v7;
*((_BYTE *)this + 546) = (unsigned int)v8;
(*(void (__fastcall **)(int, char *))(*(_DWORD *)v5 + 480))(v5, (char *)this + 546);
v20 = *((_QWORD *)this + 77);
v21 = 1.0;
v22 = 1.0;
cocos2d::extension::CCControlUtils::RGBfromHSV((int)&v23, 1072693248, v20, SHIDWORD(v20), 1.0, 1.0);
v9 = *((_DWORD *)this + 150);
v10 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v9 + 480);
v18 = (unsigned int)(v24 * 255.0);
v19 = (unsigned int)(v25 * 255.0);
v17 = (unsigned int)(v23 * 255.0);
v10(v9, &v17);
v20 = *((_QWORD *)this + 77);
v21 = *((double *)this + 78);
cocos2d::extension::CCControlUtils::RGBfromHSV((int)&v23, SHIDWORD(v21), v20, SHIDWORD(v20), v21, v22);
v11 = *((_DWORD *)this + 151);
v12 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v11 + 480);
v18 = (unsigned int)(v24 * 255.0);
v19 = (unsigned int)(v25 * 255.0);
v17 = (unsigned int)(v23 * 255.0);
v12(v11, &v17);
v13 = *((_DWORD *)this + 152);
v14 = *(void (__fastcall **)(int, int))(*(_DWORD *)v13 + 480);
v15 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 151) + 472))(*((_DWORD *)this + 151));
v14(v13, v15);
return ColorSelectLiveOverlay::updateColorValue((int)this);
}