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
  %st1.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
  %v3_d = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_d = fpext double %v3_d to x86_fp80
  store x86_fp80 %v4_d, x86_fp80* %st7.global-to-local, align 4
  %v3_f = add i32 %v3_a, -32
  %v4_f = inttoptr i32 %v3_f to double*
  %v5_f = load double, double* %v4_f, align 4
  %v6_f = fpext double %v5_f to x86_fp80
  %v7_f = fmul x86_fp80 %v4_d, %v6_f
  store x86_fp80 %v7_f, x86_fp80* %st7.global-to-local, align 4
  %v3_12 = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_12 = fpext double %v3_12 to x86_fp80
  %v5_12 = add i3 %v0_d, -2
  store x86_fp80 %v4_12, x86_fp80* %st6.global-to-local, align 4
  %v3_14 = add i32 %v3_a, -40
  %v4_14 = inttoptr i32 %v3_14 to double*
  %v5_14 = load double, double* %v4_14, align 4
  %v6_14 = fpext double %v5_14 to x86_fp80
  %v7_14 = fmul x86_fp80 %v4_12, %v6_14
  %v2_17 = fsub x86_fp80 0xK80000000000000000000, %v7_14
  store x86_fp80 %v2_17, x86_fp80* %st6.global-to-local, align 4
  %v4_19 = fsub x86_fp80 %v7_f, %v7_14
  store x86_fp80 %v4_19, x86_fp80* %st7.global-to-local, align 4
  %v3_1b = add i32 %v3_a, -48
  %v4_1b = inttoptr i32 %v3_1b to double*
  %v5_1b = load double, double* %v4_1b, align 4
  %v6_1b = fpext double %v5_1b to x86_fp80
  %v7_1b = fadd x86_fp80 %v4_19, %v6_1b
  %v2_20 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v7_1b)
  %v2_22 = call x86_fp80 @llvm.sqrt.f80(x86_fp80 %v2_20)
  store x86_fp80 %v7_1b, x86_fp80* %st6.global-to-local, align 4
  store x86_fp80 %v2_22, x86_fp80* %st7.global-to-local, align 4
  store i3 %v5_12, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_2e = load i32, i32* %fpsw.global-to-local, align 4
  %v1_2e = call i16 @__asm_fnstsw(i32 %v0_2e)
  %v2_2e = sext i16 %v1_2e to i32
  %v3_2e = load i32, i32* @eax, align 8
  %v4_2e = and i32 %v3_2e, -65536
  %v1_30 = udiv i32 %v2_2e, 256
  %v2_30 = trunc i32 %v1_30 to i8
  %v3_30 = and i8 %v2_30, 65
  %v4_30 = icmp eq i8 %v3_30, 0
  %v9_30 = zext i8 %v3_30 to i32
  %v11_30 = mul i32 %v9_30, 256
  %v2_2e.masked = and i32 %v2_2e, -65281
  %v12_30 = or i32 %v4_2e, %v2_2e.masked
  %v13_30 = or i32 %v12_30, %v11_30
  store i32 %v13_30, i32* @eax, align 8
  %v4_33 = icmp eq i1 %v4_30, false
  %v0_44 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v8_46 = add i3 %v0_44, 1
  store i3 %v8_46, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_48 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_48 = call i16 @__asm_fnstsw(i32 %v0_48)
  %v2_48 = sext i16 %v1_48 to i32
  %v3_48 = load i32, i32* @eax, align 8
  %v4_48 = and i32 %v3_48, -65536
  %v1_4a = udiv i32 %v2_48, 256
  %v2_4a = trunc i32 %v1_4a to i8
  %v3_4a = and i8 %v2_4a, 65
  %v4_4a = icmp eq i8 %v3_4a, 0
  %v9_4a = zext i8 %v3_4a to i32
  %v11_4a = mul i32 %v9_4a, 256
  %v2_48.masked = and i32 %v2_48, -65281
  %v12_4a = or i32 %v4_48, %v2_48.masked
  %v13_4a = or i32 %v12_4a, %v11_4a
  store i32 %v13_4a, i32* @eax, align 8
  %v4_4d = icmp eq i1 %v4_4a, false
  %v3_53.pre = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  br i1 %v4_33, label %dec_label_pc_44, label %dec_label_pc_35

dec_label_pc_35:                                  ; preds = %dec_label_pc_0
  br i1 %v4_4d, label %dec_label_pc_55, label %dec_label_pc_40

dec_label_pc_40:                                  ; preds = %dec_label_pc_35
  %v2_40 = fsub x86_fp80 0xK80000000000000000000, %v3_53.pre
  store x86_fp80 %v2_40, x86_fp80* %st7.global-to-local, align 4
  br label %dec_label_pc_55

dec_label_pc_44:                                  ; preds = %dec_label_pc_0
  br i1 %v4_4d, label %dec_label_pc_51, label %dec_label_pc_4f

dec_label_pc_4f:                                  ; preds = %dec_label_pc_44
  %v2_4f = fsub x86_fp80 0xK80000000000000000000, %v3_53.pre
  store x86_fp80 %v2_4f, x86_fp80* %st7.global-to-local, align 4
  br label %dec_label_pc_51

