//
// GJGroundLayer::scaleGround from 0x9174c0 to 0x91754c (140 bytes)
//
// 7 xrefs:
// > GJBaseGameLayer::updateCameraBGArt @ 0x9a9ad4
// > GJBaseGameLayer::updateCameraBGArt @ 0x9a9ae4
// > GJBaseGameLayer::preUpdateVisibility @ 0x9d9fb8
// > GJBaseGameLayer::preUpdateVisibility @ 0x9d9fd4
// > GJBaseGameLayer::resetLevelVariables @ 0x9e78dc
// > GJBaseGameLayer::resetLevelVariables @ 0x9e78f8
// > ??> @ 0xe9800
//
// This function is hookable on this platform (idp: arm, 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:57:20 +0000
//
long double __fastcall GJGroundLayer::scaleGround(GJGroundLayer *this, float a2)
{
void (__fastcall *v4)(GJGroundLayer *, long double); // x20
long double v5; // q0
float v6; // s8
long double v7; // q0
long double v9; // [xsp+30h] [xbp+30h]
(*(void (__fastcall **)(GJGroundLayer *))(*(_QWORD *)this + 128LL))(this);
v4 = *(void (__fastcall **)(GJGroundLayer *, long double))(*(_QWORD *)this + 144LL);
if ( (*(float (__fastcall **)(GJGroundLayer *))(*(_QWORD *)this + 152LL))(this) < 0.0 )
*(float *)&v5 = -a2;
else
*(float *)&v5 = a2;
v4(this, v5);
v6 = *((float *)this + 113);
GJGroundLayer::updateGroundWidth(this, 1u);
*(float *)&v7 = *((float *)this + 113) - v6;
v9 = v7;
GJGroundLayer::updateShadows(this);
return v9;
}