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
  %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
  %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
  %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
  %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
  %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
  %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 %v7_22, %v4_1e
  %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
  %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
  %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
  %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 %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
  %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_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
  %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
  %v5_4d = add i3 %v0_e, -2
  %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.global-to-local, align 4
  %v3_57 = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_57 = fpext double %v3_57 to x86_fp80
  store i3 %v5_4d, i3* %fpu_stat_TOP.global-to-local, align 1
  store x86_fp80 %v4_57, x86_fp80* %st6.global-to-local, align 4
  %v2_69 = add i3 %v0_e, -3
  %storemerge4 = xor i3 %v0_e, -4
  %v1_7a = add i32 %v3_b, -64
  %v2_7a = inttoptr i32 %v1_7a to i32*
  %v3_7a = load i32, i32* %v2_7a, align 4
  %v13_7a = icmp eq i32 %v3_7a, 1
  %v1_7e = icmp eq i1 %v13_7a, false
  %v2_80 = add i32 %arg1, 40
  %v3_80 = inttoptr i32 %v2_80 to double*
  %storemerge3.in.in.in = select i1 %v1_7e, double* bitcast (i32* @ecx to double*), double* %v3_80
  %storemerge3.in.in = load double, double* %storemerge3.in.in.in, align 4
  %storemerge = fpext double %storemerge3.in.in to x86_fp80
  store x86_fp80 %storemerge, x86_fp80* %st7.global-to-local, align 4
  %v2_87 = add i32 %v3_b, -52
  %v3_87 = inttoptr i32 %v2_87 to double*
  %v4_87 = load double, double* %v3_87, align 4
  %v5_87 = fpext double %v4_87 to x86_fp80
  store x86_fp80 %v5_87, x86_fp80* %st6.global-to-local, align 4
  %v4_8a = fmul x86_fp80 %storemerge, %v5_87
  %v4_8c = fadd x86_fp80 %v4_8a, %v4_8a
  store x86_fp80 %v4_8c, x86_fp80* %st7.global-to-local, align 4
  %v2_8e = add i32 %v3_b, -76
  %v3_8e = inttoptr i32 %v2_8e to double*
  %v4_8e = load double, double* %v3_8e, align 4
  %v5_8e = fpext double %v4_8e to x86_fp80
  store x86_fp80 %v5_8e, x86_fp80* %st7.global-to-local, align 4
  %v3_91 = inttoptr i32 %v3_b to double*
  %v4_91 = load double, double* %v3_91, align 4
  %v5_91 = fpext double %v4_91 to x86_fp80
  %v6_91 = fmul x86_fp80 %v5_8e, %v5_91
  %v4_94 = fadd x86_fp80 %v6_91, %v6_91
  store x86_fp80 %v4_94, x86_fp80* %st7.global-to-local, align 4
  store i3 %v2_69, i3* %fpu_stat_TOP.global-to-local, align 1
  %v2_96 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_94)
  %v3_96 = fcmp olt x86_fp80 %v2_96, 0xK403E8000000000000000
  br i1 %v3_96, label %bb, label %bb246

bb:                                               ; preds = %dec_label_pc_0
  %v7_96 = call x86_fp80 @llvm.cos.f80(x86_fp80 %v4_94)
  store i3 %storemerge4, i3* %fpu_stat_TOP.global-to-local, align 1
  store x86_fp80 %v7_96, x86_fp80* %st7.global-to-local, align 4
  br label %bb246

