//
// GJGroundLayer::scaleGround from 0x7ec6a0 to 0x7ec72c (140 bytes)
//
// 7 xrefs:
// > GJBaseGameLayer::updateCameraBGArt @ 0x8673b8
// > GJBaseGameLayer::updateCameraBGArt @ 0x8673c8
// > GJBaseGameLayer::preUpdateVisibility @ 0x881cb0
// > GJBaseGameLayer::preUpdateVisibility @ 0x881ccc
// > GJBaseGameLayer::resetLevelVariables @ 0x88af10
// > GJBaseGameLayer::resetLevelVariables @ 0x88af2c
// > ??> @ 0xb28c0
//
// 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 GJGroundLayer::scaleGround(GJGroundLayer *a1, float a2)
{
void (__fastcall *setScaleY)(cocos2d::CCNode *__hidden, float); // x20
long double v5; // q0
float m_groundWidth; // s8
float v8; // [xsp+30h] [xbp+30h]
((void (__fastcall *)(GJGroundLayer *))a1->setScaleX)(a1);
setScaleY = a1->setScaleY;
if ( a1->getScaleY(a1) < 0.0 )
*(float *)&v5 = -a2;
else
*(float *)&v5 = a2;
setScaleY(a1, v5);
m_groundWidth = a1->m_groundWidth;
GJGroundLayer::updateGroundWidth(a1, 1);
v8 = a1->m_groundWidth - m_groundWidth;
GJGroundLayer::updateShadows(a1);
return v8;
}