//
// GJScaleControl::skewFromValue from 0x100642ca0 to 0x100642ce1 (65 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:34:43 +0000
//
__int64 __fastcall GJScaleControl::skewFromValue(__int64 a1, float a2)
{
__m128 v2; // xmm1
__m128 v3; // xmm0
v2 = (__m128)*(unsigned int *)(a1 + 584);
v2.f32[0] = (float)((float)(v2.f32[0] - *(float *)(a1 + 588)) * a2) + *(float *)(a1 + 588);
v3 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, v2), (__m128)xmmword_100A03600);
v3.f32[0] = v3.f32[0] + v2.f32[0];
return (unsigned int)(int)_mm_round_ss(v3, v3, 11).f32[0];
}