source_filename = "test"
target datalayout = "e-p:32:32-f64:32:64-f80:32-n8:16:32-S128"

@eax = internal unnamed_addr global i32 0, align 8
@ecx = internal unnamed_addr global i32 0, align 8
@edx = internal unnamed_addr global i32 0, align 8

define i32 @function_0(i32 %arg1) local_unnamed_addr {
dec_label_pc_0:
  %ebx.global-to-local = alloca i32, align 4
  %esi.global-to-local = alloca i32, align 4
  %fpsw.global-to-local = alloca i32, align 4
  %fpu_stat_TOP.global-to-local = alloca i3, align 1
  %st0.global-to-local = alloca x86_fp80, align 4
  %st5.global-to-local = alloca x86_fp80, align 4
  %st6.global-to-local = alloca x86_fp80, align 4
  %st7.global-to-local = alloca x86_fp80, align 4
  %v0_3 = load i32, i32* %esi.global-to-local, align 4
  %v0_4 = load i32, i32* %ebx.global-to-local, align 4
  store i32 %arg1, i32* %esi.global-to-local, align 4
  %v0_8 = load i32, i32* @eax, align 8
  store i32 %v0_8, i32* %ebx.global-to-local, align 4
  %v1_a = add i32 %arg1, 48
  %v2_a = inttoptr i32 %v1_a to i32*
  %v3_a = load i32, i32* %v2_a, align 4
  store i32 %v3_a, i32* %esi.global-to-local, align 4
  %v0_d = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v1_d = load i32, i32* @ecx, align 8
  %v2_d = add i32 %v1_d, 8
  %v3_d = inttoptr i32 %v2_d to double*
  %v4_d = load double, double* %v3_d, align 4
  %v5_d = fpext double %v4_d to x86_fp80
  %v3_10 = fmul x86_fp80 %v5_d, %v5_d
  %v3_12 = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_12 = fpext double %v3_12 to x86_fp80
  %v5_12 = add i3 %v0_d, -2
  %v3_14 = fmul x86_fp80 %v4_12, %v4_12
  %v4_16 = fadd x86_fp80 %v3_10, %v3_14
  %v3_18 = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_18 = fpext double %v3_18 to x86_fp80
  %v3_1a = fmul x86_fp80 %v4_18, %v4_18
  %v4_1c = fadd x86_fp80 %v3_1a, %v4_16
  %v2_1e = call x86_fp80 @llvm.sqrt.f80(x86_fp80 %v4_1c)
  store x86_fp80 %v2_1e, x86_fp80* %st7.global-to-local, align 4
  store i3 %v5_12, i3* %fpu_stat_TOP.global-to-local, align 1
  store x86_fp80 %v2_1e, x86_fp80* %st6.global-to-local, align 4
  %v0_24 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_24 = call i16 @__asm_fnstsw(i32 %v0_24)
  %v2_24 = sext i16 %v1_24 to i32
  %v3_24 = load i32, i32* @eax, align 8
  %v4_24 = and i32 %v3_24, -65536
  %v5_24 = or i32 %v4_24, %v2_24
  store i32 %v5_24, i32* @eax, align 8
  %v9_288 = and i32 %v2_24, 16384
  %v10_28 = icmp eq i32 %v9_288, 0
  %v0_29 = load x86_fp80, x86_fp80* %st0.global-to-local, align 4
  call void @__asm_ffree(x86_fp80 %v0_29)
  %v0_2b = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v1_2b = add i3 %v0_2b, 1
  store i3 %v1_2b, i3* %fpu_stat_TOP.global-to-local, align 1
  br i1 %v10_28, label %dec_label_pc_2f, label %dec_label_pc_80

dec_label_pc_2f:                                  ; preds = %dec_label_pc_0
  %v1_81 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  store x86_fp80 %v1_81, x86_fp80* %st6.global-to-local, align 4
  %v3_31 = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_31 = fpext double %v3_31 to x86_fp80
  %v5_31 = add i3 %v0_2b, -1
  store i3 %v5_31, i3* %fpu_stat_TOP.global-to-local, align 1
  store x86_fp80 %v4_31, x86_fp80* %st5.global-to-local, align 4
  %v0_33 = call i32 @__asm_fpatan()
  store i32 %v0_33, i32* @eax, align 8
  %v2_35 = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  %v3_35 = add i3 %v0_2b, -2
  %v4_37 = fdiv x86_fp80 %v4_31, %v2_35
  store x86_fp80 %v4_37, x86_fp80* %st5.global-to-local, align 4
  store i3 %v3_35, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_49 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_49 = call i16 @__asm_fnstsw(i32 %v0_49)
  %v2_49 = sext i16 %v1_49 to i32
  %v3_49 = load i32, i32* @eax, align 8
  %v4_49 = and i32 %v3_49, -65536
  %v1_4b = udiv i32 %v2_49, 256
  %v2_4b = trunc i32 %v1_4b to i8
  %v3_4b = and i8 %v2_4b, 65
  %v4_4b = icmp eq i8 %v3_4b, 0
  %v9_4b = zext i8 %v3_4b to i32
  %v11_4b = mul i32 %v9_4b, 256
  %v2_49.masked = and i32 %v2_49, -65281
  %v12_4b = or i32 %v4_49, %v2_49.masked
  %v13_4b = or i32 %v12_4b, %v11_4b
  store i32 %v13_4b, i32* @eax, align 8
  %v0_5d = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  br i1 %v4_4b, label %dec_label_pc_5d, label %dec_label_pc_50

dec_label_pc_50:                                  ; preds = %dec_label_pc_2f
  %v1_52 = add i3 %v0_5d, -2
  store i3 %v1_52, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_56 = call i32 @__asm_fyl2x()
  store i32 %v0_56, i32* @eax, align 8
  br label %dec_label_pc_60

dec_label_pc_5d:                                  ; preds = %dec_label_pc_2f
  %v1_5d = load i32, i32* %esi.global-to-local, align 4
  %v2_5d = add i32 %v1_5d, 16
  %v3_5d = inttoptr i32 %v2_5d to double*
  %v4_5d = load double, double* %v3_5d, align 4
  %v6_5d = add i3 %v0_5d, -1
  store i3 %v6_5d, i3* %fpu_stat_TOP.global-to-local, align 1
  br label %dec_label_pc_60

dec_label_pc_60:                                  ; preds = %dec_label_pc_5d, %dec_label_pc_50
  %v1_60 = phi double [ %v4_5d, %dec_label_pc_5d ], [ 0x3FE62E42FEFA39EF, %dec_label_pc_50 ]
  %v0_60 = phi i3 [ %v6_5d, %dec_label_pc_5d ], [ %v1_52, %dec_label_pc_50 ]
  %v2_60 = load i32, i32* %ebx.global-to-local, align 4
  %v4_60 = inttoptr i32 %v2_60 to double*
  store double %v1_60, double* %v4_60, align 4
  %v3_62 = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_62 = fpext double %v3_62 to x86_fp80
  %v3_64 = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  %v4_64 = fmul x86_fp80 %v3_64, %v4_62
  %tmp243 = bitcast double %v3_62 to i64
  %tmp244 = trunc i64 %tmp243 to i32
  %v3_66 = fptrunc x86_fp80 %v4_64 to double
  %v4_66 = inttoptr i32 %tmp244 to double*
  store double %v3_66, double* %v4_66, align 4
  %v3_68 = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_68 = fpext double %v3_68 to x86_fp80
  %v3_6a = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  %v4_6a = fmul x86_fp80 %v3_6a, %v4_68
  %tmp245 = bitcast double %v3_68 to i64
  %tmp246 = trunc i64 %tmp245 to i32
  %v3_6c = fptrunc x86_fp80 %v4_6a to double
  %v4_6c = inttoptr i32 %tmp246 to double*
  store double %v3_6c, double* %v4_6c, align 4
  %v1_6e = load i32, i32* @ecx, align 8
  %v2_6e = add i32 %v1_6e, 8
  %v3_6e = inttoptr i32 %v2_6e to double*
  %v4_6e = load double, double* %v3_6e, align 4
  %v5_6e = fpext double %v4_6e to x86_fp80
  %v3_71 = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  %v4_71 = fmul x86_fp80 %v3_71, %v5_6e
  %v4_73 = fptrunc x86_fp80 %v4_71 to double
  store double %v4_73, double* %v3_6e, align 4
  %v4_7a = xor i3 %v0_60, -4
  store i3 %v4_7a, i3* %fpu_stat_TOP.global-to-local, align 1
  br label %dec_label_pc_a3

dec_label_pc_80:                                  ; preds = %dec_label_pc_0
  %v4_81 = add i3 %v0_2b, 2
  %v3_83 = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_83 = fpext double %v3_83 to x86_fp80
  store x86_fp80 %v4_83, x86_fp80* %st7.global-to-local, align 4
  %v1_85 = load i32, i32* %esi.global-to-local, align 4
  %v2_85 = inttoptr i32 %v1_85 to double*
  %v3_85 = load double, double* %v2_85, align 4
  %v4_85 = fpext double %v3_85 to x86_fp80
  store x86_fp80 %v4_85, x86_fp80* %st6.global-to-local, align 4
  store i3 %v4_81, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_89 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_89 = call i16 @__asm_fnstsw(i32 %v0_89)
  %v2_89 = sext i16 %v1_89 to i32
  %v3_89 = load i32, i32* @eax, align 8
  %v4_89 = and i32 %v3_89, -65536
  %v1_8b = udiv i32 %v2_89, 256
  %v2_8b = trunc i32 %v1_8b to i8
  %v3_8b = and i8 %v2_8b, 65
  %v4_8b = icmp eq i8 %v3_8b, 0
  %v9_8b = zext i8 %v3_8b to i32
  %v11_8b = mul i32 %v9_8b, 256
  %v2_89.masked = and i32 %v2_89, -65281
  %v12_8b = or i32 %v4_89, %v2_89.masked
  %v13_8b = or i32 %v12_8b, %v11_8b
  store i32 %v13_8b, i32* @eax, align 8
  br i1 %v4_8b, label %dec_label_pc_9e, label %dec_label_pc_90

dec_label_pc_90:                                  ; preds = %dec_label_pc_80
  %v0_9e = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v3_90 = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_90 = fpext double %v3_90 to x86_fp80
  %v1_92 = add i3 %v0_9e, -2
  store i3 %v1_92, i3* %fpu_stat_TOP.global-to-local, align 1
  store x86_fp80 %v4_90, x86_fp80* %st6.global-to-local, align 4
  store x86_fp80 0xK3FFEB17217F7D1CF7800, x86_fp80* %st7.global-to-local, align 4
  %v0_96 = call i32 @__asm_fyl2x()
  store i32 %v0_96, i32* @eax, align 8
  %v2_98 = load i32, i32* %ebx.global-to-local, align 4
  %v4_98 = inttoptr i32 %v2_98 to double*
  store double %v3_90, double* %v4_98, align 4
  %v5_98 = add i3 %v0_9e, -1
  store i3 %v5_98, i3* %fpu_stat_TOP.global-to-local, align 1
  br label %dec_label_pc_a3

dec_label_pc_9e:                                  ; preds = %dec_label_pc_80
  %v1_9e = load i32, i32* %esi.global-to-local, align 4
  %v2_9e = add i32 %v1_9e, 16
  %v3_9e = inttoptr i32 %v2_9e to double*
  %v4_9e = load double, double* %v3_9e, align 4
  %v5_9e = fpext double %v4_9e to x86_fp80
  store x86_fp80 %v5_9e, x86_fp80* %st7.global-to-local, align 4
  %v2_a1 = load i32, i32* %ebx.global-to-local, align 4
  %v4_a1 = inttoptr i32 %v2_a1 to double*
  store double %v4_9e, double* %v4_a1, align 4
  br label %dec_label_pc_a3

dec_label_pc_a3:                                  ; preds = %dec_label_pc_9e, %dec_label_pc_90, %dec_label_pc_60
  %v0_a3 = phi i32 [ %v2_a1, %dec_label_pc_9e ], [ %v2_98, %dec_label_pc_90 ], [ %v2_60, %dec_label_pc_60 ]
  store i32 %v0_a3, i32* @eax, align 8
  store i32 %v0_4, i32* %ebx.global-to-local, align 4
  store i32 %v0_3, i32* %esi.global-to-local, align 4
  ret i32 %v0_a3
}

; Function Attrs: nounwind readnone speculatable
declare x86_fp80 @llvm.sqrt.f80(x86_fp80) #0

declare i16 @__asm_fnstsw(i32) local_unnamed_addr

declare void @__asm_ffree(x86_fp80) local_unnamed_addr

declare i32 @__asm_fpatan() local_unnamed_addr

declare i32 @__asm_fyl2x() local_unnamed_addr

attributes #0 = { nounwind readnone speculatable }
