//
// GJMGLayer::scaleGround from 0x918220 to 0x9182a0 (128 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::updateCameraBGArt @ 0x9a9aa0
// > ??> @ 0xc52c0
//
// 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
//
float __fastcall GJMGLayer::scaleGround(GJMGLayer *this, float a2)
{
__int64 v3; // x1
void (__fastcall *v5)(GJMGLayer *, long double); // x20
long double v6; // q0
float v7; // s8
v3 = *(_QWORD *)this;
*((float *)this + 120) = a2;
(*(void (**)(void))(v3 + 128))();
v5 = *(void (__fastcall **)(GJMGLayer *, long double))(*(_QWORD *)this + 144LL);
if ( (*(float (__fastcall **)(GJMGLayer *))(*(_QWORD *)this + 152LL))(this) < 0.0 )
*(float *)&v6 = -a2;
else
*(float *)&v6 = a2;
v5(this, v6);
v7 = *((float *)this + 111);
GJMGLayer::updateGroundWidth(this);
return *((float *)this + 111) - v7;
}