//
// cocos2d::CCDirector::applySmoothFix from 0xd48d10 to 0xd48d7c (108 bytes)
//
// 2 xrefs:
// > cocos2d::CCDirector::calculateDeltaTime @ 0xd48dd4
// > ??> @ 0xd3408
//
// 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 13:07:36 +0000
//
__int64 __fastcall cocos2d::CCDirector::applySmoothFix(__int64 this)
{
float v1; // s0
int v2; // w1
int v3; // w1
if ( *(_BYTE *)(this + 177) && *(_BYTE *)(this + 178) )
{
v1 = *(double *)(this + 200);
v2 = *(_DWORD *)(this + 180);
if ( (float)(v1 * 0.05) < vabds_f32(*(float *)(this + 168), v1) )
v3 = v2 + 1;
else
v3 = v2 - 2;
if ( v3 > 100 )
v3 = 100;
if ( v3 < -100 )
v3 = -100;
*(_DWORD *)(this + 180) = v3;
if ( v3 <= 0 )
*(float *)(this + 168) = v1;
}
return this;
}