//
// GJBaseGameLayer::getScaledGroundHeight from 0x10012aa40 to 0x10012aa83 (67 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
float __fastcall GJBaseGameLayer::getScaledGroundHeight(GJBaseGameLayer *a1, float a2)
{
__m128 m_targetCameraZoom_low; // xmm1
__m128 v3; // xmm2
__m128 v4; // rt1
__m128 v5; // xmm1
float result; // xmm0_4
m_targetCameraZoom_low = (__m128)LODWORD(a1->m_gameState.m_targetCameraZoom);
v3 = *(__m128 *)&a2;
v3.f32[0] = (float)(a2 / m_targetCameraZoom_low.f32[0]) / 30.0;
v4.i32[0] = 1065353216;
v5 = _mm_cmpneq_ss(m_targetCameraZoom_low, v4);
LODWORD(result) = v5.i32[0] & COERCE_UNSIGNED_INT(_mm_round_ss(v3, v3, 9).f32[0] * 30.0)
| _mm_andnot_ps(v5, *(__m128 *)&a2).u32[0];
return result;
}