#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
float atan2(int /*<<< orphan*/, float);
float cos(float);
int fabs(float);
float sin(float);
int /*<<< orphan*/ sqrt(int);
void dist_az(float *dist, float *azimuth, float lat, float lon, float dxlat,
             float dxlon) {
  float sin_dxl, cos_dxl;
  float sin_lat, cos_lat;
  float t1, t2, t3;
  cos_dxl = cos(3.1415926535897932 * dxlat / 180);
  sin_dxl = sin(3.1415926535897932 * dxlat / 180);
  cos_lat = cos(3.1415926535897932 * lat / 180);
  sin_lat = sin(3.1415926535897932 * lat / 180);
  t1 = 3.1415926535897932 * (lon - dxlon) / 180;
  t2 = sin_dxl * sin_lat + cos_dxl * cos_lat * cos(t1);
  if (fabs(t2) > 1)
    t2 = 1;
  t2 = atan2(sqrt(1 - t2 * t2), t2);
  dist[0] = t2 * 6366;
  if (dist[0] < 5) {
    dist[0] = 0;
    azimuth[0] = 0;
    return;
  }
  if (t1 < -3.1415926535897932)
    t1 += 2 * 3.1415926535897932;
  if (t1 > 3.1415926535897932)
    t1 -= 2 * 3.1415926535897932;
  t3 = (sin_dxl - sin_lat * cos(t2)) / (cos_lat * sin(t2));
  if (fabs(t3) > 1)
    t3 = 1;
  azimuth[0] = atan2(sqrt(1 - t3 * t3), t3);
  if (t1 == 0) {
    if (dxlat < lat) {
      azimuth[0] = 3.1415926535897932;
    } else {
      azimuth[0] = 2 * 3.1415926535897932;
    }
  } else {
    if (t1 > 0)
      azimuth[0] = 2 * 3.1415926535897932 - azimuth[0];
  }
}


