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

@st5 = internal unnamed_addr global x86_fp80 0xK00000000000000000000
@st6 = internal unnamed_addr global x86_fp80 0xK00000000000000000000
@st7 = internal unnamed_addr global x86_fp80 0xK00000000000000000000
@fpu_stat_TOP = internal unnamed_addr global i3 0
@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:
  %ebp.global-to-local = alloca i32, align 4
  %ebx.global-to-local = alloca i32, align 4
  %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
  %stack_var_-4 = alloca i32, align 4
  %v0_0 = load i32, i32* %ebp.global-to-local, align 4
  store i32 %v0_0, i32* %stack_var_-4, align 4
  %v4_0 = ptrtoint i32* %stack_var_-4 to i32
  store i32 %v4_0, i32* %ebp.global-to-local, align 4
  %v0_3 = load i32, i32* %esi.global-to-local, align 4
  %v0_4 = load i32, i32* %edi.global-to-local, align 4
  %v0_5 = load i32, i32* %ebx.global-to-local, align 4
  store i32 %arg1, i32* %esi.global-to-local, align 4
  %v0_9 = load i32, i32* @eax, align 8
  store i32 %v0_9, i32* %ebx.global-to-local, align 4
  %v1_b = add i32 %arg1, 48
  %v2_b = inttoptr i32 %v1_b to i32*
  %v3_b = load i32, i32* %v2_b, align 4
  store i32 %v3_b, i32* %edi.global-to-local, align 4
  %v0_e = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v3_e = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_e = fpext double %v3_e to x86_fp80
  store x86_fp80 %v4_e, x86_fp80* %st7.global-to-local, align 4
  %v3_10 = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_10 = fpext double %v3_10 to x86_fp80
  store x86_fp80 %v4_10, x86_fp80* %st6.global-to-local, align 4
  %v3_12 = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_12 = fpext double %v3_12 to x86_fp80
  store x86_fp80 %v4_12, x86_fp80* %st5.global-to-local, align 4
  %v2_14 = xor i3 %v0_e, -4
  store x86_fp80 %v4_12, x86_fp80* %st4.global-to-local, align 4
  %v3_16 = add i32 %v3_b, -36
  %v4_16 = inttoptr i32 %v3_16 to float*
  %v5_16 = load float, float* %v4_16, align 4
  %v6_16 = fpext float %v5_16 to x86_fp80
  %v7_16 = fmul x86_fp80 %v4_12, %v6_16
  store x86_fp80 %v7_16, x86_fp80* %st4.global-to-local, align 4
  store x86_fp80 %v4_10, x86_fp80* %st3.global-to-local, align 4
  %v3_1b = add i32 %v3_b, -40
  %v4_1b = inttoptr i32 %v3_1b to float*
  %v5_1b = load float, float* %v4_1b, align 4
  %v6_1b = fpext float %v5_1b to x86_fp80
  %v7_1b = fmul x86_fp80 %v4_10, %v6_1b
  %v4_1e = fadd x86_fp80 %v7_16, %v7_1b
  store x86_fp80 %v4_1e, x86_fp80* %st4.global-to-local, align 4
  store x86_fp80 %v4_e, x86_fp80* %st3.global-to-local, align 4
  %v3_22 = add i32 %v3_b, -44
  %v4_22 = inttoptr i32 %v3_22 to float*
  %v5_22 = load float, float* %v4_22, align 4
  %v6_22 = fpext float %v5_22 to x86_fp80
  %v7_22 = fmul x86_fp80 %v4_e, %v6_22
  %v4_25 = fadd x86_fp80 %v4_1e, %v7_22
  store x86_fp80 %v4_25, x86_fp80* %st4.global-to-local, align 4
  store x86_fp80 %v4_12, x86_fp80* %st3.global-to-local, align 4
  %v3_29 = add i32 %v3_b, -12
  %v4_29 = inttoptr i32 %v3_29 to float*
  %v5_29 = load float, float* %v4_29, align 4
  %v6_29 = fpext float %v5_29 to x86_fp80
  %v7_29 = fmul x86_fp80 %v4_12, %v6_29
  store x86_fp80 %v7_29, x86_fp80* %st3.global-to-local, align 4
  %v3_2e = add i32 %v3_b, -16
  %v4_2e = inttoptr i32 %v3_2e to float*
  %v5_2e = load float, float* %v4_2e, align 4
  %v6_2e = fpext float %v5_2e to x86_fp80
  %v7_2e = fmul x86_fp80 %v4_10, %v6_2e
  %v4_31 = fadd x86_fp80 %v7_29, %v7_2e
  store x86_fp80 %v4_31, x86_fp80* %st3.global-to-local, align 4
  %v3_35 = add i32 %v3_b, -20
  %v4_35 = inttoptr i32 %v3_35 to float*
  %v5_35 = load float, float* %v4_35, align 4
  %v6_35 = fpext float %v5_35 to x86_fp80
  %v7_35 = fmul x86_fp80 %v4_e, %v6_35
  %v4_38 = fadd x86_fp80 %v4_31, %v7_35
  store x86_fp80 %v4_12, x86_fp80* %st3.global-to-local, align 4
  store x86_fp80 %v4_38, x86_fp80* %st5.global-to-local, align 4
  %v3_3c = add i32 %v3_b, -24
  %v4_3c = inttoptr i32 %v3_3c to float*
  %v5_3c = load float, float* %v4_3c, align 4
  %v6_3c = fpext float %v5_3c to x86_fp80
  %v7_3c = fmul x86_fp80 %v4_12, %v6_3c
  store x86_fp80 %v4_10, x86_fp80* %st3.global-to-local, align 4
  store x86_fp80 %v7_3c, x86_fp80* %st6.global-to-local, align 4
  %v3_41 = add i32 %v3_b, -28
  %v4_41 = inttoptr i32 %v3_41 to float*
  %v5_41 = load float, float* %v4_41, align 4
  %v6_41 = fpext float %v5_41 to x86_fp80
  %v7_41 = fmul x86_fp80 %v4_10, %v6_41
  store x86_fp80 %v7_41, x86_fp80* %st3.global-to-local, align 4
  %v4_44 = fadd x86_fp80 %v7_3c, %v7_41
  store x86_fp80 %v4_44, x86_fp80* %st6.global-to-local, align 4
  store x86_fp80 %v4_e, x86_fp80* %st4.global-to-local, align 4
  store x86_fp80 %v4_25, x86_fp80* %st7.global-to-local, align 4
  %v3_48 = add i32 %v3_b, -32
  %v4_48 = inttoptr i32 %v3_48 to float*
  %v5_48 = load float, float* %v4_48, align 4
  %v6_48 = fpext float %v5_48 to x86_fp80
  %v7_48 = fmul x86_fp80 %v4_e, %v6_48
  store x86_fp80 %v7_48, x86_fp80* %st4.global-to-local, align 4
  %v4_4b = fadd x86_fp80 %v4_44, %v7_48
  store x86_fp80 %v4_4b, x86_fp80* %st6.global-to-local, align 4
  %v3_4d = fptrunc x86_fp80 %v4_38 to double
  %v4_4d = inttoptr i32 %v0_9 to double*
  store double %v3_4d, double* %v4_4d, align 4
  %v1_4f = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  %v2_4f = load i32, i32* @edx, align 8
  %v3_4f = fptrunc x86_fp80 %v1_4f to double
  %v4_4f = inttoptr i32 %v2_4f to double*
  store double %v3_4f, double* %v4_4f, align 4
  %v1_51 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v2_51 = load i32, i32* @ecx, align 8
  %v3_51 = fptrunc x86_fp80 %v1_51 to double
  %v4_51 = inttoptr i32 %v2_51 to double*
  store double %v3_51, double* %v4_51, align 4
  %v3_55 = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_55 = fpext double %v3_55 to x86_fp80
  store x86_fp80 %v4_55, x86_fp80* @st7, align 4
  %v3_57 = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_57 = fpext double %v3_57 to x86_fp80
  store x86_fp80 %v4_57, x86_fp80* %st6.global-to-local, align 4
  %v0_59 = load i32, i32* %esi.global-to-local, align 4
  %v1_59 = add i32 %v0_59, 208
  %v2_59 = inttoptr i32 %v1_59 to i32*
  %v3_59 = load i32, i32* %v2_59, align 4
  %v4_59 = add i32 %v3_59, 1
  store i32 %v4_59, i32* %v2_59, align 4
  %v1_5f = load i32, i32* %esi.global-to-local, align 4
  %v2_5f = add i32 %v1_5f, 208
  %v3_5f = inttoptr i32 %v2_5f to i32*
  %v4_5f = load i32, i32* %v3_5f, align 4
  %v5_5f = sitofp i32 %v4_5f to x86_fp80
  store x86_fp80 %v5_5f, x86_fp80* %st5.global-to-local, align 4
  %v2_65 = load i32, i32* %edi.global-to-local, align 4
  %v3_65 = add i32 %v2_65, -60
  %v4_65 = inttoptr i32 %v3_65 to double*
  %v5_65 = load double, double* %v4_65, align 4
  %v6_65 = fpext double %v5_65 to x86_fp80
  %v7_65 = fsub x86_fp80 %v5_5f, %v6_65
  store x86_fp80 %v7_65, x86_fp80* %st5.global-to-local, align 4
  %v2_68 = add i32 %v2_65, -68
  %v3_68 = inttoptr i32 %v2_68 to double*
  %v4_68 = load double, double* %v3_68, align 4
  %v5_68 = fpext double %v4_68 to x86_fp80
  store i3 %v2_14, i3* @fpu_stat_TOP, align 1
  store x86_fp80 %v5_68, x86_fp80* %st4.global-to-local, align 4
  %v3_6b = load i32, i32* %stack_var_-4, align 4
  %v4_6b = call x86_fp80 @function_dd(i32 %v0_5, i32 %v0_4, i32 %v0_3, i32 %v3_6b)
  store x86_fp80 %v4_6b, x86_fp80* %st7.global-to-local, align 4
  %v5_6b = fptrunc x86_fp80 %v4_6b to float
  %v6_6b = bitcast float %v5_6b to i32
  store i32 %v6_6b, i32* @eax, align 8
  %v1_71 = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  %v2_71 = load i32, i32* %edi.global-to-local, align 4
  %v3_71 = add i32 %v2_71, -52
  %v4_71 = inttoptr i32 %v3_71 to double*
  %v5_71 = load double, double* %v4_71, align 4
  %v6_71 = fpext double %v5_71 to x86_fp80
  %v7_71 = fmul x86_fp80 %v1_71, %v6_71
  store x86_fp80 %v7_71, x86_fp80* %st4.global-to-local, align 4
  %v3_74 = inttoptr i32 %v2_71 to double*
  %v4_74 = load double, double* %v3_74, align 4
  %v5_74 = fpext double %v4_74 to x86_fp80
  %v6_74 = fmul x86_fp80 %v7_71, %v5_74
  store x86_fp80 %v6_74, x86_fp80* %st4.global-to-local, align 4
  %v2_76 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v6_74)
  %v3_76 = fcmp olt x86_fp80 %v2_76, 0xK403E8000000000000000
  %v0_76 = load i3, i3* @fpu_stat_TOP, align 1
  br i1 %v3_76, label %bb, label %dec_label_pc_0._crit_edge

