//
// GJBaseGameLayer::getScaledGroundHeight from 0x100108990 to 0x1001089d3 (67 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:21:32 +0000
//
__m128 __fastcall GJBaseGameLayer::getScaledGroundHeight(__int64 a1, __m128 a2)
{
__m128 v2; // xmm1
__m128 v3; // xmm2
__m128 v4; // xmm2
__m128 v5; // rt1
__m128 v6; // xmm1
v2 = (__m128)*(unsigned int *)(a1 + 428);
v3 = a2;
v3.f32[0] = (float)(a2.f32[0] / v2.f32[0]) / 30.0;
v4 = _mm_round_ss(v3, v3, 9);
v4.f32[0] = v4.f32[0] * 30.0;
v5.i32[0] = 1065353216;
v6 = _mm_cmpneq_ss(v2, v5);
return _mm_or_ps(_mm_and_ps(v6, v4), _mm_andnot_ps(v6, a2));
}