//
// GJGroundLayer::scaleGround from 0x10002fc70 to 0x10002fcf4 (132 bytes)
//
// 6 xrefs:
// > GJBaseGameLayer::preUpdateVisibility @ 0x100299888
// > GJBaseGameLayer::preUpdateVisibility @ 0x1002998a4
// > GJBaseGameLayer::resetLevelVariables @ 0x10029f3b8
// > GJBaseGameLayer::resetLevelVariables @ 0x10029f3d4
// > GJBaseGameLayer::updateCameraBGArt @ 0x1002a0784
// > GJBaseGameLayer::updateCameraBGArt @ 0x1002a0794
//
// 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 GJGroundLayer::scaleGround(float *a1, float a2)
{
__n128 v4; // q0
float v5; // s8
float v6; // s8
(*(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[113];
sub_10002FCF4(a1, 1);
v6 = a1[113] - v5;
sub_10002FE5C(a1);
return v6;
}