//
// Slider::setSnapStepCalc from 0x6b5e58 to 0x6b5eb0 (88 bytes)
//
// 2 xrefs:
// > GridSettingsLayer::onBuildWindowContent @ 0xcdc670
// > ??> @ 0xf5d70
//
// 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 Slider::setSnapStepCalc(Slider *this, float a2, float a3, float a4)
{
float v4; // s8
__int64 Thumb; // x0
float v6; // s0
v4 = a4 - a3;
if ( (float)(a4 - a3) <= 0.0 || a2 <= 0.0 )
{
Thumb = Slider::getThumb(this);
v6 = 0.0;
}
else
{
Thumb = Slider::getThumb(this);
v6 = a2 / v4;
}
return SliderThumb::setSnapStep(Thumb, v6);
}