//
// sub_1005B315C from 0x1005b315c to 0x1005b3180 (36 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009ab720
//
// 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 11:09:11 +0000
//
float __fastcall sub_1005B315C(float a1)
{
float v1; // s3
float v2; // s0
v1 = (float)(a1 * 2.0) + -1.0;
v2 = -v1;
if ( v1 >= 0.0 )
v2 = v1;
return 1.0 - v2;
}