//
// GJMGLayer::scaleGround from 0x1006bf5f0 to 0x1006bf673 (131 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::updateCameraBGArt @ 0x10013aabc
//
// 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:35:31 +0000
//
float __fastcall GJMGLayer::scaleGround(float *a1, __m128 a2)
{
__m128 v2; // xmm0
__m128 v4; // [rsp+0h] [rbp-20h]
v4 = a2;
a1[120] = a2.f32[0];
(*(void (__fastcall **)(float *))(*(_QWORD *)a1 + 128LL))(a1);
*(double *)a2.i64 = (*(double (__fastcall **)(float *))(*(_QWORD *)a1 + 152LL))(a1);
v2 = _mm_cmplt_ss(a2, (__m128)0LL);
(*(void (__fastcall **)(float *, double))(*(_QWORD *)a1 + 144LL))(
a1,
COERCE_DOUBLE(_mm_andnot_ps(v2, v4).u64[0] | (v4.i64[0] ^ 0x8000000080000000LL) & v2.i64[0]));
v4.f32[0] = a1[111];
GJMGLayer::updateGroundWidth(a1, 0);
return a1[111] - v4.f32[0];
}