//
// GJBaseGameLayer::updateBGArtSpeed from 0x596724 to 0x596762 (62 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::activateTriggerEffect @ 0x467bfe
// > LevelEditorLayer::updateEditor @ 0x473240
// > EffectGameObject::triggerObject @ 0x4f539a
// > GJBaseGameLayer::resetLevelVariables @ 0x5b9518
//
// 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:09 +0000
//
int __fastcall GJBaseGameLayer::updateBGArtSpeed(int this, float a2, float a3)
{
float v3; // s14
float v4; // s11
float v5; // s15
bool v6; // fzf
bool v7; // fnf
float v8; // s11
v3 = a2;
v4 = fabsf(a2);
v5 = a3;
v6 = v4 == 999.0;
v7 = v4 < 999.0;
v8 = fabsf(a3);
if ( !v7 && !v6 )
v3 = 0.1;
if ( v8 > 999.0 )
v5 = 0.1;
*(float *)(this + 692) = v3;
*(float *)(this + 696) = v5;
return this;
}