//
// CCCounterLabel::calculateStepSize from 0x100512940 to 0x100512986 (70 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:31:37 +0000
//
__int64 __fastcall CCCounterLabel::calculateStepSize(__int64 a1, int a2)
{
__m128 v2; // xmm0
float v3; // xmm0_4
float v4; // xmm1_4
int v5; // eax
__int64 result; // rax
v2 = _mm_cvtepi32_ps((__m128i)*(unsigned __int64 *)(a1 + 520));
v3 = v2.f32[0] - _mm_movehdup_ps(v2).f32[0];
v4 = fabs(v3);
v5 = (int)v4;
if ( (float)a2 <= v4 )
v5 = a2;
result = (unsigned int)(int)(float)(v3 / (float)v5);
*(_DWORD *)(a1 + 516) = result;
return result;
}