//
// SliderThumb::setValue from 0x6b545c to 0x6b55ac (336 bytes)
//
// 5 xrefs:
// > SliderThumb::setRotated @ 0x6b5618
// > SliderThumb::setMaxOffset @ 0x6b56b0
// > SliderTouchLogic::ccTouchMoved @ 0x6b6104
// > Slider::setValue @ 0x6b6134
// > ??> @ 0x548b0
//
// 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 12:50:52 +0000
//
__int64 __fastcall SliderThumb::setValue(SliderThumb *this, float a2)
{
float v4; // s8
void (__fastcall *v5)(SliderThumb *, _BYTE *); // x22
float v6; // s8
float v7; // s9
long double v8; // q0
__int64 v9; // x0
float v11; // s11
float v12; // s9
float v13; // s9
float v14; // s8
float v15; // s0
float v16; // [xsp+50h] [xbp+50h]
_BYTE v17[8]; // [xsp+70h] [xbp+70h] BYREF
if ( *((_BYTE *)this + 404) )
{
v5 = *(void (__fastcall **)(SliderThumb *, _BYTE *))(*(_QWORD *)this + 184LL);
v11 = *(float *)(*(__int64 (__fastcall **)(SliderThumb *))(*(_QWORD *)this + 192LL))(this);
v12 = *((float *)this + 100);
v13 = v12 * (*(float (__fastcall **)(SliderThumb *))(*(_QWORD *)this + 168LL))(this);
v14 = *((float *)this + 100);
v15 = (*(float (__fastcall **)(SliderThumb *))(*(_QWORD *)this + 168LL))(this);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v17,
v11,
-(float)((float)((float)(v14 * v15) * 0.5) - (float)(v13 * a2)));
}
else
{
v4 = *((float *)this + 100);
v5 = *(void (__fastcall **)(SliderThumb *, _BYTE *))(*(_QWORD *)this + 184LL);
v6 = v4 * (*(float (__fastcall **)(SliderThumb *))(*(_QWORD *)this + 168LL))(this);
v7 = *((float *)this + 100);
v8 = ((long double (__fastcall *)(SliderThumb *))*(_QWORD *)(*(_QWORD *)this + 168LL))(this);
v16 = -(float)((float)((float)(v7 * *(float *)&v8) * 0.5) - (float)(v6 * a2));
v9 = (*(__int64 (__fastcall **)(SliderThumb *))(*(_QWORD *)this + 192LL))(this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v16, *(float *)(v9 + 4));
}
v5(this, v17);
return _stack_chk_guard;
}