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:
  %edi.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* %edi.global-to-local, align 4
  store i32 %arg1, i32* %edi.global-to-local, align 4
  %v1_8 = add i32 %arg1, 48
  %v2_8 = inttoptr i32 %v1_8 to i32*
  %v3_8 = load i32, i32* %v2_8, align 4
  store i32 %v3_8, i32* %esi.global-to-local, align 4
  %v1_b = add i32 %arg1, 128
  store i32 %v1_b, i32* %edi.global-to-local, align 4
  %v0_11 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v2_11 = add i32 %v3_8, -40
  %v3_11 = inttoptr i32 %v2_11 to double*
  %v4_11 = load double, double* %v3_11, align 4
  %v5_11 = fpext double %v4_11 to x86_fp80
  store x86_fp80 %v5_11, x86_fp80* %st7.global-to-local, align 4
  %v3_14 = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_14 = fpext double %v3_14 to x86_fp80
  %v4_18 = fsub x86_fp80 %v4_14, %v5_11
  %v2_1a = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_18)
  %v4_1c = fadd x86_fp80 %v2_1a, %v4_14
  %v4_20 = fadd x86_fp80 %v5_11, %v4_14
  %v2_22 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_20)
  store x86_fp80 %v2_22, x86_fp80* %st5.global-to-local, align 4
  %v4_24 = fsub x86_fp80 %v2_22, %v4_1c
  store x86_fp80 %v4_24, x86_fp80* %st6.global-to-local, align 4
  %v3_26 = add i32 %v3_8, -48
  %v4_26 = inttoptr i32 %v3_26 to double*
  %v5_26 = load double, double* %v4_26, align 4
  %v6_26 = fpext double %v5_26 to x86_fp80
  %v7_26 = fsub x86_fp80 %v4_24, %v6_26
  store x86_fp80 %v7_26, x86_fp80* %st6.global-to-local, align 4
  %v3_29 = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_29 = fpext double %v3_29 to x86_fp80
  %v4_2d = fsub x86_fp80 %v4_29, %v5_11
  %v2_2f = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_2d)
  %v4_31 = fadd x86_fp80 %v2_2f, %v4_29
  %v4_35 = fadd x86_fp80 %v5_11, %v4_29
  %v2_37 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_35)
  store x86_fp80 %v2_37, x86_fp80* %st4.global-to-local, align 4
  %v4_39 = fsub x86_fp80 %v2_37, %v4_31
  store x86_fp80 %v4_39, x86_fp80* %st5.global-to-local, align 4
  %v3_3b = add i32 %v3_8, -56
  %v4_3b = inttoptr i32 %v3_3b to double*
  %v5_3b = load double, double* %v4_3b, align 4
  %v6_3b = fpext double %v5_3b to x86_fp80
  %v7_3b = fsub x86_fp80 %v4_39, %v6_3b
  store x86_fp80 %v7_3b, x86_fp80* %st5.global-to-local, align 4
  %v3_3e = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_3e = fpext double %v3_3e to x86_fp80
  %v2_40 = add i3 %v0_11, 3
  %v4_42 = fsub x86_fp80 %v4_3e, %v5_11
  %v2_44 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_42)
  %v4_46 = fadd x86_fp80 %v2_44, %v4_3e
  %v4_4a = fadd x86_fp80 %v5_11, %v4_3e
  %v2_4c = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_4a)
  store x86_fp80 %v2_4c, x86_fp80* %st3.global-to-local, align 4
  %v4_4e = fsub x86_fp80 %v2_4c, %v4_46
  store x86_fp80 %v4_4e, x86_fp80* %st4.global-to-local, align 4
  %v3_50 = add i32 %v3_8, -64
  %v4_50 = inttoptr i32 %v3_50 to double*
  %v5_50 = load double, double* %v4_50, align 4
  %v6_50 = fpext double %v5_50 to x86_fp80
  %v7_50 = fsub x86_fp80 %v4_4e, %v6_50
  store x86_fp80 %v7_50, x86_fp80* %st4.global-to-local, align 4
  %tmp255 = bitcast double %v3_3e to i64
  %tmp256 = trunc i64 %tmp255 to i32
  %v2_53 = add i32 %tmp256, 8
  %v3_53 = inttoptr i32 %v2_53 to double*
  %v4_53 = load double, double* %v3_53, align 4
  %v5_53 = fpext double %v4_53 to x86_fp80
  %v4_58 = fsub x86_fp80 %v5_53, %v5_11
  %v2_5a = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_58)
  %v4_5c = fadd x86_fp80 %v2_5a, %v5_53
  %v4_60 = fadd x86_fp80 %v5_11, %v5_53
  %v2_62 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_60)
  %v4_64 = fsub x86_fp80 %v2_62, %v4_5c
  store x86_fp80 %v4_64, x86_fp80* %st3.global-to-local, align 4
  %v3_66 = add i32 %v3_8, -72
  %v4_66 = inttoptr i32 %v3_66 to double*
  %v5_66 = load double, double* %v4_66, align 4
  %v6_66 = fpext double %v5_66 to x86_fp80
  %v7_66 = fsub x86_fp80 %v4_64, %v6_66
  store x86_fp80 %v7_66, x86_fp80* %st7.global-to-local, align 4
  %v4_6f = fmul x86_fp80 %v7_50, %v7_50
  %v4_73 = fmul x86_fp80 %v7_3b, %v7_3b
  %v4_75 = fadd x86_fp80 %v4_73, %v4_6f
  %v4_79 = fmul x86_fp80 %v7_26, %v7_26
  %v4_7b = fadd x86_fp80 %v4_79, %v4_75
  %v4_7f = fmul x86_fp80 %v7_66, %v7_66
  %v4_81 = fadd x86_fp80 %v4_7b, %v4_7f
  store x86_fp80 %v4_81, x86_fp80* %st3.global-to-local, align 4
  store i3 %v2_40, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_86 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_86 = call i16 @__asm_fnstsw(i32 %v0_86)
  %v2_86 = sext i16 %v1_86 to i32
  %v3_86 = load i32, i32* @eax, align 8
  %v4_86 = and i32 %v3_86, -65536
  %tmp257 = udiv i32 %v2_86, 2
  %v12_88 = and i32 %tmp257, 32512
  %v2_86.masked = and i32 %v2_86, -65281
  %v13_88 = or i32 %v4_86, %v2_86.masked
  %v14_88 = or i32 %v13_88, %v12_88
  store i32 %v14_88, i32* @eax, align 8
  %v15_889 = and i32 %v2_86, 256
  %v16_88 = icmp ne i32 %v15_889, 0
  %v1_8a = icmp eq i1 %v16_88, false
  br i1 %v1_8a, label %dec_label_pc_93, label %dec_label_pc_8c

