//
// GJMGLayer::scaleGround from 0x100030864 to 0x1000308e0 (124 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::updateCameraBGArt @ 0x1002a05d8
//
// 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 10:57:30 +0000
//
float __fastcall GJMGLayer::scaleGround(float *a1, float a2)
{
__n128 v4; // q0
float v5; // s8
a1[120] = a2;
(*(void (__fastcall **)(float *))(*(_QWORD *)a1 + 128LL))(a1);
if ( (*(float (__fastcall **)(float *))(*(_QWORD *)a1 + 152LL))(a1) >= 0.0 )
v4.n128_f32[0] = a2;
else
v4.n128_f32[0] = -a2;
(*(void (__fastcall **)(float *, __n128))(*(_QWORD *)a1 + 144LL))(a1, v4);
v5 = a1[111];
sub_1000308E0(a1, 0);
return a1[111] - v5;
}