//
// CCCounterLabel::calculateStepSize from 0x68fdbc to 0x68fdf8 (60 bytes)
//
// 2 xrefs:
// > CCCounterLabel::setTargetCount @ 0x68fe10
// > ??> @ 0xdec40
//
// 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:35 +0000
//
float __fastcall CCCounterLabel::calculateStepSize(CCCounterLabel *this, int a2)
{
float v2; // s2
float v3; // s0
float v4; // s1
float result; // s0
v2 = (float)a2;
v3 = (float)*((int *)this + 130) - (float)*((int *)this + 131);
v4 = fabsf(v3);
if ( (float)a2 > v4 )
v2 = (float)(int)v4;
result = v3 / v2;
*((_DWORD *)this + 129) = (int)result;
return result;
}