//
// ShaderLayer::updateMotionBlurSpeedX from 0xb2d1e0 to 0xb2d214 (52 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::updateShaderLayer @ 0x9a2788
// > ??> @ 0x7a9c8
//
// 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:01:41 +0000
//
__int64 __fastcall ShaderLayer::updateMotionBlurSpeedX(__int64 this, float a2, float a3)
{
float v3; // s2
v3 = *(float *)(this + 876);
if ( v3 > 1.0 )
{
if ( a3 > 0.0 )
v3 = v3 / a3;
a2 = *(float *)(this + 868) + (float)((float)(a2 - *(float *)(this + 868)) / v3);
}
*(float *)(this + 868) = a2;
return this;
}