bb246:                                            ; preds = %dec_label_pc_0, %bb
  %v3_9e = phi x86_fp80 [ %v4_94, %dec_label_pc_0 ], [ %v7_96, %bb ]
  %v0_98 = phi i3 [ %v2_69, %dec_label_pc_0 ], [ %storemerge4, %bb ]
  %v4_a0 = fadd x86_fp80 %v3_9e, %v3_9e
  store x86_fp80 %v4_a0, x86_fp80* %st7.global-to-local, align 4
  %v3_a2 = fptrunc x86_fp80 %v4_a0 to double
  store double %v3_a2, double* %v4_4d, align 4
  %v2_a4 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v4_a4 = fmul x86_fp80 %v2_a4, %v2_a4
  %v4_a6 = fmul x86_fp80 %v4_a4, %v4_a4
  %v4_a8 = fsub x86_fp80 %v4_a6, %v4_a6
  %v2_aa = load i32, i32* @edx, align 8
  %v3_aa = fptrunc x86_fp80 %v4_a8 to double
  %v4_aa = inttoptr i32 %v2_aa to double*
  store double %v3_aa, double* %v4_aa, align 4
  %v5_aa = xor i3 %v0_98, -4
  %v3_ae = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_ae = fpext double %v3_ae to x86_fp80
  store x86_fp80 %v4_ae, x86_fp80* %st7.global-to-local, align 4
  %v3_b0 = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_b0 = fpext double %v3_b0 to x86_fp80
  store x86_fp80 %v4_b0, x86_fp80* %st6.global-to-local, align 4
  %v3_b2 = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_b2 = fpext double %v3_b2 to x86_fp80
  %v5_b6 = load float, float* %v4_35, align 4
  %v6_b6 = fpext float %v5_b6 to x86_fp80
  %v7_b6 = fmul x86_fp80 %v4_b2, %v6_b6
  %v5_bb = load float, float* %v4_48, align 4
  %v6_bb = fpext float %v5_bb to x86_fp80
  %v7_bb = fmul x86_fp80 %v4_b0, %v6_bb
  %v4_be = fadd x86_fp80 %v7_b6, %v7_bb
  %v5_c2 = load float, float* %v4_22, align 4
  %v6_c2 = fpext float %v5_c2 to x86_fp80
  %v7_c2 = fmul x86_fp80 %v4_ae, %v6_c2
  %v4_c5 = fadd x86_fp80 %v7_c2, %v4_be
  %v5_c9 = load float, float* %v4_29, align 4
  %v6_c9 = fpext float %v5_c9 to x86_fp80
  %v7_c9 = fmul x86_fp80 %v4_b2, %v6_c9
  %v5_ce = load float, float* %v4_3c, align 4
  %v6_ce = fpext float %v5_ce to x86_fp80
  %v7_ce = fmul x86_fp80 %v4_b0, %v6_ce
  %v4_d1 = fadd x86_fp80 %v7_c9, %v7_ce
  %v5_d5 = load float, float* %v4_16, align 4
  %v6_d5 = fpext float %v5_d5 to x86_fp80
  %v7_d5 = fmul x86_fp80 %v4_ae, %v6_d5
  %v4_d8 = fadd x86_fp80 %v4_d1, %v7_d5
  %v5_dc = load float, float* %v4_2e, align 4
  %v6_dc = fpext float %v5_dc to x86_fp80
  %v7_dc = fmul x86_fp80 %v4_b2, %v6_dc
  store x86_fp80 %v7_dc, x86_fp80* %st6.global-to-local, align 4
  %v5_e1 = load float, float* %v4_41, align 4
  %v6_e1 = fpext float %v5_e1 to x86_fp80
  %v7_e1 = fmul x86_fp80 %v4_b0, %v6_e1
  %v4_e4 = fadd x86_fp80 %v7_dc, %v7_e1
  store x86_fp80 %v4_e4, x86_fp80* %st6.global-to-local, align 4
  store x86_fp80 %v4_c5, x86_fp80* %st7.global-to-local, align 4
  %v5_e8 = load float, float* %v4_1b, align 4
  %v6_e8 = fpext float %v5_e8 to x86_fp80
  %v7_e8 = fmul x86_fp80 %v4_ae, %v6_e8
  %v4_eb = fadd x86_fp80 %v4_e4, %v7_e8
  store x86_fp80 %v4_eb, x86_fp80* %st6.global-to-local, align 4
  %v3_ed = fptrunc x86_fp80 %v4_d8 to double
  store double %v3_ed, double* %v4_4d, align 4
  %v1_ef = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  %v2_ef = load i32, i32* @edx, align 8
  %v3_ef = fptrunc x86_fp80 %v1_ef to double
  %v4_ef = inttoptr i32 %v2_ef to double*
  store double %v3_ef, double* %v4_ef, align 4
  %v1_f1 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v2_f1 = load i32, i32* @ecx, align 8
  %v3_f1 = fptrunc x86_fp80 %v1_f1 to double
  %v4_f1 = inttoptr i32 %v2_f1 to double*
  store double %v3_f1, double* %v4_f1, align 4
  store i3 %v5_aa, i3* %fpu_stat_TOP.global-to-local, align 1
  store i32 %v0_9, 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
  ret i32 %v0_9
}

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

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

attributes #0 = { nounwind readnone speculatable }
