//
// GJMGLayer::scaleGround from 0x546d88 to 0x546ddc (84 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::updateCameraBGArt @ 0x5969e8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:52:23 +0000
//
float __fastcall GJMGLayer::scaleGround(GJMGLayer *this, unsigned int a2)
{
void (__fastcall *v4)(GJMGLayer *, unsigned int); // r6
unsigned int v5; // r1
float v6; // s16
float v7; // r2
float v8; // r3
*((float *)this + 90) = *(float *)&a2;
(*(void (__fastcall **)(GJMGLayer *))(*(_DWORD *)this + 64))(this);
v4 = *(void (__fastcall **)(GJMGLayer *, unsigned int))(*(_DWORD *)this + 72);
if ( COERCE_FLOAT((*(int (__fastcall **)(GJMGLayer *))(*(_DWORD *)this + 76))(this)) >= 0.0 )
v5 = a2;
else
v5 = a2 ^ 0x80000000;
v4(this, v5);
v6 = *((float *)this + 84);
GJMGLayer::updateGroundWidth(this, COERCE_FLOAT(1), v7, v8);
return *((float *)this + 84) - v6;
}