//
// SliderThumb::setValue from 0x3dab74 to 0x3dac40 (204 bytes)
//
// 4 xrefs:
// > SliderThumb::setRotated @ 0x3dac7c
// > SliderThumb::setMaxOffset @ 0x3dacd0
// > SliderTouchLogic::ccTouchMoved @ 0x3db35c
// > Slider::setValue @ 0x3db3b0
//
// 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:46:47 +0000
//
int __fastcall SliderThumb::setValue(SliderThumb *this, float a2)
{
int v4; // r3
int (__fastcall *v5)(SliderThumb *, _BYTE *); // r7
float *v6; // r0
float v7; // s17
float v8; // r8
float v9; // s16
float v10; // s17
float v11; // r0
float v12; // r1
float v13; // r2
float v14; // s17
float v15; // s16
float v16; // s17
float v17; // s15
int v18; // r3
_BYTE v20[8]; // [sp+4h] [bp-Ch] BYREF
v4 = *(_DWORD *)this;
v5 = *(int (__fastcall **)(SliderThumb *, _BYTE *))(*(_DWORD *)this + 92);
if ( *((_BYTE *)this + 316) )
{
v6 = (float *)(*(int (**)(void))(v4 + 96))();
v7 = *((float *)this + 78);
v8 = *v6;
v9 = a2 * (float)(v7 * COERCE_FLOAT((*(int (__fastcall **)(SliderThumb *))(*(_DWORD *)this + 84))(this)));
v10 = *((float *)this + 78);
v11 = COERCE_FLOAT((*(int (__fastcall **)(SliderThumb *))(*(_DWORD *)this + 84))(this));
v12 = v8;
v13 = v9 - (float)((float)(v10 * v11) * 0.5);
}
else
{
v14 = *((float *)this + 78);
v15 = a2 * (float)(v14 * COERCE_FLOAT((*(int (**)(void))(v4 + 84))()));
v16 = *((float *)this + 78);
v17 = COERCE_FLOAT((*(int (__fastcall **)(SliderThumb *))(*(_DWORD *)this + 84))(this));
v18 = (*(int (__fastcall **)(SliderThumb *))(*(_DWORD *)this + 96))(this);
v12 = v15 - (float)((float)(v16 * v17) * 0.5);
v13 = *(float *)(v18 + 4);
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, v12, v13);
return v5(this, v20);
}