//
// sub_C9F290 from 0xc9f290 to 0xc9f304 (116 bytes)
//
// 2 xrefs:
// > WebPPictureDistortion @ 0xcabcf8
// > WebPPictureDistortion @ 0xcabd40
//
// 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
//
double __fastcall sub_C9F290(double *a1)
{
double v1; // d1
double result; // d0
if ( *a1 <= 0.0 )
return 1.0e-10;
v1 = *a1;
result = (-(a1[2] * a1[2] - v1 * a1[5]) - (a1[1] * a1[1] - v1 * a1[3]) - -(a1[1] * a1[2] - v1 * a1[4]) * 2.0)
* (1.0
/ (v1
* v1));
if ( result <= 1.0e-10 )
return 1.0e-10;
return result;
}