//
// sub_F15450 from 0xf15450 to 0xf154c4 (116 bytes)
//
// 2 xrefs:
// > WebPPictureDistortion @ 0xf21eb8
// > WebPPictureDistortion @ 0xf21f00
//
// 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 13:12:31 +0000
//
double __fastcall sub_F15450(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;
}