#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 M_PI;
float M_PI_2;
float atan(float);
float cos(float);
char floor(float);
float lash_normalizeRadians(float const);
scalar_t__ pow(float, int);
float sin(float);
float sqrt(scalar_t__);
void lash_collisionSurfaceDeflectSimple(float *objvel, float *objrad,
                                        const float surfacerad, float bounce) {
  if (bounce < 0.f)
    bounce = 0.0;
  else if (bounce > 1.f)
    bounce = 1.f;
  float resultquad;
  float direction;
  float xvel, yvel;
  float objradnormal, surfaceradnormal, objradquad, surfaceradquad, radmod;
  char surfacequadrant, objquadrant;
  objradnormal = lash_normalizeRadians(*objrad);
  surfaceradnormal = lash_normalizeRadians(surfacerad);
  radmod = 0.f;
  surfacequadrant = floor(surfaceradnormal / M_PI_2);
  objquadrant = floor(objradnormal / M_PI_2);
  objradquad = objradnormal - (objquadrant * (float)M_PI_2);
  surfaceradquad = surfaceradnormal - (surfacequadrant * (float)M_PI_2);
  if (objquadrant % 2 != surfacequadrant % 2)
    direction = surfaceradquad + (M_PI_2 - objradquad);
  else
    direction = surfaceradquad - objradquad;
  if (direction < 0.f)
    resultquad = M_PI + direction;
  else
    resultquad = M_PI - direction;
  if (direction < 0.f)
    xvel = cos(-direction) * *objvel;
  else
    xvel = cos(direction) * *objvel;
  yvel = sin(direction) * *objvel * bounce;
  if (resultquad != M_PI_2)
    radmod = atan(yvel / xvel);
  if (radmod < 0.f)
    radmod = -radmod;
  if (direction < 0.f)
    *objrad = *objrad + direction - radmod;
  else if (direction > M_PI_2)
    *objrad = *objrad - resultquad - radmod;
  else
    *objrad = *objrad + direction + radmod;
  *objvel = sqrt(pow(xvel, 2) + pow(yvel, 2));
}


