//
// cocos2d::CCDirector::applySmoothFix from 0x1004835b0 to 0x100483631 (129 bytes)
//
// 0 xrefs:
//
// 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 __fastcall cocos2d::CCDirector::applySmoothFix(cocos2d::CCDirector *a1)
{
float m_dAnimationInterval; // xmm0_4
int v2; // eax
int v3; // ecx
int v4; // edx
if ( a1->m_bSmoothFix && a1->m_bSmoothFixCheck )
{
m_dAnimationInterval = a1->m_dAnimationInterval;
v2 = a1->m_nSmoothFixCounter
+ 3 * (fabs(a1->m_fDeltaTime - m_dAnimationInterval) > (float)(0.050000001 * m_dAnimationInterval))
- 2;
v3 = 100;
if ( v2 < 100 )
v3 = v2;
v4 = -100;
if ( v3 >= -99 )
v4 = v3;
a1->m_nSmoothFixCounter = v4;
if ( v2 <= 0 )
a1->m_fDeltaTime = m_dAnimationInterval;
}
}