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:
  %edi.global-to-local = alloca i32, align 4
  %esi.global-to-local = alloca i32, align 4
  %fpu_stat_TOP.global-to-local = alloca i3, align 1
  %st3.global-to-local = alloca x86_fp80, align 4
  %st4.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* %edi.global-to-local, align 4
  store i32 %arg1, i32* %esi.global-to-local, align 4
  %v1_8 = add i32 %arg1, 48
  %v2_8 = inttoptr i32 %v1_8 to i32*
  %v3_8 = load i32, i32* %v2_8, align 4
  store i32 %v3_8, i32* %edi.global-to-local, align 4
  %v0_b = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v3_b = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_b = fpext double %v3_b to x86_fp80
  store x86_fp80 %v4_b, x86_fp80* %st7.global-to-local, align 4
  %v3_d = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_d = fpext double %v3_d to x86_fp80
  store x86_fp80 %v4_d, x86_fp80* %st6.global-to-local, align 4
  %v3_f = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_f = fpext double %v3_f to x86_fp80
  store x86_fp80 %v4_f, x86_fp80* %st5.global-to-local, align 4
  %v2_11 = add i32 %arg1, 56
  %v3_11 = inttoptr i32 %v2_11 to double*
  %v4_11 = load double, double* %v3_11, align 4
  %v5_11 = fpext double %v4_11 to x86_fp80
  %v6_11 = xor i3 %v0_b, -4
  %v2_14 = call x86_fp80 @llvm.sqrt.f80(x86_fp80 %v5_11)
  store x86_fp80 0xK3FFF8000000000000000, x86_fp80* %st3.global-to-local, align 4
  %v4_18 = fdiv x86_fp80 0xK3FFF8000000000000000, %v2_14
  %v4_1a = fmul x86_fp80 %v4_18, %v4_b
  %v4_1c = fmul x86_fp80 %v4_18, %v4_d
  %v4_1e = fmul x86_fp80 %v4_18, %v4_f
  %v4_22 = fadd x86_fp80 %v4_1c, 0xKBFFF8000000000000000
  %v4_24 = fdiv x86_fp80 0xK3FFF8000000000000000, %v4_22
  store x86_fp80 0xK3FFF8000000000000000, x86_fp80* %st6.global-to-local, align 4
  %v4_28 = fmul x86_fp80 %v4_1a, %v4_24
  %v4_2a = fmul x86_fp80 %v4_1e, %v4_24
  store i3 %v6_11, i3* %fpu_stat_TOP.global-to-local, align 1
  %v4_2e = fmul x86_fp80 %v4_28, %v4_28
  %v4_30 = fadd x86_fp80 %v4_2e, 0xKBFFF8000000000000000
  store x86_fp80 %v4_2a, x86_fp80* %st7.global-to-local, align 4
  %v3_36 = fadd x86_fp80 %v4_28, %v4_28
  store x86_fp80 %v4_30, x86_fp80* %st4.global-to-local, align 4
  store x86_fp80 %v3_36, x86_fp80* %st5.global-to-local, align 4
  %v0_3a = call i32 @__asm_fpatan()
  store i32 %v0_3a, i32* @eax, align 8
  %v0_3c = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v2_3c = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  %v3_3c = add i3 %v0_3c, -1
  store i3 %v3_3c, i3* %fpu_stat_TOP.global-to-local, align 1
  %v4_3e = fmul x86_fp80 %v2_3c, %v2_3c
  %v3_40 = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  %v4_40 = fsub x86_fp80 %v4_3e, %v3_40
  %v3_42 = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  store x86_fp80 %v3_42, x86_fp80* %st6.global-to-local, align 4
  %v3_46 = fadd x86_fp80 %v2_3c, %v2_3c
  store x86_fp80 %v4_40, x86_fp80* %st3.global-to-local, align 4
  store x86_fp80 %v3_46, x86_fp80* %st4.global-to-local, align 4
  %v0_4a = call i32 @__asm_fpatan()
  store i32 %v0_4a, i32* @eax, align 8
  %v0_4c = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v1_4c = load i32, i32* %edi.global-to-local, align 4
  %v2_4c = add i32 %v1_4c, -16
  %v3_4c = inttoptr i32 %v2_4c to double*
  %v4_4c = load double, double* %v3_4c, align 4
  %v5_4c = fpext double %v4_4c to x86_fp80
  %v6_4c = add i3 %v0_4c, -1
  %v2_4f = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  %v4_4f = fmul x86_fp80 %v2_4f, %v5_4c
  store x86_fp80 %v4_4f, x86_fp80* %st5.global-to-local, align 4
  %v3_51 = load x86_fp80, x86_fp80* %st3.global-to-local, align 4
  %v4_51 = fmul x86_fp80 %v3_51, %v5_4c
  store x86_fp80 %v4_51, x86_fp80* %st3.global-to-local, align 4
  %v2_53 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_51)
  %v3_53 = fcmp olt x86_fp80 %v2_53, 0xK403E8000000000000000
  br i1 %v3_53, label %bb, label %bb239

