//
// GJGroundLayer::scaleGround from 0x10002c390 to 0x10002c414 (132 bytes)
//
// 6 xrefs:
// > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd750
// > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd76c
// > GJBaseGameLayer::resetLevelVariables @ 0x100202640
// > GJBaseGameLayer::resetLevelVariables @ 0x10020265c
// > GJBaseGameLayer::updateCameraBGArt @ 0x1002039b0
// > GJBaseGameLayer::updateCameraBGArt @ 0x1002039c0
//
// 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
//
float __fastcall GJGroundLayer::scaleGround(GJGroundLayer *a1, float a2)
{
__n128 v4; // q0
float m_groundWidth; // s8
float v6; // s8
((void (__fastcall *)(GJGroundLayer *))a1->setScaleX)(a1);
if ( ((float (__fastcall *)(GJGroundLayer *))a1->getScaleY)(a1) >= 0.0 )
v4.n128_f32[0] = a2;
else
v4.n128_f32[0] = -a2;
((void (__fastcall *)(GJGroundLayer *, __n128))a1->setScaleY)(a1, v4);
m_groundWidth = a1->m_groundWidth;
GJGroundLayer::updateGroundWidth(a1, 1);
v6 = a1->m_groundWidth - m_groundWidth;
GJGroundLayer::updateShadows(a1);
return v6;
}