//
// EditorUI::sliderChanged from 0x1401ae000 to 0x1401ae0fd (253 bytes)
//
// 2 xrefs:
// > EditorUI::init @ 0x1401a9a9a
// > ??> @ 0x140919d90
//
// 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 11:27:54 +0000
//
__int64 __fastcall EditorUI::sliderChanged(__int64 a1, float *a2)
{
float Value; // xmm8_4
__int64 *v4; // rdi
double XMin; // xmm0_8
__int64 v6; // rcx
float v7; // xmm7_4
__int64 v8; // rbx
double v9; // xmm0_8
int v10; // eax
__int64 v11; // rbx
float v12; // xmm6_4
__int64 v13; // rax
__int64 v14; // rax
char v16; // [rsp+60h] [rbp+8h] BYREF
Value = SliderThumb::getValue(a2);
v4 = *(__int64 **)(*(_QWORD *)(a1 + 1512) + 4296LL);
XMin = EditorUI::getXMin(a1);
v6 = *(_QWORD *)(a1 + 1512);
v7 = *(float *)&XMin;
v8 = (__int64)(*(_QWORD *)(v6 + 13984) - *(_QWORD *)(v6 + 13976)) >> 3;
v9 = (*(double (__fastcall **)(_QWORD))(**(_QWORD **)(v6 + 4296) + 168LL))(*(_QWORD *)(v6 + 4296));
v10 = 100;
if ( (int)v8 > 100 )
v10 = v8;
v11 = *v4;
v12 = (float)((float)(*(float *)&v9 * (float)((float)v10 * 100.0)) * Value) - v7;
v13 = (*(__int64 (__fastcall **)(__int64 *))(*v4 + 200))(v4);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v16, -v12, *(float *)(v13 + 4));
(*(void (__fastcall **)(__int64 *, __int64))(v11 + 184))(v4, v14);
return EditorUI::constrainGameLayerPosition(a1);
}