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

@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:
  %eax.global-to-local = alloca i32, align 4
  %ebp.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
  %v0_0 = load i32, i32* %ebp.global-to-local, align 4
  %v0_3 = load i32, i32* %esi.global-to-local, align 4
  store i32 %arg1, i32* %esi.global-to-local, align 4
  %v1_7 = add i32 %arg1, 48
  %v2_7 = inttoptr i32 %v1_7 to i32*
  %v3_7 = load i32, i32* %v2_7, align 4
  %v0_a = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v3_a = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_a = fpext double %v3_a to x86_fp80
  %v3_c = add i32 %v3_7, -16
  %v4_c = inttoptr i32 %v3_c to double*
  %v5_c = load double, double* %v4_c, align 4
  %v6_c = fpext double %v5_c to x86_fp80
  %v7_c = fmul x86_fp80 %v4_a, %v6_c
  %v4_11 = fmul x86_fp80 %v7_c, 0xK4000C90FDAA22168C000
  %v2_13 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_11)
  %v3_13 = fcmp olt x86_fp80 %v2_13, 0xK403E8000000000000000
  %v4_13 = call x86_fp80 @llvm.cos.f80(x86_fp80 %v4_11)
  %v1_15 = select i1 %v3_13, x86_fp80 %v4_13, x86_fp80 %v4_11
  %v3_15 = add i32 %v3_7, -24
  %v4_15 = inttoptr i32 %v3_15 to double*
  %v5_15 = load double, double* %v4_15, align 4
  %v6_15 = fpext double %v5_15 to x86_fp80
  %v7_15 = fmul x86_fp80 %v1_15, %v6_15
  %v7_18 = fsub x86_fp80 %v7_15, %v6_15
  %v3_1b = inttoptr i32 %v3_7 to double*
  %v4_1b = load double, double* %v3_1b, align 4
  %v5_1b = fpext double %v4_1b to x86_fp80
  %v6_1b = fadd x86_fp80 %v7_18, %v5_1b
  %v3_1d = add i32 %v3_7, 8
  %v4_1d = inttoptr i32 %v3_1d to double*
  %v5_1d = load double, double* %v4_1d, align 4
  %v6_1d = fpext double %v5_1d to x86_fp80
  %v7_1d = fmul x86_fp80 %v6_1b, %v6_1d
  %v4_24 = fmul x86_fp80 %v7_1d, %v7_1d
  %v4_26 = load double, double* bitcast (i32* @edx to double*), align 8
  %v5_26 = fpext double %v4_26 to x86_fp80
  %v6_26 = fadd x86_fp80 %v4_24, %v5_26
  %tmp234 = bitcast double %v4_26 to i64
  %tmp235 = trunc i64 %tmp234 to i32
  %v3_28 = fptrunc x86_fp80 %v6_26 to double
  %v4_28 = inttoptr i32 %tmp235 to double*
  store double %v3_28, double* %v4_28, align 4
  store i3 %v0_a, i3* %fpu_stat_TOP.global-to-local, align 1
  store i32 %v0_3, i32* %esi.global-to-local, align 4
  store i32 %v0_0, i32* %ebp.global-to-local, align 4
  %v0_2c = load i32, i32* %eax.global-to-local, align 4
  ret i32 %v0_2c
}

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