//
// Slider::setSnapStepCalc from 0x3db198 to 0x3db1e6 (78 bytes)
//
// 1 xrefs:
// > GridSettingsLayer::onBuildWindowContent @ 0x78eb10
//
// 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 Slider::setSnapStepCalc(Slider *this, float a2, float a3, float a4)
{
float v4; // s16
int Thumb; // r0
float v7; // r1
v4 = a4 - a3;
if ( (float)(a4 - a3) > 0.0 && a2 > 0.0 )
{
Thumb = Slider::getThumb(this);
v7 = a2 / v4;
}
else
{
Thumb = Slider::getThumb(this);
v7 = 0.0;
}
return SliderThumb::setSnapStep(Thumb, v7);
}