//
// GJMGLayer::scaleGround from 0x1005ec560 to 0x1005ec5e3 (131 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::updateCameraBGArt @ 0x10015b5aa
//
// 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 GJMGLayer::scaleGround(GJMGLayer *a1, float a2)
{
__m128 v2; // xmm0
__m128 v3; // xmm0
__m128 v5; // [rsp+0h] [rbp-20h]
v5 = *(__m128 *)&a2;
a1->m_groundScale = a2;
((void (__fastcall *)(GJMGLayer *))a1->setScaleX)(a1);
*(double *)v2.i64 = ((double (__fastcall *)(GJMGLayer *))a1->getScaleY)(a1);
v3 = _mm_cmplt_ss(v2, (__m128)0LL);
((void (__fastcall *)(GJMGLayer *, double))a1->setScaleY)(
a1,
COERCE_DOUBLE(_mm_andnot_ps(v3, v5).u64[0] | (v5.i64[0] ^ 0x8000000080000000LL) & v3.i64[0]));
v5.i32[0] = LODWORD(a1->m_groundWidth);
GJMGLayer::updateGroundWidth(a1, 0);
return a1->m_groundWidth - v5.f32[0];
}