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
  %esi.global-to-local = alloca i32, align 4
  %fpsw.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* %ebx.global-to-local, align 4
  store i32 %arg1, i32* %esi.global-to-local, align 4
  %v0_8 = load i32, i32* @eax, align 8
  store i32 %v0_8, i32* %ebx.global-to-local, align 4
  %v1_a = add i32 %arg1, 48
  %v2_a = inttoptr i32 %v1_a to i32*
  %v3_a = load i32, i32* %v2_a, align 4
  store i32 %v3_a, i32* %esi.global-to-local, align 4
  %v0_d = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  store x86_fp80 0xK3FFF8000000000000000, x86_fp80* %st7.global-to-local, align 4
  %v3_f = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_f = fpext double %v3_f to x86_fp80
  %v4_13 = fadd x86_fp80 %v4_f, 0xKBFFF8000000000000000
  %v2_15 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_13)
  %v4_17 = fadd x86_fp80 %v2_15, %v4_f
  %v4_1b = fadd x86_fp80 %v4_f, 0xK3FFF8000000000000000
  %v2_1d = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_1b)
  %v4_1f = fsub x86_fp80 %v2_1d, %v4_17
  store x86_fp80 %v4_1f, x86_fp80* %st6.global-to-local, align 4
  %v3_21 = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_21 = fpext double %v3_21 to x86_fp80
  %v4_25 = fadd x86_fp80 %v4_21, 0xKBFFF8000000000000000
  %v2_27 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_25)
  %v4_29 = fadd x86_fp80 %v2_27, %v4_21
  %v4_2d = fadd x86_fp80 %v4_21, 0xK3FFF8000000000000000
  %v2_2f = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_2d)
  %v4_31 = fsub x86_fp80 %v2_2f, %v4_29
  store x86_fp80 %v4_31, x86_fp80* %st5.global-to-local, align 4
  %v3_33 = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_33 = fpext double %v3_33 to x86_fp80
  %v2_35 = add i3 %v0_d, 3
  %v4_37 = fadd x86_fp80 %v4_33, 0xKBFFF8000000000000000
  %v2_39 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_37)
  %v4_3b = fadd x86_fp80 %v2_39, %v4_33
  %v4_3f = fadd x86_fp80 %v4_33, 0xK3FFF8000000000000000
  %v2_41 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_3f)
  %v4_43 = fsub x86_fp80 %v2_41, %v4_3b
  store x86_fp80 %v4_43, x86_fp80* %st4.global-to-local, align 4
  %v4_47 = fmul x86_fp80 %v4_43, %v4_43
  %v4_4b = fmul x86_fp80 %v4_31, %v4_31
  %v4_4d = fadd x86_fp80 %v4_4b, %v4_47
  %v4_51 = fmul x86_fp80 %v4_1f, %v4_1f
  %v4_53 = fadd x86_fp80 %v4_51, %v4_4d
  store x86_fp80 %v4_53, x86_fp80* %st3.global-to-local, align 4
  store i3 %v2_35, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_58 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_58 = call i16 @__asm_fnstsw(i32 %v0_58)
  %v2_58 = sext i16 %v1_58 to i32
  %v3_58 = load i32, i32* @eax, align 8
  %v4_58 = and i32 %v3_58, -65536
  %tmp251 = udiv i32 %v2_58, 2
  %v12_5a = and i32 %tmp251, 32512
  %v2_58.masked = and i32 %v2_58, -65281
  %v13_5a = or i32 %v4_58, %v2_58.masked
  %v14_5a = or i32 %v13_5a, %v12_5a
  store i32 %v14_5a, i32* @eax, align 8
  %v15_5a12 = and i32 %v2_58, 256
  %v16_5a = icmp ne i32 %v15_5a12, 0
  %v1_5c = icmp eq i1 %v16_5a, false
  %v0_65 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  br i1 %v1_5c, label %dec_label_pc_65, label %dec_label_pc_5e

dec_label_pc_5e:                                  ; preds = %dec_label_pc_0
  %v1_60 = load i32, i32* %esi.global-to-local, align 4
  %v2_60 = add i32 %v1_60, -24
  %v3_60 = inttoptr i32 %v2_60 to double*
  %v4_60 = load double, double* %v3_60, align 4
  %v5_60 = fpext double %v4_60 to x86_fp80
  store x86_fp80 %v5_60, x86_fp80* %st3.global-to-local, align 4
  br label %dec_label_pc_7b