x86 assembly (clang, -O0):
<dist_az>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movss  %xmm0,-0x14(%rbp)
movss  %xmm1,-0x18(%rbp)
movss  %xmm2,-0x1c(%rbp)
movss  %xmm3,-0x20(%rbp)
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe83(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xe6f(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1060 <cos@plt>
movss  %xmm0,-0x28(%rbp)
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe54(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xe40(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1050 <sin@plt>
movss  %xmm0,-0x24(%rbp)
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe25(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xe11(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1060 <cos@plt>
movss  %xmm0,-0x30(%rbp)
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xdf6(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xde2(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1050 <sin@plt>
movss  %xmm0,-0x2c(%rbp)
movss  -0x18(%rbp),%xmm0
subss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xdc2(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xdae(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x34(%rbp)
movss  -0x24(%rbp),%xmm0
movss  %xmm0,-0x40(%rbp)
movss  -0x2c(%rbp),%xmm0
movss  %xmm0,-0x44(%rbp)
movss  -0x28(%rbp),%xmm0
mulss  -0x30(%rbp),%xmm0
movss  %xmm0,-0x48(%rbp)
movss  -0x34(%rbp),%xmm0
call   1060 <cos@plt>
movss  -0x48(%rbp),%xmm1
movss  -0x44(%rbp),%xmm2
movaps %xmm0,%xmm3
movss  -0x40(%rbp),%xmm0
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x38(%rbp)
movss  -0x38(%rbp),%xmm0
call   1040 <fabs@plt>
cmp    $0x1,%eax
jle    12cf <dist_az+0x17f>
movss  0xd56(%rip),%xmm0
movss  %xmm0,-0x38(%rbp)
movss  -0x38(%rbp),%xmm0
movss  -0x38(%rbp),%xmm1
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm1,%xmm0
movss  0xd2e(%rip),%xmm1
addss  %xmm1,%xmm0
cvttss2si %xmm0,%edi
call   1070 <sqrt@plt>
mov    %eax,%edi
movss  -0x38(%rbp),%xmm0
call   1030 <atan2@plt>
movss  %xmm0,-0x38(%rbp)
movss  0xd10(%rip),%xmm0
mulss  -0x38(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movss  0xcf3(%rip),%xmm0
ucomiss (%rax),%xmm0
jbe    1355 <dist_az+0x205>
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax)
jmp    152c <dist_az+0x3dc>
movss  -0x34(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xcaa(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    138e <dist_az+0x23e>
movss  -0x34(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc97(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x34(%rbp)
movss  -0x34(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc69(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    13c7 <dist_az+0x277>
movss  -0x34(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc5e(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x34(%rbp)
movss  -0x24(%rbp),%xmm0
movss  %xmm0,-0x58(%rbp)
movss  -0x2c(%rbp),%xmm0
movss  %xmm0,-0x54(%rbp)
movss  -0x38(%rbp),%xmm0
call   1060 <cos@plt>
movss  -0x58(%rbp),%xmm1
movaps %xmm0,%xmm2
movss  -0x54(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x4c(%rbp)
movss  -0x30(%rbp),%xmm0
movss  %xmm0,-0x50(%rbp)
movss  -0x38(%rbp),%xmm0
call   1050 <sin@plt>
movss  -0x50(%rbp),%xmm1
movaps %xmm0,%xmm2
movss  -0x4c(%rbp),%xmm0
mulss  %xmm2,%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x3c(%rbp)
movss  -0x3c(%rbp),%xmm0
call   1040 <fabs@plt>
cmp    $0x1,%eax
jle    145a <dist_az+0x30a>
movss  0xbcb(%rip),%xmm0
movss  %xmm0,-0x3c(%rbp)
movss  -0x3c(%rbp),%xmm0
movss  -0x3c(%rbp),%xmm1
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm1,%xmm0
movss  0xba3(%rip),%xmm1
addss  %xmm1,%xmm0
cvttss2si %xmm0,%edi
call   1070 <sqrt@plt>
mov    %eax,%edi
movss  -0x3c(%rbp),%xmm0
call   1030 <atan2@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0x34(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    14f2 <dist_az+0x3a2>
jp     14f2 <dist_az+0x3a2>
movss  -0x1c(%rbp),%xmm1
movss  -0x14(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    14dd <dist_az+0x38d>
mov    -0x10(%rbp),%rax
movss  0xb5c(%rip),%xmm0
movss  %xmm0,(%rax)
jmp    14ed <dist_az+0x39d>
mov    -0x10(%rbp),%rax
movss  0xb43(%rip),%xmm0
movss  %xmm0,(%rax)
jmp    152c <dist_az+0x3dc>
movss  -0x34(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    1527 <dist_az+0x3d7>
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xb01(%rip),%xmm0
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
jmp    152c <dist_az+0x3dc>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dist_az>:
push   %r14
push   %rbx
sub    $0x28,%rsp
movss  %xmm3,0x10(%rsp)
movss  %xmm1,0x24(%rsp)
movss  %xmm0,0x18(%rsp)
mov    %rsi,%r14
mov    %rdi,%rbx
movss  %xmm2,0x20(%rsp)
xorps  %xmm0,%xmm0
cvtss2sd %xmm2,%xmm0
mulsd  0xe7c(%rip),%xmm0
divsd  0xe7c(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x8(%rsp)
call   1060 <cos@plt>
movss  %xmm0,0xc(%rsp)
movss  0x8(%rsp),%xmm0
call   1050 <sin@plt>
movss  %xmm0,0x8(%rsp)
movss  0x18(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0xe3c(%rip),%xmm0
divsd  0xe3c(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x14(%rsp)
call   1060 <cos@plt>
movss  %xmm0,0x1c(%rsp)
movss  0x14(%rsp),%xmm0
call   1050 <sin@plt>
movss  %xmm0,0x14(%rsp)
movss  0x24(%rsp),%xmm0
subss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0xdf6(%rip),%xmm0
divsd  0xdf6(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  0xc(%rsp),%xmm1
mulss  0x1c(%rsp),%xmm1
movss  %xmm1,0xc(%rsp)
movss  %xmm0,0x10(%rsp)
call   1060 <cos@plt>
mulss  0xc(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
mulss  0x14(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
movaps %xmm1,%xmm0
call   1040 <fabs@plt>
movss  0xdd1(%rip),%xmm0
movaps %xmm0,%xmm1
cmp    $0x2,%eax
jge    126d <dist_az+0x11d>
movss  0xc(%rsp),%xmm1
movss  %xmm1,0xc(%rsp)
mulss  %xmm1,%xmm1
subss  %xmm1,%xmm0
cvttss2si %xmm0,%edi
call   1070 <sqrt@plt>
mov    %eax,%edi
movss  0xc(%rsp),%xmm0
call   1030 <atan2@plt>
movaps %xmm0,%xmm3
movss  0xd98(%rip),%xmm0
mulss  %xmm3,%xmm0
movss  %xmm0,(%rbx)
movss  0xd8c(%rip),%xmm1
ucomiss %xmm0,%xmm1
jbe    12bf <dist_az+0x16f>
movl   $0x0,(%rbx)
xorps  %xmm0,%xmm0
jmp    13ec <dist_az+0x29c>
movss  0x10(%rsp),%xmm2
xorps  %xmm0,%xmm0
cvtss2sd %xmm2,%xmm0
movsd  0xd3c(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    12e9 <dist_az+0x199>
addsd  0xd36(%rip),%xmm0
xorps  %xmm2,%xmm2
cvtsd2ss %xmm0,%xmm2
xorps  %xmm0,%xmm0
cvtss2sd %xmm2,%xmm0
ucomisd 0xd08(%rip),%xmm0
ja     1302 <dist_az+0x1b2>
movss  %xmm2,0x10(%rsp)
jmp    1314 <dist_az+0x1c4>
addsd  0xd16(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x10(%rsp)
movaps %xmm3,%xmm0
movss  %xmm3,0xc(%rsp)
call   1060 <cos@plt>
movss  0x14(%rsp),%xmm1
mulss  %xmm0,%xmm1
movss  0x8(%rsp),%xmm0
subss  %xmm1,%xmm0
movss  %xmm0,0x8(%rsp)
movss  0xc(%rsp),%xmm0
call   1050 <sin@plt>
movss  0x1c(%rsp),%xmm1
mulss  %xmm0,%xmm1
movss  0x8(%rsp),%xmm0
divss  %xmm1,%xmm0
movss  %xmm0,0x8(%rsp)
call   1040 <fabs@plt>
movss  0xcc2(%rip),%xmm0
movaps %xmm0,%xmm1
cmp    $0x2,%eax
jge    137c <dist_az+0x22c>
movss  0x8(%rsp),%xmm1
movss  %xmm1,0x8(%rsp)
mulss  %xmm1,%xmm1
subss  %xmm1,%xmm0
cvttss2si %xmm0,%edi
call   1070 <sqrt@plt>
mov    %eax,%edi
movss  0x8(%rsp),%xmm0
call   1030 <atan2@plt>
movss  %xmm0,(%r14)
xorps  %xmm1,%xmm1
movss  0x10(%rsp),%xmm2
ucomiss %xmm1,%xmm2
jne    13d3 <dist_az+0x283>
jp     13d3 <dist_az+0x283>
xor    %eax,%eax
movss  0x18(%rsp),%xmm0
ucomiss 0x20(%rsp),%xmm0
seta   %al
lea    0xc5c(%rip),%rcx
movss  (%rcx,%rax,4),%xmm0
jmp    13ec <dist_az+0x29c>
jbe    13f1 <dist_az+0x2a1>
cvtss2sd %xmm0,%xmm0
movsd  0xc37(%rip),%xmm1
subsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movss  %xmm0,(%r14)
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @dist_az(float* %0, float* %1, float %2, float %3, float %4, float %5) {
%7 = alloca float*
%8 = alloca float*
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca float
%17 = alloca float
%18 = alloca float
%19 = alloca float
store float* %0, float** %7
store float* %1, float** %8
store float %2, float* %9
store float %3, float* %10
store float %4, float* %11
store float %5, float* %12
%20 = load float, float* %11
%21 = fpext float %20 to double
%22 = fmul double 0x400921FB54442D18, %21
%23 = fdiv double %22, 1.800000e+02
%24 = fptrunc double %23 to float
%25 = call float @cos(float %24)
store float %25, float* %14
%26 = load float, float* %11
%27 = fpext float %26 to double
%28 = fmul double 0x400921FB54442D18, %27
%29 = fdiv double %28, 1.800000e+02
%30 = fptrunc double %29 to float
%31 = call float @sin(float %30)
store float %31, float* %13
%32 = load float, float* %9
%33 = fpext float %32 to double
%34 = fmul double 0x400921FB54442D18, %33
%35 = fdiv double %34, 1.800000e+02
%36 = fptrunc double %35 to float
%37 = call float @cos(float %36)
store float %37, float* %16
%38 = load float, float* %9
%39 = fpext float %38 to double
%40 = fmul double 0x400921FB54442D18, %39
%41 = fdiv double %40, 1.800000e+02
%42 = fptrunc double %41 to float
%43 = call float @sin(float %42)
store float %43, float* %15
%44 = load float, float* %10
%45 = load float, float* %12
%46 = fsub float %44, %45
%47 = fpext float %46 to double
%48 = fmul double 0x400921FB54442D18, %47
%49 = fdiv double %48, 1.800000e+02
%50 = fptrunc double %49 to float
store float %50, float* %17
%51 = load float, float* %13
%52 = load float, float* %15
%53 = load float, float* %14
%54 = load float, float* %16
%55 = fmul float %53, %54
%56 = load float, float* %17
%57 = call float @cos(float %56)
%58 = fmul float %55, %57
%59 = call float @llvm.fmuladd.f32(float %51, float %52, float %58)
store float %59, float* %18
%60 = load float, float* %18
%61 = call i32 @fabs(float %60)
%62 = icmp sgt i32 %61, 1
br i1 %62, label %63, label %64
63: ; preds = %6
store float 1.000000e+00, float* %18
br label %64
64: ; preds = %63, %6
%65 = load float, float* %18
%66 = load float, float* %18
%67 = fneg float %65
%68 = call float @llvm.fmuladd.f32(float %67, float %66, float 1.000000e+00)
%69 = fptosi float %68 to i32
%70 = call i32 @sqrt(i32 %69)
%71 = load float, float* %18
%72 = call float @atan2(i32 %70, float %71)
store float %72, float* %18
%73 = load float, float* %18
%74 = fmul float %73, 6.366000e+03
%75 = load float*, float** %7
%76 = getelementptr inbounds float, float* %75, i64 0
store float %74, float* %76
%77 = load float*, float** %7
%78 = getelementptr inbounds float, float* %77, i64 0
%79 = load float, float* %78
%80 = fcmp olt float %79, 5.000000e+00
br i1 %80, label %81, label %86
81: ; preds = %64
%82 = load float*, float** %7
%83 = getelementptr inbounds float, float* %82, i64 0
store float 0.000000e+00, float* %83
%84 = load float*, float** %8
%85 = getelementptr inbounds float, float* %84, i64 0
store float 0.000000e+00, float* %85
br label %157
86: ; preds = %64
%87 = load float, float* %17
%88 = fpext float %87 to double
%89 = fcmp olt double %88, 0xC00921FB54442D18
br i1 %89, label %90, label %95
90: ; preds = %86
%91 = load float, float* %17
%92 = fpext float %91 to double
%93 = fadd double %92, 0x401921FB54442D18
%94 = fptrunc double %93 to float
store float %94, float* %17
br label %95
95: ; preds = %90, %86
%96 = load float, float* %17
%97 = fpext float %96 to double
%98 = fcmp ogt double %97, 0x400921FB54442D18
br i1 %98, label %99, label %104
99: ; preds = %95
%100 = load float, float* %17
%101 = fpext float %100 to double
%102 = fsub double %101, 0x401921FB54442D18
%103 = fptrunc double %102 to float
store float %103, float* %17
br label %104
104: ; preds = %99, %95
%105 = load float, float* %13
%106 = load float, float* %15
%107 = load float, float* %18
%108 = call float @cos(float %107)
%109 = fneg float %106
%110 = call float @llvm.fmuladd.f32(float %109, float %108, float %105)
%111 = load float, float* %16
%112 = load float, float* %18
%113 = call float @sin(float %112)
%114 = fmul float %111, %113
%115 = fdiv float %110, %114
store float %115, float* %19
%116 = load float, float* %19
%117 = call i32 @fabs(float %116)
%118 = icmp sgt i32 %117, 1
br i1 %118, label %119, label %120
119: ; preds = %104
store float 1.000000e+00, float* %19
br label %120
120: ; preds = %119, %104
%121 = load float, float* %19
%122 = load float, float* %19
%123 = fneg float %121
%124 = call float @llvm.fmuladd.f32(float %123, float %122, float 1.000000e+00)
%125 = fptosi float %124 to i32
%126 = call i32 @sqrt(i32 %125)
%127 = load float, float* %19
%128 = call float @atan2(i32 %126, float %127)
%129 = load float*, float** %8
%130 = getelementptr inbounds float, float* %129, i64 0
store float %128, float* %130
%131 = load float, float* %17
%132 = fcmp oeq float %131, 0.000000e+00
br i1 %132, label %133, label %144
133: ; preds = %120
%134 = load float, float* %11
%135 = load float, float* %9
%136 = fcmp olt float %134, %135
br i1 %136, label %137, label %140
137: ; preds = %133
%138 = load float*, float** %8
%139 = getelementptr inbounds float, float* %138, i64 0
store float 0x400921FB60000000, float* %139
br label %143
140: ; preds = %133
%141 = load float*, float** %8
%142 = getelementptr inbounds float, float* %141, i64 0
store float 0x401921FB60000000, float* %142
br label %143
143: ; preds = %140, %137
br label %157
144: ; preds = %120
%145 = load float, float* %17
%146 = fcmp ogt float %145, 0.000000e+00
br i1 %146, label %147, label %156
147: ; preds = %144
%148 = load float*, float** %8
%149 = getelementptr inbounds float, float* %148, i64 0
%150 = load float, float* %149
%151 = fpext float %150 to double
%152 = fsub double 0x401921FB54442D18, %151
%153 = fptrunc double %152 to float
%154 = load float*, float** %8
%155 = getelementptr inbounds float, float* %154, i64 0
store float %153, float* %155
br label %156
156: ; preds = %147, %144
br label %157
157: ; preds = %81, %156, %143
ret void
}

LLVM IR (-O2):
define void @dist_az(float* nocapture writeonly %0, float* nocapture writeonly %1, float %2, float %3, float %4, float %5) {
%7 = fpext float %4 to double
%8 = fmul double %7, 0x400921FB54442D18
%9 = fdiv double %8, 1.800000e+02
%10 = fptrunc double %9 to float
%11 = tail call float @cos(float %10)
%12 = tail call float @sin(float %10)
%13 = fpext float %2 to double
%14 = fmul double %13, 0x400921FB54442D18
%15 = fdiv double %14, 1.800000e+02
%16 = fptrunc double %15 to float
%17 = tail call float @cos(float %16)
%18 = tail call float @sin(float %16)
%19 = fsub float %3, %5
%20 = fpext float %19 to double
%21 = fmul double %20, 0x400921FB54442D18
%22 = fdiv double %21, 1.800000e+02
%23 = fptrunc double %22 to float
%24 = fmul float %11, %17
%25 = tail call float @cos(float %23)
%26 = fmul float %24, %25
%27 = tail call float @llvm.fmuladd.f32(float %12, float %18, float %26)
%28 = tail call i32 @fabs(float %27)
%29 = icmp sgt i32 %28, 1
%30 = select i1 %29, float 1.000000e+00, float %27
%31 = fneg float %30
%32 = tail call float @llvm.fmuladd.f32(float %31, float %30, float 1.000000e+00)
%33 = fptosi float %32 to i32
%34 = tail call i32 @sqrt(i32 %33)
%35 = tail call float @atan2(i32 %34, float %30)
%36 = fmul float %35, 6.366000e+03
store float %36, float* %0
%37 = fcmp olt float %36, 5.000000e+00
br i1 %37, label %38, label %39
38: ; preds = %6
store float 0.000000e+00, float* %0
br label %74
39: ; preds = %6
%40 = fpext float %23 to double
%41 = fcmp olt double %40, 0xC00921FB54442D18
%42 = fadd double %40, 0x401921FB54442D18
%43 = fptrunc double %42 to float
%44 = select i1 %41, float %43, float %23
%45 = fpext float %44 to double
%46 = fcmp ogt double %45, 0x400921FB54442D18
%47 = fadd double %45, 0xC01921FB54442D18
%48 = fptrunc double %47 to float
%49 = select i1 %46, float %48, float %44
%50 = tail call float @cos(float %35)
%51 = fneg float %18
%52 = tail call float @llvm.fmuladd.f32(float %51, float %50, float %12)
%53 = tail call float @sin(float %35)
%54 = fmul float %17, %53
%55 = fdiv float %52, %54
%56 = tail call i32 @fabs(float %55)
%57 = icmp sgt i32 %56, 1
%58 = select i1 %57, float 1.000000e+00, float %55
%59 = fneg float %58
%60 = tail call float @llvm.fmuladd.f32(float %59, float %58, float 1.000000e+00)
%61 = fptosi float %60 to i32
%62 = tail call i32 @sqrt(i32 %61)
%63 = tail call float @atan2(i32 %62, float %58)
store float %63, float* %1
%64 = fcmp oeq float %49, 0.000000e+00
br i1 %64, label %65, label %68
65: ; preds = %39
%66 = fcmp olt float %4, %2
%67 = select i1 %66, float 0x400921FB60000000, float 0x401921FB60000000
br label %74
68: ; preds = %39
%69 = fcmp ogt float %49, 0.000000e+00
br i1 %69, label %70, label %76
70: ; preds = %68
%71 = fpext float %63 to double
%72 = fsub double 0x401921FB54442D18, %71
%73 = fptrunc double %72 to float
br label %74
74: ; preds = %65, %38, %70
%75 = phi float [ %73, %70 ], [ 0.000000e+00, %38 ], [ %67, %65 ]
store float %75, float* %1
br label %76
76: ; preds = %74, %68
ret void
}