//
// sub_931040 from 0x931040 to 0x9310b6 (118 bytes)
//
// 1 xrefs:
// > WebPPictureDistortion @ 0x93af38
//
// 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 12:04:53 +0000
//
__int64 __fastcall sub_931040(double *a1)
{
double v1; // d19
double v2; // d16
double v3; // d18
double v4; // d16
if ( *a1 <= 0.0 )
return 0x3DDB7CDFD9D7BDBBLL;
v2 = a1[1];
v3 = a1[2];
v1 = *a1;
v4 = (v1 * a1[3] - v2 * v2 + v1 * a1[5] - v3 * v3 - (v1 * a1[4] - v2 * v3 + v1 * a1[4] - v2 * v3)) * (1.0 / (v1 * v1));
if ( v4 > 1.0e-10 )
return *(_QWORD *)&v4;
else
return 0x3DDB7CDFD9D7BDBBLL;
}