//
// GJBaseGameLayer::getScaledGroundHeight from 0x58f9a2 to 0x58f9e4 (66 bytes)
//
// 0 xrefs:
//
// 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:53:04 +0000
//
int __fastcall GJBaseGameLayer::getScaledGroundHeight(GJBaseGameLayer *this, float a2)
{
float v2; // s15
float v3; // s14
v2 = a2;
v3 = *((float *)this + 83);
if ( v3 != 1.0 )
v2 = floorf((float)(a2 / v3) / 30.0) * 30.0;
return LODWORD(v2);
}