bb:                                               ; preds = %dec_label_pc_0
  %v4_53 = call x86_fp80 @llvm.sin.f80(x86_fp80 %v4_51)
  store x86_fp80 %v4_53, x86_fp80* %st3.global-to-local, align 4
  %v7_53 = call x86_fp80 @llvm.cos.f80(x86_fp80 %v4_51)
  store i3 %v6_4c, i3* %fpu_stat_TOP.global-to-local, align 1
  br label %bb239

bb239:                                            ; preds = %dec_label_pc_0, %bb
  %v3_57 = phi x86_fp80 [ %v4_51, %dec_label_pc_0 ], [ %v4_53, %bb ]
  %v0_57 = phi i3 [ %v0_4c, %dec_label_pc_0 ], [ %v6_4c, %bb ]
  %v2_55 = phi x86_fp80 [ %v5_4c, %dec_label_pc_0 ], [ %v7_53, %bb ]
  %v3_55 = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  %v4_55 = fadd x86_fp80 %v2_55, %v3_55
  %v4_57 = fdiv x86_fp80 %v3_57, %v4_55
  %v7_57 = add i3 %v0_57, 1
  store i3 %v7_57, i3* %fpu_stat_TOP.global-to-local, align 1
  store x86_fp80 %v4_4f, x86_fp80* %st3.global-to-local, align 4
  store x86_fp80 %v4_57, x86_fp80* %st5.global-to-local, align 4
  %v2_5b = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_4f)
  %v3_5b = fcmp olt x86_fp80 %v2_5b, 0xK403E8000000000000000
  br i1 %v3_5b, label %bb240, label %._crit_edge

bb240:                                            ; preds = %bb239
  %v4_5b = call x86_fp80 @llvm.sin.f80(x86_fp80 %v4_4f)
  store x86_fp80 %v4_5b, x86_fp80* %st3.global-to-local, align 4
  %v7_5b = call x86_fp80 @llvm.cos.f80(x86_fp80 %v4_4f)
  store i3 %v0_57, i3* %fpu_stat_TOP.global-to-local, align 1
  br label %._crit_edge

