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
@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
  %ecx.global-to-local = alloca i32, align 4
  %esi.global-to-local = alloca i32, align 4
  %st7.global-to-local = alloca x86_fp80, align 4
  %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
  %v3_a = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_a = fpext double %v3_a to x86_fp80
  store x86_fp80 %v4_a, x86_fp80* %st7.global-to-local, align 4
  %v3_c = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_c = fpext double %v3_c to x86_fp80
  %v3_e = add i32 %v3_7, -40
  %v4_e = inttoptr i32 %v3_e to double*
  %v5_e = load double, double* %v4_e, align 4
  %v6_e = fpext double %v5_e to x86_fp80
  %v7_e = fmul x86_fp80 %v4_c, %v6_e
  %v2_11 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v7_e)
  %v3_11 = fcmp olt x86_fp80 %v2_11, 0xK403E8000000000000000
  %v4_11 = call x86_fp80 @llvm.cos.f80(x86_fp80 %v7_e)
  %storemerge5 = select i1 %v3_11, x86_fp80 %v4_11, x86_fp80 %v7_e
  %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
  %tmp241 = fmul x86_fp80 %storemerge5, %v6_15
  %v4_18 = fsub x86_fp80 %v4_a, %tmp241
  %v2_21 = fsub x86_fp80 0xK80000000000000000000, %v4_18
  store x86_fp80 %v2_21, x86_fp80* %st7.global-to-local, align 4
  %v3_23 = add i32 %v3_7, -32
  %v4_23 = inttoptr i32 %v3_23 to double*
  %v5_23 = load double, double* %v4_23, align 4
  %v6_23 = fpext double %v5_23 to x86_fp80
  %v7_23 = fmul x86_fp80 %v6_23, %v2_21
  %v4_26 = fadd x86_fp80 %v7_23, %v7_23
  store x86_fp80 %v4_26, x86_fp80* %st7.global-to-local, align 4
  %v3_28 = add i32 %v3_7, -16
  %v4_28 = inttoptr i32 %v3_28 to double*
  %v5_28 = load double, double* %v4_28, align 4
  %v6_28 = fpext double %v5_28 to x86_fp80
  %v7_28 = fmul x86_fp80 %v4_26, %v6_28
  %v2_44 = fsub x86_fp80 0xK80000000000000000000, %v7_28
  store x86_fp80 %v2_44, x86_fp80* %st7.global-to-local, align 4
  %v5_46 = load double, double* %v4_23, align 4
  %v6_46 = fpext double %v5_46 to x86_fp80
  %v7_46 = fmul x86_fp80 %v6_46, %v2_44
  %v4_49 = fadd x86_fp80 %v7_46, %v7_46
  store x86_fp80 %v4_49, x86_fp80* %st7.global-to-local, align 4
  %v5_4b = load double, double* %v4_28, align 4
  %v6_4b = fpext double %v5_4b to x86_fp80
  %v7_4b = fmul x86_fp80 %v4_49, %v6_4b
  %v2_67 = fsub x86_fp80 0xK80000000000000000000, %v7_4b
  store x86_fp80 %v2_67, x86_fp80* %st7.global-to-local, align 4
  %v5_69 = load double, double* %v4_23, align 4
  %v6_69 = fpext double %v5_69 to x86_fp80
  %v7_69 = fmul x86_fp80 %v2_67, %v6_69
  %v4_6c = fadd x86_fp80 %v7_69, %v7_69
  store x86_fp80 %v4_6c, x86_fp80* %st7.global-to-local, align 4
  %v5_6e = load double, double* %v4_28, align 4
  %v6_6e = fpext double %v5_6e to x86_fp80
  %v7_6e = fmul x86_fp80 %v4_6c, %v6_6e
  store x86_fp80 %v7_6e, x86_fp80* %st7.global-to-local, align 4
  %v2_73 = load i32, i32* %ecx.global-to-local, align 8
  %v3_73 = fptrunc x86_fp80 %v7_6e to double
  %v4_73 = inttoptr i32 %v2_73 to double*
  store double %v3_73, double* %v4_73, align 4
  %v1_75 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v2_75 = load i32, i32* @edx, align 8
  %v3_75 = fptrunc x86_fp80 %v1_75 to double
  %v4_75 = inttoptr i32 %v2_75 to double*
  store double %v3_75, double* %v4_75, align 4
  %v1_77 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v2_77 = load i32, i32* @eax, align 8
  %v3_77 = fptrunc x86_fp80 %v1_77 to double
  %v4_77 = inttoptr i32 %v2_77 to double*
  store double %v3_77, double* %v4_77, align 4
  store i32 %v0_3, i32* %esi.global-to-local, align 4
  store i32 %v0_0, i32* %ebp.global-to-local, align 4
  %v0_7b = load i32, i32* @eax, align 8
  ret i32 %v0_7b
}

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