dec_label_pc_0._crit_edge:                        ; preds = %dec_label_pc_0
  %v1_78.pre = load x86_fp80, x86_fp80* %st3.global-to-local, align 4
  br label %bb235

bb:                                               ; preds = %dec_label_pc_0
  %v4_76 = call x86_fp80 @llvm.sin.f80(x86_fp80 %v6_74)
  store x86_fp80 %v4_76, x86_fp80* %st4.global-to-local, align 4
  %v7_76 = call x86_fp80 @llvm.cos.f80(x86_fp80 %v6_74)
  %v8_76 = add i3 %v0_76, -1
  store i3 %v8_76, i3* %fpu_stat_TOP.global-to-local, align 1
  store x86_fp80 %v7_76, x86_fp80* %st3.global-to-local, align 4
  br label %bb235

bb235:                                            ; preds = %dec_label_pc_0._crit_edge, %bb
  %v2_7c = phi x86_fp80 [ %v6_74, %dec_label_pc_0._crit_edge ], [ %v4_76, %bb ]
  %v1_78 = phi x86_fp80 [ %v1_78.pre, %dec_label_pc_0._crit_edge ], [ %v7_76, %bb ]
  %v0_78 = phi i3 [ %v0_76, %dec_label_pc_0._crit_edge ], [ %v8_76, %bb ]
  %v3_7a = load x86_fp80, x86_fp80* @st5, align 4
  %v4_7a = fmul x86_fp80 %v1_78, %v3_7a
  %v3_7e = load x86_fp80, x86_fp80* @st6, align 4
  %v4_7e = fmul x86_fp80 %v2_7c, %v3_7e
  %v4_80 = fadd x86_fp80 %v4_7a, %v4_7e
  %v2_82 = load i32, i32* %ebx.global-to-local, align 4
  %v3_82 = fptrunc x86_fp80 %v4_80 to double
  %v4_82 = inttoptr i32 %v2_82 to double*
  store double %v3_82, double* %v4_82, align 4
  %v2_84 = load x86_fp80, x86_fp80* %st3.global-to-local, align 4
  %v3_84 = load x86_fp80, x86_fp80* @st6, align 4
  %v4_84 = fmul x86_fp80 %v2_84, %v3_84
  %v2_86 = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  %v3_86 = load x86_fp80, x86_fp80* @st5, align 4
  %v4_86 = fmul x86_fp80 %v2_86, %v3_86
  %v4_88 = fsub x86_fp80 %v4_84, %v4_86
  %v2_8a = load i32, i32* @edx, align 8
  %v3_8a = fptrunc x86_fp80 %v4_88 to double
  %v4_8a = inttoptr i32 %v2_8a to double*
  store double %v3_8a, double* %v4_8a, align 4
  %v5_8a = xor i3 %v0_78, -4
  %v3_8f = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_8f = fpext double %v3_8f to x86_fp80
  store x86_fp80 %v4_8f, x86_fp80* %st6.global-to-local, align 4
  %v3_91 = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_91 = fpext double %v3_91 to x86_fp80
  store x86_fp80 %v4_91, x86_fp80* %st5.global-to-local, align 4
  %v3_93 = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_93 = fpext double %v3_93 to x86_fp80
  store x86_fp80 %v4_93, x86_fp80* %st4.global-to-local, align 4
  store x86_fp80 %v4_93, x86_fp80* %st3.global-to-local, align 4
  %v3_97 = add i32 %v2_71, -20
  %v4_97 = inttoptr i32 %v3_97 to float*
  %v5_97 = load float, float* %v4_97, align 4
  %v6_97 = fpext float %v5_97 to x86_fp80
  %v7_97 = fmul x86_fp80 %v4_93, %v6_97
  store x86_fp80 %v7_97, x86_fp80* %st3.global-to-local, align 4
  %v3_9c = add i32 %v2_71, -32
  %v4_9c = inttoptr i32 %v3_9c to float*
  %v5_9c = load float, float* %v4_9c, align 4
  %v6_9c = fpext float %v5_9c to x86_fp80
  %v7_9c = fmul x86_fp80 %v4_91, %v6_9c
  %v4_9f = fadd x86_fp80 %v7_97, %v7_9c
  store x86_fp80 %v4_9f, x86_fp80* %st3.global-to-local, align 4
  %v3_a3 = add i32 %v2_71, -44
  %v4_a3 = inttoptr i32 %v3_a3 to float*
  %v5_a3 = load float, float* %v4_a3, align 4
  %v6_a3 = fpext float %v5_a3 to x86_fp80
  %v7_a3 = fmul x86_fp80 %v4_8f, %v6_a3
  %v4_a6 = fadd x86_fp80 %v4_9f, %v7_a3
  store x86_fp80 %v4_a6, x86_fp80* %st3.global-to-local, align 4
  %v3_aa = add i32 %v2_71, -12
  %v4_aa = inttoptr i32 %v3_aa to float*
  %v5_aa = load float, float* %v4_aa, align 4
  %v6_aa = fpext float %v5_aa to x86_fp80
  %v7_aa = fmul x86_fp80 %v4_93, %v6_aa
  %v3_af = add i32 %v2_71, -24
  %v4_af = inttoptr i32 %v3_af to float*
  %v5_af = load float, float* %v4_af, align 4
  %v6_af = fpext float %v5_af to x86_fp80
  %v7_af = fmul x86_fp80 %v4_91, %v6_af
  %v4_b2 = fadd x86_fp80 %v7_aa, %v7_af
  %v3_b6 = add i32 %v2_71, -36
  %v4_b6 = inttoptr i32 %v3_b6 to float*
  %v5_b6 = load float, float* %v4_b6, align 4
  %v6_b6 = fpext float %v5_b6 to x86_fp80
  %v7_b6 = fmul x86_fp80 %v4_8f, %v6_b6
  %v4_b9 = fadd x86_fp80 %v4_b2, %v7_b6
  store x86_fp80 %v4_b9, x86_fp80* %st4.global-to-local, align 4
  %v3_bd = add i32 %v2_71, -16
  %v4_bd = inttoptr i32 %v3_bd to float*
  %v5_bd = load float, float* %v4_bd, align 4
  %v6_bd = fpext float %v5_bd to x86_fp80
  %v7_bd = fmul x86_fp80 %v4_93, %v6_bd
  store x86_fp80 %v7_bd, x86_fp80* %st5.global-to-local, align 4
  %v3_c2 = add i32 %v2_71, -28
  %v4_c2 = inttoptr i32 %v3_c2 to float*
  %v5_c2 = load float, float* %v4_c2, align 4
  %v6_c2 = fpext float %v5_c2 to x86_fp80
  %v7_c2 = fmul x86_fp80 %v4_91, %v6_c2
  %v4_c5 = fadd x86_fp80 %v7_bd, %v7_c2
  store x86_fp80 %v4_c5, x86_fp80* %st5.global-to-local, align 4
  store x86_fp80 %v4_8f, x86_fp80* %st3.global-to-local, align 4
  store x86_fp80 %v4_a6, x86_fp80* %st6.global-to-local, align 4
  %v3_c9 = add i32 %v2_71, -40
  %v4_c9 = inttoptr i32 %v3_c9 to float*
  %v5_c9 = load float, float* %v4_c9, align 4
  %v6_c9 = fpext float %v5_c9 to x86_fp80
  %v7_c9 = fmul x86_fp80 %v4_8f, %v6_c9
  store x86_fp80 %v7_c9, x86_fp80* %st3.global-to-local, align 4
  %v4_cc = fadd x86_fp80 %v4_c5, %v7_c9
  store x86_fp80 %v4_cc, x86_fp80* %st5.global-to-local, align 4
  %v3_ce = fptrunc x86_fp80 %v4_b9 to double
  store double %v3_ce, double* %v4_82, align 4
  %v1_d0 = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  %v2_d0 = load i32, i32* @edx, align 8
  %v3_d0 = fptrunc x86_fp80 %v1_d0 to double
  %v4_d0 = inttoptr i32 %v2_d0 to double*
  store double %v3_d0, double* %v4_d0, align 4
  %v1_d2 = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  %v2_d2 = load i32, i32* @ecx, align 8
  %v3_d2 = fptrunc x86_fp80 %v1_d2 to double
  %v4_d2 = inttoptr i32 %v2_d2 to double*
  store double %v3_d2, double* %v4_d2, align 4
  store i3 %v5_8a, i3* %fpu_stat_TOP.global-to-local, align 1
  store i32 %v2_82, i32* @eax, align 8
  store i32 %v0_5, i32* %ebx.global-to-local, align 4
  store i32 %v0_4, i32* %edi.global-to-local, align 4
  store i32 %v0_3, i32* %esi.global-to-local, align 4
  %v2_d9 = load i32, i32* %stack_var_-4, align 4
  store i32 %v2_d9, i32* %ebp.global-to-local, align 4
  ret i32 %v2_82
}

