//
// cocos2d::CCDirector::applySmoothFix from 0xad60d4 to 0xad6140 (108 bytes)
//
// 2 xrefs:
// > cocos2d::CCDirector::calculateDeltaTime @ 0xad6198
// > ??> @ 0xa0908
//
// 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 cocos2d::CCDirector::applySmoothFix(cocos2d::CCDirector *a1)
{
float m_dAnimationInterval; // s0
int m_nSmoothFixCounter; // w1
int v3; // w1
if ( a1->m_bSmoothFix && a1->m_bSmoothFixCheck )
{
m_dAnimationInterval = a1->m_dAnimationInterval;
m_nSmoothFixCounter = a1->m_nSmoothFixCounter;
if ( vabds_f32(a1->m_fDeltaTime, m_dAnimationInterval) > (float)(m_dAnimationInterval * 0.05) )
v3 = m_nSmoothFixCounter + 1;
else
v3 = m_nSmoothFixCounter - 2;
if ( v3 > 100 )
v3 = 100;
if ( v3 < -100 )
v3 = -100;
a1->m_nSmoothFixCounter = v3;
if ( v3 <= 0 )
a1->m_fDeltaTime = m_dAnimationInterval;
}
}