//
// sub_C62AC from 0xc62ac to 0xc6318 (108 bytes)
//
// 2 xrefs:
// > sub_C60F4 @ 0xc61ac
// > sub_C68BC @ 0xc6a60
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
float __fastcall sub_C62AC(float *a1)
{
float v1; // s3
float v2; // s0
float v3; // s5
float v4; // s1
float v5; // s0
float v6; // s3
float v7; // s2
float v8; // s5
float v9; // s0
float v10; // s2
float v11; // s1
float result; // s0
v1 = a1[140];
v2 = a1[139] * 0.5;
v3 = v2 + 0.5;
v4 = v3 - (float)(v1 * v3);
v5 = (float)(0.5 - v2) * v1;
v6 = v5 + v3;
v7 = 1.0 - a1[141];
v8 = fminf(v4, v3 - v4) * v7;
v9 = fminf(v5, 1.0 - v6) * v7;
v10 = v4 - v8;
a1[146] = v8 + v4;
v11 = v6 - v9;
result = v9 + v6;
a1[145] = v10;
a1[147] = v11;
a1[148] = result;
return result;
}