dec_label_pc_8c:                                  ; preds = %dec_label_pc_0
  %v0_93 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v1_8e = load i32, i32* %esi.global-to-local, align 4
  %v2_8e = add i32 %v1_8e, -24
  %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* %st3.global-to-local, align 4
  br label %dec_label_pc_a6

dec_label_pc_93:                                  ; preds = %dec_label_pc_0
  %v0_97 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_97 = call i16 @__asm_fnstsw(i32 %v0_97)
  %v2_97 = sext i16 %v1_97 to i32
  %v3_97 = load i32, i32* @eax, align 8
  %v4_97 = and i32 %v3_97, -65536
  %v5_97 = or i32 %v4_97, %v2_97
  store i32 %v5_97, i32* @eax, align 8
  %v0_99 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v1_99 = load i32, i32* %esi.global-to-local, align 4
  %v2_99 = add i32 %v1_99, -16
  %v3_99 = inttoptr i32 %v2_99 to double*
  %v4_99 = load double, double* %v3_99, align 4
  %v5_99 = fpext double %v4_99 to x86_fp80
  %v6_99 = add i3 %v0_99, -1
  store i3 %v6_99, i3* %fpu_stat_TOP.global-to-local, align 1
  %tmp258 = udiv i32 %v2_97, 2
  %v12_9c = and i32 %tmp258, 32512
  %v13_9c = and i32 %v5_97, -65281
  %v14_9c = or i32 %v13_9c, %v12_9c
  store i32 %v14_9c, i32* @eax, align 8
  %v15_9c10 = and i32 %v2_97, 256
  %v16_9c = icmp eq i32 %v15_9c10, 0
  br i1 %v16_9c, label %dec_label_pc_a0, label %dec_label_pc_a2

