//
// GJMGLayer::scaleGround from 0x10002cf84 to 0x10002d000 (124 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::updateCameraBGArt @ 0x100203804
//
// 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 GJMGLayer::scaleGround(GJMGLayer *a1, float a2)
{
__n128 v4; // q0
float m_groundWidth; // s8
a1->m_groundScale = a2;
((void (__fastcall *)(GJMGLayer *))a1->setScaleX)(a1);
if ( ((float (__fastcall *)(GJMGLayer *))a1->getScaleY)(a1) >= 0.0 )
v4.n128_f32[0] = a2;
else
v4.n128_f32[0] = -a2;
((void (__fastcall *)(GJMGLayer *, __n128))a1->setScaleY)(a1, v4);
m_groundWidth = a1->m_groundWidth;
GJMGLayer::updateGroundWidth(a1, 0);
return a1->m_groundWidth - m_groundWidth;
}