dec_label_pc_51:                                  ; preds = %dec_label_pc_44, %dec_label_pc_4f
  %v3_53 = phi x86_fp80 [ %v2_4f, %dec_label_pc_4f ], [ %v3_53.pre, %dec_label_pc_44 ]
  %v0_51 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v1_51 = add i3 %v0_51, -1
  store i3 %v1_51, i3* %fpu_stat_TOP.global-to-local, align 1
  %v4_53 = fdiv x86_fp80 0xK3FFF8000000000000000, %v3_53
  store x86_fp80 %v4_53, x86_fp80* %st6.global-to-local, align 4
  br label %dec_label_pc_55

dec_label_pc_55:                                  ; preds = %dec_label_pc_35, %dec_label_pc_40, %dec_label_pc_51
  %v1_55 = phi x86_fp80 [ %v2_40, %dec_label_pc_40 ], [ %v3_53, %dec_label_pc_51 ], [ %v3_53.pre, %dec_label_pc_35 ]
  %v4_55 = load double, double* bitcast (i32* @edx to double*), align 8
  %v5_55 = fpext double %v4_55 to x86_fp80
  %v6_55 = fadd x86_fp80 %v1_55, %v5_55
  store x86_fp80 %v6_55, x86_fp80* %st7.global-to-local, align 4
  %v0_57 = load x86_fp80, x86_fp80* %st1.global-to-local, align 4
  call void @__asm_ffree(x86_fp80 %v0_57)
  %v0_5b = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v1_5b = load i32, i32* %esi.global-to-local, align 4
  %v2_5b = add i32 %v1_5b, -24
  %v3_5b = inttoptr i32 %v2_5b to double*
  %v4_5b = load double, double* %v3_5b, align 4
  %v5_5b = fpext double %v4_5b to x86_fp80
  %v4_5e = load double, double* bitcast (i32* @eax to double*), align 8
  %v5_5e = fpext double %v4_5e to x86_fp80
  %v6_5e = fsub x86_fp80 %v5_5b, %v5_5e
  store x86_fp80 %v6_5e, x86_fp80* %st6.global-to-local, align 4
  %v3_60 = add i32 %v1_5b, -16
  %v4_60 = inttoptr i32 %v3_60 to double*
  %v5_60 = load double, double* %v4_60, align 4
  %v6_60 = fpext double %v5_60 to x86_fp80
  %v7_60 = fmul x86_fp80 %v6_5e, %v6_60
  store x86_fp80 %v7_60, x86_fp80* %st6.global-to-local, align 4
  %v4_65 = load double, double* %v3_5b, align 4
  %v5_65 = fpext double %v4_65 to x86_fp80
  %v4_68 = load double, double* bitcast (i32* @edx to double*), align 8
  %v5_68 = fpext double %v4_68 to x86_fp80
  %v6_68 = fmul x86_fp80 %v5_65, %v5_68
  %v3_6c = add i32 %v1_5b, -32
  %v4_6c = inttoptr i32 %v3_6c to double*
  %v5_6c = load double, double* %v4_6c, align 4
  %v6_6c = fpext double %v5_6c to x86_fp80
  %v7_6c = fmul x86_fp80 %v5_5e, %v6_6c
  %v4_71 = fsub x86_fp80 %v6_68, %v7_6c
  %v3_73 = add i32 %v1_5b, -56
  %v4_73 = inttoptr i32 %v3_73 to double*
  %v5_73 = load double, double* %v4_73, align 4
  %v6_73 = fpext double %v5_73 to x86_fp80
  %v7_73 = fmul x86_fp80 %v4_71, %v6_73
  %v4_76 = load double, double* bitcast (i32* @ecx to double*), align 8
  %v5_76 = fpext double %v4_76 to x86_fp80
  %v6_76 = fadd x86_fp80 %v7_73, %v5_76
  %tmp243 = bitcast double %v4_76 to i64
  %tmp244 = trunc i64 %tmp243 to i32
  %v3_7a = fptrunc x86_fp80 %v6_76 to double
  %v4_7a = inttoptr i32 %tmp244 to double*
  store double %v3_7a, double* %v4_7a, align 4
  %v1_7c = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  %v2_7c = load i32, i32* @edx, align 8
  %v3_7c = fptrunc x86_fp80 %v1_7c to double
  %v4_7c = inttoptr i32 %v2_7c to double*
  store double %v3_7c, double* %v4_7c, align 4
  %v1_7e = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v2_7e = load i32, i32* %ebx.global-to-local, align 4
  %v3_7e = fptrunc x86_fp80 %v1_7e to double
  %v4_7e = inttoptr i32 %v2_7e to double*
  store double %v3_7e, double* %v4_7e, align 4
  %v5_7e = add i3 %v0_5b, 1
  store i3 %v5_7e, i3* %fpu_stat_TOP.global-to-local, align 1
  store i32 %v2_7e, 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_7e
}

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

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

declare i16 @__asm_fnstsw(i32) local_unnamed_addr

declare void @__asm_ffree(x86_fp80) local_unnamed_addr

attributes #0 = { nounwind readnone speculatable }
