//
// sub_100010F34 from 0x100010f34 to 0x100011010 (220 bytes)
//
// 1 xrefs:
// > sub_100011010 @ 0x100011278
//
// 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 10:57:16 +0000
//
double __fastcall sub_100010F34(double *a1, double *a2, double *a3, double *a4)
{
double result; // d0
double v5; // d1
double v6; // d2
double v7; // d1
result = *a3;
v5 = *a4;
v6 = vabdd_f64(*a3, *a4);
if ( v6 > 179.999 && v6 < 180.001 )
{
if ( fabs(result) <= fabs(v5) )
{
*a4 = v5 + dbl_10075BDF0[v5 > 0.0];
a2 = a1;
}
else
{
*a3 = result + dbl_10075BDF0[result > 0.0];
}
goto LABEL_9;
}
if ( *a1 < 0.0 && *a2 < 0.0 )
{
v7 = dbl_10075BDF0[result > 0.0];
*a3 = result + v7;
*a4 = *a4 + v7;
*a1 = -*a1;
LABEL_9:
result = -*a2;
*a2 = result;
}
return result;
}