//
// GJMGLayer::scaleGround from 0x435428 to 0x43547c (84 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::updateCameraBGArt @ 0x47743e
//
// 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 GJMGLayer::scaleGround(GJMGLayer *a1, float a2)
{
GJMGLayer_vtbl *v2; // r3
void (__fastcall *setScaleY)(cocos2d::CCNode *__hidden, float); // r6
float v6; // r1
float m_groundWidth; // s16
v2 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_groundScale = a2;
((void (*)(void))v2->setScaleX)();
setScaleY = a1->setScaleY;
if ( COERCE_FLOAT(((int (__fastcall *)(GJMGLayer *))a1->getScaleY)(a1)) >= 0.0 )
v6 = a2;
else
LODWORD(v6) = LODWORD(a2) ^ 0x80000000;
((void (__fastcall *)(GJMGLayer *, _DWORD))setScaleY)(a1, LODWORD(v6));
m_groundWidth = a1->m_groundWidth;
GJMGLayer::updateGroundWidth(a1, 1);
return a1->m_groundWidth - m_groundWidth;
}