x86 assembly (clang, -O0):
<lash_collisionSurfaceDeflectSimple>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movss  %xmm0,-0x14(%rbp)
movss  %xmm1,-0x18(%rbp)
xorps  %xmm0,%xmm0
ucomiss -0x18(%rbp),%xmm0
jbe    11a4 <lash_collisionSurfaceDeflectSimple+0x34>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
jmp    11cc <lash_collisionSurfaceDeflectSimple+0x5c>
movss  -0x18(%rbp),%xmm0
movss  0xe4f(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    11c7 <lash_collisionSurfaceDeflectSimple+0x57>
movss  0xe3e(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
jmp    11cc <lash_collisionSurfaceDeflectSimple+0x5c>
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
call   1070 <lash_normalizeRadians@plt>
movss  %xmm0,-0x2c(%rbp)
movss  -0x14(%rbp),%xmm0
call   1070 <lash_normalizeRadians@plt>
movss  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x3c(%rbp)
movss  -0x30(%rbp),%xmm0
mov    0x2ddf(%rip),%rax
divss  (%rax),%xmm0
call   1090 <floor@plt>
mov    %al,-0x3d(%rbp)
movss  -0x2c(%rbp),%xmm0
mov    0x2dc7(%rip),%rax
divss  (%rax),%xmm0
call   1090 <floor@plt>
mov    %al,-0x3e(%rbp)
movss  -0x2c(%rbp),%xmm1
movsbl -0x3e(%rbp),%eax
cvtsi2ss %eax,%xmm0
mov    0x2da7(%rip),%rax
movss  (%rax),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x34(%rbp)
movss  -0x30(%rbp),%xmm1
movsbl -0x3d(%rbp),%eax
cvtsi2ss %eax,%xmm0
mov    0x2d75(%rip),%rax
movss  (%rax),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x38(%rbp)
movsbl -0x3e(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %edx,-0x44(%rbp)
movsbl -0x3d(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
mov    -0x44(%rbp),%edx
cmp    %eax,%edx
je     12d4 <lash_collisionSurfaceDeflectSimple+0x164>
movss  -0x38(%rbp),%xmm0
mov    0x2d23(%rip),%rax
movss  (%rax),%xmm1
subss  -0x34(%rbp),%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
jmp    12e3 <lash_collisionSurfaceDeflectSimple+0x173>
movss  -0x38(%rbp),%xmm0
subss  -0x34(%rbp),%xmm0
movss  %xmm0,-0x20(%rbp)
xorps  %xmm0,%xmm0
ucomiss -0x20(%rbp),%xmm0
jbe    130a <lash_collisionSurfaceDeflectSimple+0x19a>
mov    0x2cf1(%rip),%rax
movss  (%rax),%xmm0
addss  -0x20(%rbp),%xmm0
movss  %xmm0,-0x1c(%rbp)
jmp    131f <lash_collisionSurfaceDeflectSimple+0x1af>
mov    0x2cd7(%rip),%rax
movss  (%rax),%xmm0
subss  -0x20(%rbp),%xmm0
movss  %xmm0,-0x1c(%rbp)
xorps  %xmm0,%xmm0
ucomiss -0x20(%rbp),%xmm0
jbe    1355 <lash_collisionSurfaceDeflectSimple+0x1e5>
movss  -0x20(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
call   1050 <cos@plt>
mov    -0x8(%rbp),%rax
mulss  (%rax),%xmm0
movss  %xmm0,-0x24(%rbp)
jmp    136c <lash_collisionSurfaceDeflectSimple+0x1fc>
movss  -0x20(%rbp),%xmm0
call   1050 <cos@plt>
mov    -0x8(%rbp),%rax
mulss  (%rax),%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x20(%rbp),%xmm0
call   1030 <sin@plt>
mov    -0x8(%rbp),%rax
mulss  (%rax),%xmm0
mulss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x1c(%rbp),%xmm0
mov    0x2c4c(%rip),%rax
ucomiss (%rax),%xmm0
jne    13a8 <lash_collisionSurfaceDeflectSimple+0x238>
jp     13a8 <lash_collisionSurfaceDeflectSimple+0x238>
jmp    13bc <lash_collisionSurfaceDeflectSimple+0x24c>
movss  -0x28(%rbp),%xmm0
divss  -0x24(%rbp),%xmm0
call   1040 <atan@plt>
movss  %xmm0,-0x3c(%rbp)
xorps  %xmm0,%xmm0
ucomiss -0x3c(%rbp),%xmm0
jbe    13e0 <lash_collisionSurfaceDeflectSimple+0x270>
movss  -0x3c(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x3c(%rbp)
xorps  %xmm0,%xmm0
ucomiss -0x20(%rbp),%xmm0
jbe    140c <lash_collisionSurfaceDeflectSimple+0x29c>
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
addss  -0x20(%rbp),%xmm0
subss  -0x3c(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
jmp    145f <lash_collisionSurfaceDeflectSimple+0x2ef>
movss  -0x20(%rbp),%xmm0
mov    0x2bc8(%rip),%rax
ucomiss (%rax),%xmm0
jbe    1440 <lash_collisionSurfaceDeflectSimple+0x2d0>
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
subss  -0x1c(%rbp),%xmm0
subss  -0x3c(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
jmp    145a <lash_collisionSurfaceDeflectSimple+0x2ea>
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
addss  -0x20(%rbp),%xmm0
addss  -0x3c(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
jmp    145f <lash_collisionSurfaceDeflectSimple+0x2ef>
movss  -0x24(%rbp),%xmm0
mov    $0x2,%edi
call   1060 <pow@plt>
mov    %rax,-0x50(%rbp)
movss  -0x28(%rbp),%xmm0
mov    $0x2,%edi
call   1060 <pow@plt>
mov    -0x50(%rbp),%rdi
add    %rax,%rdi
call   1080 <sqrt@plt>
mov    -0x8(%rbp),%rax
movss  %xmm0,(%rax)
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lash_collisionSurfaceDeflectSimple>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x48,%rsp
movss  %xmm0,0x10(%rsp)
mov    %rsi,%r15
mov    %rdi,%r14
xorps  %xmm0,%xmm0
ucomiss %xmm1,%xmm0
ja     11a3 <lash_collisionSurfaceDeflectSimple+0x33>
ucomiss 0xe6a(%rip),%xmm1
movaps %xmm1,%xmm0
jbe    11a3 <lash_collisionSurfaceDeflectSimple+0x33>
movss  0xe5d(%rip),%xmm0
movss  %xmm0,0xc(%rsp)
movss  (%r15),%xmm0
call   1070 <lash_normalizeRadians@plt>
movaps %xmm0,0x20(%rsp)
movss  0x10(%rsp),%xmm0
call   1070 <lash_normalizeRadians@plt>
movaps %xmm0,0x10(%rsp)
mov    0x2e11(%rip),%r12
divss  (%r12),%xmm0
call   1090 <floor@plt>
mov    %eax,%ebx
movaps 0x20(%rsp),%xmm0
divss  (%r12),%xmm0
call   1090 <floor@plt>
movaps 0x20(%rsp),%xmm3
movaps 0x10(%rsp),%xmm0
movsbl %al,%eax
xorps  %xmm1,%xmm1
cvtsi2ss %eax,%xmm1
movss  (%r12),%xmm2
mulss  %xmm2,%xmm1
subss  %xmm1,%xmm3
movsbl %bl,%ecx
xorps  %xmm1,%xmm1
cvtsi2ss %ecx,%xmm1
mulss  %xmm2,%xmm1
subss  %xmm1,%xmm0
mov    %eax,%edx
shr    $0x7,%dl
add    %al,%dl
and    $0xfe,%dl
sub    %dl,%al
mov    %ecx,%edx
shr    $0x7,%dl
add    %cl,%dl
and    $0xfe,%dl
sub    %dl,%cl
movaps 0xdd1(%rip),%xmm1
cmp    %cl,%al
je     124c <lash_collisionSurfaceDeflectSimple+0xdc>
subss  %xmm3,%xmm2
movaps %xmm2,%xmm3
jmp    124f <lash_collisionSurfaceDeflectSimple+0xdf>
xorps  %xmm1,%xmm3
addss  %xmm3,%xmm0
xorps  %xmm2,%xmm2
ucomiss %xmm0,%xmm2
mov    0x2d88(%rip),%rax
xorps  %xmm0,%xmm1
movaps %xmm0,%xmm3
cmpltss %xmm2,%xmm3
movaps %xmm3,%xmm2
andps  %xmm0,%xmm2
andnps %xmm1,%xmm3
orps   %xmm2,%xmm3
addss  (%rax),%xmm3
movaps %xmm3,0x30(%rsp)
movaps %xmm0,0x10(%rsp)
call   1050 <cos@plt>
mulss  (%r14),%xmm0
movss  %xmm0,0x20(%rsp)
movaps 0x10(%rsp),%xmm0
call   1030 <sin@plt>
mulss  (%r14),%xmm0
movss  0xc(%rsp),%xmm1
mulss  %xmm0,%xmm1
xorps  %xmm5,%xmm5
movaps 0x30(%rsp),%xmm0
ucomiss (%r12),%xmm0
xorps  %xmm0,%xmm0
movss  %xmm1,0xc(%rsp)
jne    12c8 <lash_collisionSurfaceDeflectSimple+0x158>
jnp    12d9 <lash_collisionSurfaceDeflectSimple+0x169>
movaps %xmm1,%xmm0
divss  0x20(%rsp),%xmm0
call   1040 <atan@plt>
xorps  %xmm5,%xmm5
movss  0x20(%rsp),%xmm4
movaps 0x10(%rsp),%xmm3
ucomiss %xmm3,%xmm5
movaps 0xd22(%rip),%xmm2
xorps  %xmm0,%xmm2
movaps %xmm0,%xmm1
cmpltss %xmm5,%xmm1
andps  %xmm1,%xmm2
andnps %xmm0,%xmm1
orps   %xmm2,%xmm1
jbe    130f <lash_collisionSurfaceDeflectSimple+0x19f>
addss  (%r15),%xmm3
subss  %xmm1,%xmm3
jmp    1332 <lash_collisionSurfaceDeflectSimple+0x1c2>
ucomiss (%r12),%xmm3
movss  (%r15),%xmm0
jbe    132a <lash_collisionSurfaceDeflectSimple+0x1ba>
subss  0x30(%rsp),%xmm0
subss  %xmm1,%xmm0
movaps %xmm0,%xmm3
jmp    1332 <lash_collisionSurfaceDeflectSimple+0x1c2>
addss  %xmm0,%xmm3
addss  %xmm1,%xmm3
movss  %xmm3,(%r15)
movaps %xmm4,%xmm0
mov    $0x2,%edi
call   1060 <pow@plt>
mov    %rax,%rbx
movss  0xc(%rsp),%xmm0
mov    $0x2,%edi
call   1060 <pow@plt>
add    %rax,%rbx
mov    %rbx,%rdi
call   1080 <sqrt@plt>
movss  %xmm0,(%r14)
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@M_PI_2 = global float 0.000000e+00
@M_PI = global float 0.000000e+00
define void @lash_collisionSurfaceDeflectSimple(float* nocapture %0, float* nocapture %1, float %2, float %3) {
%5 = fcmp olt float %3, 0.000000e+00
br i1 %5, label %9, label %6
6: ; preds = %4
%7 = fcmp ogt float %3, 1.000000e+00
br i1 %7, label %8, label %9
8: ; preds = %6
br label %9
9: ; preds = %4, %6, %8
%10 = phi float [ 1.000000e+00, %8 ], [ %3, %6 ], [ 0.000000e+00, %4 ]
%11 = load float, float* %1
%12 = tail call float @lash_normalizeRadians(float %11)
%13 = tail call float @lash_normalizeRadians(float %2)
%14 = load float, float* @M_PI_2
%15 = fdiv float %13, %14
%16 = tail call signext i8 @floor(float %15)
%17 = load float, float* @M_PI_2
%18 = fdiv float %12, %17
%19 = tail call signext i8 @floor(float %18)
%20 = sitofp i8 %19 to float
%21 = load float, float* @M_PI_2
%22 = fneg float %20
%23 = tail call float @llvm.fmuladd.f32(float %22, float %21, float %12)
%24 = sitofp i8 %16 to float
%25 = fneg float %24
%26 = tail call float @llvm.fmuladd.f32(float %25, float %21, float %13)
%27 = srem i8 %19, 2
%28 = srem i8 %16, 2
%29 = icmp eq i8 %27, %28
%30 = fsub float %21, %23
%31 = fneg float %23
%32 = select i1 %29, float %31, float %30
%33 = fadd float %26, %32
%34 = fcmp olt float %33, 0.000000e+00
%35 = load float, float* @M_PI
%36 = fneg float %33
%37 = select i1 %34, float %33, float %36
%38 = fadd float %35, %37
br i1 %34, label %39, label %41
39: ; preds = %9
%40 = tail call float @cos(float %33)
br label %43
41: ; preds = %9
%42 = tail call float @cos(float %33)
br label %43
43: ; preds = %41, %39
%44 = phi float [ %42, %41 ], [ %40, %39 ]
%45 = load float, float* %0
%46 = fmul float %44, %45
%47 = tail call float @sin(float %33)
%48 = load float, float* %0
%49 = fmul float %47, %48
%50 = fmul float %10, %49
%51 = load float, float* @M_PI_2
%52 = fcmp une float %38, %51
br i1 %52, label %53, label %56
53: ; preds = %43
%54 = fdiv float %50, %46
%55 = tail call float @atan(float %54)
br label %56
56: ; preds = %53, %43
%57 = phi float [ %55, %53 ], [ 0.000000e+00, %43 ]
%58 = fcmp olt float %57, 0.000000e+00
%59 = fneg float %57
%60 = select i1 %58, float %59, float %57
br i1 %34, label %61, label %65
61: ; preds = %56
%62 = load float, float* %1
%63 = fadd float %33, %62
%64 = fsub float %63, %60
br label %75
65: ; preds = %56
%66 = load float, float* @M_PI_2
%67 = fcmp ogt float %33, %66
%68 = load float, float* %1
br i1 %67, label %69, label %72
69: ; preds = %65
%70 = fsub float %68, %38
%71 = fsub float %70, %60
br label %75
72: ; preds = %65
%73 = fadd float %33, %68
%74 = fadd float %60, %73
br label %75
75: ; preds = %69, %72, %61
%76 = phi float [ %71, %69 ], [ %74, %72 ], [ %64, %61 ]
store float %76, float* %1
%77 = tail call i64 @pow(float %46, i32 2)
%78 = tail call i64 @pow(float %50, i32 2)
%79 = add nsw i64 %78, %77
%80 = tail call float @sqrt(i64 %79)
store float %80, float* %0
ret void
}