//
// CCCounterLabel::calculateStepSize from 0x5748c8 to 0x574904 (60 bytes)
//
// 2 xrefs:
// > CCCounterLabel::setTargetCount @ 0x57491c
// > ??> @ 0xa9f38
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void CCCounterLabel::calculateStepSize(CCCounterLabel *a1, int a2)
{
float v2; // s2
float v3; // s0
float v4; // s1
v2 = (float)a2;
v3 = (float)a1->m_targetCount - (float)a1->m_currentCount;
v4 = fabsf(v3);
if ( v4 < (float)a2 )
v2 = (float)(int)v4;
a1->m_stepSize = (int)(float)(v3 / v2);
}