dec_label_pc_a0:                                  ; preds = %dec_label_pc_93
  %v3_a0 = load x86_fp80, x86_fp80* %st3.global-to-local, align 4
  %v4_a0 = fdiv x86_fp80 %v5_99, %v3_a0
  br label %dec_label_pc_a2

dec_label_pc_a2:                                  ; preds = %dec_label_pc_93, %dec_label_pc_a0
  %v2_a2 = phi x86_fp80 [ %v4_a0, %dec_label_pc_a0 ], [ %v5_99, %dec_label_pc_93 ]
  store x86_fp80 %v2_a2, x86_fp80* %st3.global-to-local, align 4
  store i3 %v0_99, i3* %fpu_stat_TOP.global-to-local, align 1
  br label %dec_label_pc_a6

dec_label_pc_a6:                                  ; preds = %dec_label_pc_a2, %dec_label_pc_8c
  %v7_b4.pre-phi.in = phi i3 [ %v0_99, %dec_label_pc_a2 ], [ %v0_93, %dec_label_pc_8c ]
  %v2_d2 = phi i32 [ %v1_99, %dec_label_pc_a2 ], [ %v1_8e, %dec_label_pc_8c ]
  %v3_a9 = phi x86_fp80 [ %v2_a2, %dec_label_pc_a2 ], [ %v5_8e, %dec_label_pc_8c ]
  %v1_a6 = load i32, i32* %edi.global-to-local, align 4
  %v2_a6 = add i32 %v1_a6, 104
  %v3_a6 = inttoptr i32 %v2_a6 to double*
  %v4_a6 = load double, double* %v3_a6, align 4
  %v5_a6 = fpext double %v4_a6 to x86_fp80
  %v4_a9 = fmul x86_fp80 %v3_a9, %v5_a6
  %v4_ab = fptrunc x86_fp80 %v4_a9 to double
  store double %v4_ab, double* %v3_a6, align 4
  %v2_ae = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v3_ae = load x86_fp80, x86_fp80* %st3.global-to-local, align 4
  %v4_ae = fmul x86_fp80 %v2_ae, %v3_ae
  store x86_fp80 %v4_ae, x86_fp80* %st7.global-to-local, align 4
  %v2_b0 = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  %v4_b0 = fmul x86_fp80 %v3_ae, %v2_b0
  store x86_fp80 %v4_b0, x86_fp80* %st6.global-to-local, align 4
  %v2_b2 = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  %v4_b2 = fmul x86_fp80 %v3_ae, %v2_b2
  store x86_fp80 %v4_b2, x86_fp80* %st5.global-to-local, align 4
  %v3_b4 = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  %v4_b4 = fmul x86_fp80 %v3_ae, %v3_b4
  store x86_fp80 %v4_b4, x86_fp80* %st4.global-to-local, align 4
  %v3_b6 = add i32 %v1_a6, -88
  %v4_b6 = inttoptr i32 %v3_b6 to double*
  %v5_b6 = load double, double* %v4_b6, align 4
  %v6_b6 = fpext double %v5_b6 to x86_fp80
  %v7_b6 = fadd x86_fp80 %v4_b4, %v6_b6
  store x86_fp80 %v7_b6, x86_fp80* %st4.global-to-local, align 4
  %v3_b9 = add i32 %v2_d2, -64
  %v4_b9 = inttoptr i32 %v3_b9 to double*
  %v5_b9 = load double, double* %v4_b9, align 4
  %v6_b9 = fpext double %v5_b9 to x86_fp80
  %v7_b9 = fadd x86_fp80 %v7_b6, %v6_b9
  store x86_fp80 %v7_b9, x86_fp80* %st4.global-to-local, align 4
  %v2_bc = load i32, i32* @ecx, align 8
  %v3_bc = fptrunc x86_fp80 %v7_b9 to double
  %v4_bc = inttoptr i32 %v2_bc to double*
  store double %v3_bc, double* %v4_bc, align 4
  %v1_be = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  %v3_be = add i32 %v1_a6, -96
  %v4_be = inttoptr i32 %v3_be to double*
  %v5_be = load double, double* %v4_be, align 4
  %v6_be = fpext double %v5_be to x86_fp80
  %v7_be = fadd x86_fp80 %v1_be, %v6_be
  store x86_fp80 %v7_be, x86_fp80* %st5.global-to-local, align 4
  %v3_c1 = add i32 %v2_d2, -56
  %v4_c1 = inttoptr i32 %v3_c1 to double*
  %v5_c1 = load double, double* %v4_c1, align 4
  %v6_c1 = fpext double %v5_c1 to x86_fp80
  %v7_c1 = fadd x86_fp80 %v7_be, %v6_c1
  store x86_fp80 %v7_c1, x86_fp80* %st5.global-to-local, align 4
  %v2_c4 = load i32, i32* @edx, align 8
  %v3_c4 = fptrunc x86_fp80 %v7_c1 to double
  %v4_c4 = inttoptr i32 %v2_c4 to double*
  store double %v3_c4, double* %v4_c4, align 4
  %v1_c6 = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  %v3_c6 = add i32 %v1_a6, -104
  %v4_c6 = inttoptr i32 %v3_c6 to double*
  %v5_c6 = load double, double* %v4_c6, align 4
  %v6_c6 = fpext double %v5_c6 to x86_fp80
  %v7_c6 = fadd x86_fp80 %v1_c6, %v6_c6
  store x86_fp80 %v7_c6, x86_fp80* %st6.global-to-local, align 4
  %v3_c9 = add i32 %v2_d2, -48
  %v4_c9 = inttoptr i32 %v3_c9 to double*
  %v5_c9 = load double, double* %v4_c9, align 4
  %v6_c9 = fpext double %v5_c9 to x86_fp80
  %v7_c9 = fadd x86_fp80 %v7_c6, %v6_c9
  store x86_fp80 %v7_c9, x86_fp80* %st6.global-to-local, align 4
  %v2_cc = load i32, i32* @edx, align 8
  %v3_cc = add i32 %v2_cc, -8
  %v4_cc = fptrunc x86_fp80 %v7_c9 to double
  %v5_cc = inttoptr i32 %v3_cc to double*
  store double %v4_cc, double* %v5_cc, align 4
  %v1_cf = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v3_cf = add i32 %v2_d2, -80
  %v4_cf = inttoptr i32 %v3_cf to double*
  %v5_cf = load double, double* %v4_cf, align 4
  %v6_cf = fpext double %v5_cf to x86_fp80
  %v7_cf = fadd x86_fp80 %v1_cf, %v6_cf
  store x86_fp80 %v7_cf, x86_fp80* %st7.global-to-local, align 4
  %v3_d2 = add i32 %v2_d2, -72
  %v4_d2 = inttoptr i32 %v3_d2 to double*
  %v5_d2 = load double, double* %v4_d2, align 4
  %v6_d2 = fpext double %v5_d2 to x86_fp80
  %v7_d2 = fadd x86_fp80 %v7_cf, %v6_d2
  store x86_fp80 %v7_d2, x86_fp80* %st7.global-to-local, align 4
  %v3_d5 = add i32 %v1_a6, -184
  %v4_d5 = inttoptr i32 %v3_d5 to double*
  %v5_d5 = load double, double* %v4_d5, align 4
  %v6_d5 = fpext double %v5_d5 to x86_fp80
  %v7_d5 = fadd x86_fp80 %v7_d2, %v6_d5
  store x86_fp80 %v7_d5, x86_fp80* %st7.global-to-local, align 4
  %v2_db = load i32, i32* @ecx, align 8
  %v3_db = add i32 %v2_db, 8
  %v4_db = fptrunc x86_fp80 %v7_d5 to double
  %v5_db = inttoptr i32 %v3_db to double*
  store double %v4_db, double* %v5_db, align 4
  %v6_db = add i3 %v7_b4.pre-phi.in, -3
  store i3 %v6_db, i3* %fpu_stat_TOP.global-to-local, align 1
  store i32 %v0_4, i32* %edi.global-to-local, align 4
  store i32 %v0_3, i32* %esi.global-to-local, align 4
  %v0_e1 = load i32, i32* @eax, align 8
  ret i32 %v0_e1
}

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