dec_label_pc_65:                                  ; preds = %dec_label_pc_0
  %v1_65 = add i3 %v0_65, -1
  store i3 %v1_65, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_69 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_69 = call i16 @__asm_fnstsw(i32 %v0_69)
  %v2_69 = sext i16 %v1_69 to i32
  %v3_69 = load i32, i32* @eax, align 8
  %v4_69 = and i32 %v3_69, -65536
  %tmp252 = udiv i32 %v2_69, 2
  %v12_6b = and i32 %tmp252, 32512
  %v2_69.masked = and i32 %v2_69, -65281
  %v13_6b = or i32 %v4_69, %v2_69.masked
  %v14_6b = or i32 %v13_6b, %v12_6b
  store i32 %v14_6b, i32* @eax, align 8
  %v15_6b13 = and i32 %v2_69, 256
  %v16_6b = icmp eq i32 %v15_6b13, 0
  %v0_76 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v4_6f = add i3 %v0_76, 1
  br i1 %v16_6b, label %dec_label_pc_6f, label %dec_label_pc_76

dec_label_pc_6f:                                  ; preds = %dec_label_pc_65
  %v2_76 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  store i3 %v4_6f, i3* %fpu_stat_TOP.global-to-local, align 1
  %v2_71 = load i32, i32* %esi.global-to-local, align 4
  %v3_71 = add i32 %v2_71, -16
  %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 = fdiv x86_fp80 %v6_71, %v2_76
  store x86_fp80 %v7_71, x86_fp80* %st7.global-to-local, align 4
  br label %dec_label_pc_7b

dec_label_pc_76:                                  ; preds = %dec_label_pc_65
  %v1_78 = load i32, i32* %esi.global-to-local, align 4
  %v2_78 = add i32 %v1_78, -16
  %v3_78 = inttoptr i32 %v2_78 to double*
  %v4_78 = load double, double* %v3_78, align 4
  %v5_78 = fpext double %v4_78 to x86_fp80
  store i3 %v4_6f, i3* %fpu_stat_TOP.global-to-local, align 1
  store x86_fp80 %v5_78, x86_fp80* %st7.global-to-local, align 4
  br label %dec_label_pc_7b

dec_label_pc_7b:                                  ; preds = %dec_label_pc_76, %dec_label_pc_6f, %dec_label_pc_5e
  %v0_7b = phi i3 [ %v4_6f, %dec_label_pc_76 ], [ %v4_6f, %dec_label_pc_6f ], [ %v0_65, %dec_label_pc_5e ]
  %v1_7b = load i32, i32* @ecx, align 8
  %v2_7b = add i32 %v1_7b, 8
  %v3_7b = inttoptr i32 %v2_7b to double*
  %v4_7b = load double, double* %v3_7b, align 4
  %v5_7b = fpext double %v4_7b to x86_fp80
  %v3_7e = load x86_fp80, x86_fp80* %st3.global-to-local, align 4
  %v4_7e = fmul x86_fp80 %v3_7e, %v5_7b
  %v4_80 = fptrunc x86_fp80 %v4_7e to double
  store double %v4_80, double* %v3_7b, align 4
  %v2_83 = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  %v3_83 = load x86_fp80, x86_fp80* %st3.global-to-local, align 4
  %v4_83 = fmul x86_fp80 %v2_83, %v3_83
  store x86_fp80 %v4_83, x86_fp80* %st6.global-to-local, align 4
  %v2_85 = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  %v4_85 = fmul x86_fp80 %v3_83, %v2_85
  store x86_fp80 %v4_85, x86_fp80* %st5.global-to-local, align 4
  %v3_87 = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  %v4_87 = fmul x86_fp80 %v3_83, %v3_87
  store x86_fp80 %v4_87, x86_fp80* %st4.global-to-local, align 4
  %v2_89 = load i32, i32* @ecx, align 8
  %v3_89 = fptrunc x86_fp80 %v4_87 to double
  %v4_89 = inttoptr i32 %v2_89 to double*
  store double %v3_89, double* %v4_89, align 4
  %v1_8b = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  %v2_8b = load i32, i32* @edx, align 8
  %v3_8b = fptrunc x86_fp80 %v1_8b to double
  %v4_8b = inttoptr i32 %v2_8b to double*
  store double %v3_8b, double* %v4_8b, align 4
  %v1_8d = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  %v2_8d = load i32, i32* %ebx.global-to-local, align 4
  %v3_8d = fptrunc x86_fp80 %v1_8d to double
  %v4_8d = inttoptr i32 %v2_8d to double*
  store double %v3_8d, double* %v4_8d, align 4
  %v4_8f = add i3 %v0_7b, -3
  store i3 %v4_8f, i3* %fpu_stat_TOP.global-to-local, align 1
  store i32 %v2_8d, i32* @eax, align 8
  store i32 %v0_4, i32* %ebx.global-to-local, align 4
  store i32 %v0_3, i32* %esi.global-to-local, align 4
  ret i32 %v2_8d
}

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

declare i16 @__asm_fnstsw(i32) local_unnamed_addr

attributes #0 = { nounwind readnone speculatable }
