//
// cocos2d::extension::CCControlSlider::sliderEnded from 0x10038a230 to 0x10038a2f4 (196 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:29:11 +0000
//
__int64 __fastcall cocos2d::extension::CCControlSlider::sliderEnded(float *a1)
{
_QWORD *v1; // rsi
float *v2; // rax
__int64 v4; // [rsp+Ch] [rbp-14h] BYREF
float v5; // [rsp+14h] [rbp-Ch]
if ( (*(unsigned __int8 (__fastcall **)(float *))(*(_QWORD *)a1 + 1288LL))(a1) )
{
v1 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *))(**((_QWORD **)a1 + 62) + 192LL))(*((_QWORD **)a1 + 62));
sub_1002782D0(&v4, v1);
v5 = *(float *)&v4;
v2 = (float *)(*(__int64 (__fastcall **)(_QWORD *))(**((_QWORD **)a1 + 64) + 328LL))(*((_QWORD **)a1 + 64));
(*(void (__fastcall **)(float *, float))(*(_QWORD *)a1 + 1360LL))(
a1,
fmaxf(a1[121], fminf(a1[122], (float)((float)(a1[120] - a1[119]) * (float)(v5 / *v2)) + a1[119])));
}
(*(void (__fastcall **)(_QWORD *, void *))(**((_QWORD **)a1 + 62) + 960LL))(*((_QWORD **)a1 + 62), &unk_100A08B20);
return (*(__int64 (__fastcall **)(float *, _QWORD))(*(_QWORD *)a1 + 1280LL))(a1, 0);
}