//
// cocos2d::CCDirector::applySmoothFix from 0x100477f40 to 0x100477fc1 (129 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:30:36 +0000
//
void __fastcall cocos2d::CCDirector::applySmoothFix(__int64 a1)
{
float v1; // xmm0_4
int v2; // eax
int v3; // ecx
int v4; // edx
if ( *(_BYTE *)(a1 + 177) == 1 && *(_BYTE *)(a1 + 178) == 1 )
{
v1 = *(double *)(a1 + 200);
v2 = *(_DWORD *)(a1 + 180) + 3 * (fabs(*(float *)(a1 + 168) - v1) > (float)(0.050000001 * v1)) - 2;
v3 = 100;
if ( v2 < 100 )
v3 = v2;
v4 = -100;
if ( v3 >= -99 )
v4 = v3;
*(_DWORD *)(a1 + 180) = v4;
if ( v2 <= 0 )
*(float *)(a1 + 168) = v1;
}
}