._crit_edge:                                      ; preds = %bb239, %bb240
  %v3_5f = phi x86_fp80 [ %v4_5b, %bb240 ], [ %v4_4f, %bb239 ]
  %v0_5f = phi i3 [ %v0_57, %bb240 ], [ %v7_57, %bb239 ]
  %v2_5d = phi x86_fp80 [ %v7_5b, %bb240 ], [ %v4_55, %bb239 ]
  %v4_5d = fadd x86_fp80 %v3_55, %v2_5d
  %v4_5f = fdiv x86_fp80 %v3_5f, %v4_5d
  %v4_63 = fmul x86_fp80 %v4_5f, %v4_5f
  %v4_67 = fmul x86_fp80 %v4_57, %v4_57
  %v4_69 = fadd x86_fp80 %v4_67, %v4_63
  %v4_6d = fadd x86_fp80 %v3_55, %v4_69
  %v4_6f = fdiv x86_fp80 %v3_55, %v4_6d
  %v4_73 = fsub x86_fp80 %v4_69, %v3_55
  %v4_75 = fmul x86_fp80 %v4_57, %v4_6f
  store x86_fp80 %v4_75, x86_fp80* %st5.global-to-local, align 4
  %v4_77 = fmul x86_fp80 %v4_73, %v4_6f
  store x86_fp80 %v4_77, x86_fp80* %st4.global-to-local, align 4
  %v4_79 = fmul x86_fp80 %v4_5f, %v4_6f
  store x86_fp80 %v4_79, x86_fp80* %st3.global-to-local, align 4
  %v1_84 = add i3 %v0_5f, -2
  store i3 %v1_84, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_88 = call i32 @__asm_fyl2x()
  store i32 %v0_88, i32* @eax, align 8
  %v0_9a = call i32 @__asm_f2xm1()
  store i32 %v0_9a, i32* @eax, align 8
  store x86_fp80 0xK40008000000000000000, x86_fp80* %st7.global-to-local, align 4
  %v0_a0 = call i32 @__asm_fscale()
  store i32 %v0_a0, i32* @eax, align 8
  %v0_a2 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  store x86_fp80 0xK40088000000000000000, x86_fp80* %st7.global-to-local, align 4
  %v2_ac = load i32, i32* %esi.global-to-local, align 4
  %v3_ac = add i32 %v2_ac, 24
  %v4_ac = inttoptr i32 %v3_ac to double*
  %v5_ac = load double, double* %v4_ac, align 4
  %v6_ac = fpext double %v5_ac to x86_fp80
  %v7_ac = fadd x86_fp80 %v6_ac, 0xK40088000000000000000
  store x86_fp80 %v7_ac, x86_fp80* %st7.global-to-local, align 4
  %v3_af = fptrunc x86_fp80 %v7_ac to double
  %v4_af = inttoptr i32 %v0_a0 to double*
  store double %v3_af, double* %v4_af, align 4
  %v1_b1 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v3_b1 = add i32 %v2_ac, 32
  %v4_b1 = inttoptr i32 %v3_b1 to double*
  %v5_b1 = load double, double* %v4_b1, align 4
  %v6_b1 = fpext double %v5_b1 to x86_fp80
  %v7_b1 = fadd x86_fp80 %v1_b1, %v6_b1
  store x86_fp80 %v7_b1, x86_fp80* %st7.global-to-local, align 4
  %v2_b4 = load i32, i32* @edx, align 8
  %v3_b4 = fptrunc x86_fp80 %v7_b1 to double
  %v4_b4 = inttoptr i32 %v2_b4 to double*
  store double %v3_b4, double* %v4_b4, align 4
  %v1_b6 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v3_b6 = fadd x86_fp80 %v1_b6, %v1_b6
  store x86_fp80 %v3_b6, x86_fp80* %st7.global-to-local, align 4
  %v3_b8 = add i32 %v2_ac, 40
  %v4_b8 = inttoptr i32 %v3_b8 to double*
  %v5_b8 = load double, double* %v4_b8, align 4
  %v6_b8 = fpext double %v5_b8 to x86_fp80
  %v7_b8 = fadd x86_fp80 %v3_b6, %v6_b8
  store x86_fp80 %v7_b8, x86_fp80* %st7.global-to-local, align 4
  %v2_bb = load i32, i32* @ecx, align 8
  %v3_bb = fptrunc x86_fp80 %v7_b8 to double
  %v4_bb = inttoptr i32 %v2_bb to double*
  store double %v3_bb, double* %v4_bb, align 4
  %v5_bb = add i3 %v0_a2, -3
  store i3 %v5_bb, i3* %fpu_stat_TOP.global-to-local, align 1
  store i32 %v0_4, i32* %edi.global-to-local, align 4
  store i32 %v0_3, i32* %esi.global-to-local, align 4
  %v0_c0 = load i32, i32* @eax, align 8
  ret i32 %v0_c0
}

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

declare i32 @__asm_fpatan() local_unnamed_addr

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

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

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

declare i32 @__asm_fyl2x() local_unnamed_addr

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

declare i32 @__asm_f2xm1() local_unnamed_addr

declare i32 @__asm_fscale() local_unnamed_addr

attributes #0 = { nounwind readnone speculatable }
