//
// ShaderLayer::updateMotionBlurSpeedX from 0x1003b9fc0 to 0x1003ba003 (67 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::updateShaderLayer @ 0x100118c61
//
// 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:29:30 +0000
//
void __fastcall ShaderLayer::updateMotionBlurSpeedX(__int64 a1, float a2, float a3)
{
float v3; // xmm2_4
v3 = *(float *)(a1 + 876);
if ( v3 > 1.0 )
{
if ( a3 > 0.0 )
v3 = v3 / a3;
a2 = (float)((float)(a2 - *(float *)(a1 + 868)) / v3) + *(float *)(a1 + 868);
}
*(float *)(a1 + 868) = a2;
}