define x86_fp80 @function_dd(i32 %arg1, i32 %arg2, i32 %arg3, i32 %arg4) local_unnamed_addr {
dec_label_pc_dd:
  %fpu_stat_TOP.global-to-local = alloca i3, align 1
  %v2_dd = load x86_fp80, x86_fp80* @st7, align 4
  %v2_df = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v2_dd)
  %v0_e1 = load i3, i3* @fpu_stat_TOP, align 1
  %v1_e1 = add i3 %v0_e1, -1
  store i3 %v1_e1, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_e5 = call i32 @__asm_fyl2x()
  store i32 %v0_e5, i32* @eax, align 8
  %v4_e9 = fmul x86_fp80 %v2_df, 0xK3FFEB17217F7D1CF7800
  %v4_ed = fmul x86_fp80 %v4_e9, 0xK3FFFB8AA3B295C17F000
  %v2_f1 = call x86_fp80 @llvm.round.f80(x86_fp80 %v4_ed)
  %v4_f3 = fsub x86_fp80 %v4_ed, %v2_f1
  %v0_f7 = call i32 @__asm_f2xm1()
  store i32 %v0_f7, i32* @eax, align 8
  store x86_fp80 0xK3FFF8000000000000000, x86_fp80* @st5, align 4
  %v4_fb = fadd x86_fp80 %v4_f3, 0xK3FFF8000000000000000
  store x86_fp80 %v4_fb, x86_fp80* @st6, align 4
  %v0_fd = call i32 @__asm_fscale()
  store i32 %v0_fd, i32* @eax, align 8
  %v0_ff = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v1_ff = load x86_fp80, x86_fp80* @st6, align 4
  %v5_ff = add i3 %v0_ff, 1
  store i3 %v5_ff, i3* @fpu_stat_TOP, align 1
  ret x86_fp80 %v1_ff
}

; 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 }
