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
  %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
  %st4.global-to-local = alloca x86_fp80, align 4
  %st5.global-to-local = alloca x86_fp80, align 4
  %st7.global-to-local = alloca x86_fp80, align 4
  %v0_3 = load i32, i32* %ebx.global-to-local, align 4
  %v0_4 = load i32, i32* %esi.global-to-local, align 4
  %v0_5 = load i32, i32* %edi.global-to-local, align 4
  store i32 %arg1, i32* %esi.global-to-local, align 4
  %v1_9 = add i32 %arg1, 48
  %v2_9 = inttoptr i32 %v1_9 to i32*
  %v3_9 = load i32, i32* %v2_9, align 4
  store i32 %v3_9, i32* %edi.global-to-local, align 4
  %v0_c = load i32, i32* @eax, align 8
  store i32 %v0_c, i32* %ebx.global-to-local, align 4
  %v0_e = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v3_e = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_e = fpext double %v3_e to x86_fp80
  %v4_10 = load double, double* bitcast (i32* @ecx to double*), align 8
  %v5_10 = fpext double %v4_10 to x86_fp80
  %v6_10 = fmul x86_fp80 %v4_e, %v5_10
  store x86_fp80 %v6_10, x86_fp80* %st7.global-to-local, align 4
  %v3_12 = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_12 = fpext double %v3_12 to x86_fp80
  %tmp252 = bitcast double %v4_10 to i64
  %tmp253 = trunc i64 %tmp252 to i32
  %v3_14 = add i32 %tmp253, 8
  %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
  %v4_17 = fsub x86_fp80 %v6_10, %v7_14
  %v3_19 = fadd x86_fp80 %v4_17, %v4_17
  store x86_fp80 %v3_19, x86_fp80* %st7.global-to-local, align 4
  %v3_2c = fmul x86_fp80 %v4_e, %v4_e
  %v5_2e = xor i3 %v0_e, -4
  %v3_30 = fmul x86_fp80 %v4_12, %v4_12
  %v4_32 = fadd x86_fp80 %v3_2c, %v3_30
  store x86_fp80 %v4_32, x86_fp80* %st5.global-to-local, align 4
  %v3_36 = fmul x86_fp80 %v5_10, %v5_10
  store x86_fp80 %v3_36, x86_fp80* %st4.global-to-local, align 4
  %v4_38 = load double, double* %v4_14, align 4
  %v5_38 = fpext double %v4_38 to x86_fp80
  %v3_3b = fmul x86_fp80 %v5_38, %v5_38
  %v4_3d = fadd x86_fp80 %v3_36, %v3_3b
  store x86_fp80 %v4_3d, x86_fp80* %st4.global-to-local, align 4
  store i3 %v5_2e, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_41 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_41 = call i16 @__asm_fnstsw(i32 %v0_41)
  %v2_41 = sext i16 %v1_41 to i32
  %v3_41 = load i32, i32* @eax, align 8
  %v4_41 = and i32 %v3_41, -65536
  %tmp254 = udiv i32 %v2_41, 2
  %v12_43 = and i32 %tmp254, 32512
  %v2_41.masked = and i32 %v2_41, -65281
  %v13_43 = or i32 %v4_41, %v2_41.masked
  %v14_43 = or i32 %v13_43, %v12_43
  store i32 %v14_43, i32* @eax, align 8
  %v15_4313 = and i32 %v2_41, 256
  %v16_43 = icmp ne i32 %v15_4313, 0
  %v1_45 = icmp eq i1 %v16_43, false
  %v0_6c = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v2_6c = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  %v3_6c = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  br i1 %v1_45, label %dec_label_pc_6c, label %dec_label_pc_47

dec_label_pc_47:                                  ; preds = %dec_label_pc_0
  %v4_47 = fdiv x86_fp80 %v2_6c, %v3_6c
  %v4_4d = fsub x86_fp80 0xK3FFF8000000000000000, %v4_47
  store x86_fp80 %v4_4d, x86_fp80* %st5.global-to-local, align 4
  %v3_4f = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_4f = fpext double %v3_4f to x86_fp80
  %v3_51 = fmul x86_fp80 %v4_4f, %v4_4f
  %v3_53 = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_53 = fpext double %v3_53 to x86_fp80
  %v5_53 = add i3 %v0_6c, -1
  %v3_55 = fmul x86_fp80 %v4_53, %v4_53
  %v4_57 = fsub x86_fp80 %v3_51, %v3_55
  %v4_59 = fmul x86_fp80 %v4_4d, %v4_57
  store x86_fp80 %v4_59, x86_fp80* %st4.global-to-local, align 4
  store i3 %v5_53, i3* %fpu_stat_TOP.global-to-local, align 1
  %v6_5e = fmul x86_fp80 %v4_4f, %v4_53
  %tmp255 = bitcast double %v3_53 to i64
  %tmp256 = trunc i64 %tmp255 to i32
  br label %dec_label_pc_60

dec_label_pc_60:                                  ; preds = %dec_label_pc_6c, %dec_label_pc_47
  %v2_64 = phi i32 [ %tmp256, %dec_label_pc_47 ], [ %v2_64.pre, %dec_label_pc_6c ]
  %v0_64 = phi i3 [ %v5_53, %dec_label_pc_47 ], [ %v6_78, %dec_label_pc_6c ]
  %v3_62 = phi x86_fp80 [ %v4_4d, %dec_label_pc_47 ], [ %v4_72, %dec_label_pc_6c ]
  %storemerge9.in.in = phi x86_fp80 [ %v6_5e, %dec_label_pc_47 ], [ %v7_83, %dec_label_pc_6c ]
  %v3_60 = fadd x86_fp80 %storemerge9.in.in, %storemerge9.in.in
  %v4_62 = fmul x86_fp80 %v3_62, %v3_60
  %v3_64 = fptrunc x86_fp80 %v4_62 to double
  %v4_64 = inttoptr i32 %v2_64 to double*
  store double %v3_64, double* %v4_64, align 4
  %v1_66 = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  %v2_66 = load i32, i32* %ebx.global-to-local, align 4
  %v3_66 = fptrunc x86_fp80 %v1_66 to double
  %v4_66 = inttoptr i32 %v2_66 to double*
  store double %v3_66, double* %v4_66, align 4
  %v1_88 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v2_88 = load i32, i32* @ecx, align 8
  %v3_88 = add i32 %v2_88, 8
  %v4_88 = fptrunc x86_fp80 %v1_88 to double
  %v5_88 = inttoptr i32 %v3_88 to double*
  store double %v4_88, double* %v5_88, align 4
  %v1_8b = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v2_8b = load i32, i32* @ecx, 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
  %v3_8d = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_8d = fpext double %v3_8d to x86_fp80
  %v4_8f = load double, double* bitcast (i32* @ecx to double*), align 8
  %v5_8f = fpext double %v4_8f to x86_fp80
  %v6_8f = fmul x86_fp80 %v4_8d, %v5_8f
  store x86_fp80 %v6_8f, x86_fp80* %st7.global-to-local, align 4
  %v3_91 = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_91 = fpext double %v3_91 to x86_fp80
  %tmp257 = bitcast double %v4_8f to i64
  %tmp258 = trunc i64 %tmp257 to i32
  %v3_93 = add i32 %tmp258, 8
  %v4_93 = inttoptr i32 %v3_93 to double*
  %v5_93 = load double, double* %v4_93, align 4
  %v6_93 = fpext double %v5_93 to x86_fp80
  %v7_93 = fmul x86_fp80 %v4_91, %v6_93
  %v4_96 = fsub x86_fp80 %v6_8f, %v7_93
  %v3_98 = fadd x86_fp80 %v4_96, %v4_96
  store x86_fp80 %v3_98, x86_fp80* %st7.global-to-local, align 4
  %v3_ab = fmul x86_fp80 %v4_8d, %v4_8d
  %v5_ad = add i3 %v0_64, 1
  %v3_af = fmul x86_fp80 %v4_91, %v4_91
  %v4_b1 = fadd x86_fp80 %v3_ab, %v3_af
  store x86_fp80 %v4_b1, x86_fp80* %st5.global-to-local, align 4
  %v3_b5 = fmul x86_fp80 %v5_8f, %v5_8f
  store x86_fp80 %v3_b5, x86_fp80* %st4.global-to-local, align 4
  %v4_b7 = load double, double* %v4_93, align 4
  %v5_b7 = fpext double %v4_b7 to x86_fp80
  %v3_ba = fmul x86_fp80 %v5_b7, %v5_b7
  %v4_bc = fadd x86_fp80 %v3_b5, %v3_ba
  store x86_fp80 %v4_bc, x86_fp80* %st4.global-to-local, align 4
  store i3 %v5_ad, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_c0 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_c0 = call i16 @__asm_fnstsw(i32 %v0_c0)
  %v2_c0 = sext i16 %v1_c0 to i32
  %v3_c0 = load i32, i32* @eax, align 8
  %v4_c0 = and i32 %v3_c0, -65536
  %tmp259 = udiv i32 %v2_c0, 2
  %v12_c2 = and i32 %tmp259, 32512
  %v2_c0.masked = and i32 %v2_c0, -65281
  %v13_c2 = or i32 %v4_c0, %v2_c0.masked
  %v14_c2 = or i32 %v13_c2, %v12_c2
  store i32 %v14_c2, i32* @eax, align 8
  %v15_c214 = and i32 %v2_c0, 256
  %v16_c2 = icmp ne i32 %v15_c214, 0
  %v1_c4 = icmp eq i1 %v16_c2, false
  %v0_eb = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v2_eb = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  %v3_eb = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  br i1 %v1_c4, label %dec_label_pc_eb, label %dec_label_pc_c6

dec_label_pc_6c:                                  ; preds = %dec_label_pc_0
  %v4_6c = fdiv x86_fp80 %v3_6c, %v2_6c
  %v4_72 = fadd x86_fp80 %v4_6c, 0xKBFFF8000000000000000
  store x86_fp80 %v4_72, x86_fp80* %st5.global-to-local, align 4
  %v3_74 = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_74 = fpext double %v3_74 to x86_fp80
  %v3_76 = fmul x86_fp80 %v4_74, %v4_74
  store x86_fp80 %v3_76, x86_fp80* %st4.global-to-local, align 4
  %tmp260 = bitcast double %v3_74 to i64
  %tmp261 = trunc i64 %tmp260 to i32
  %v2_78 = add i32 %tmp261, 8
  %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
  %v6_78 = add i3 %v0_6c, -1
  %v3_7b = fmul x86_fp80 %v5_78, %v5_78
  %v4_7d = fsub x86_fp80 %v3_76, %v3_7b
  %v4_7f = fmul x86_fp80 %v4_72, %v4_7d
  store x86_fp80 %v4_7f, x86_fp80* %st4.global-to-local, align 4
  store i3 %v6_78, i3* %fpu_stat_TOP.global-to-local, align 1
  %v5_83 = load double, double* %v3_78, align 4
  %v6_83 = fpext double %v5_83 to x86_fp80
  %v7_83 = fmul x86_fp80 %v4_74, %v6_83
  %v2_64.pre = load i32, i32* @edx, align 8
  br label %dec_label_pc_60

dec_label_pc_c6:                                  ; preds = %dec_label_pc_60
  %v4_c6 = fdiv x86_fp80 %v2_eb, %v3_eb
  %v4_cc = fsub x86_fp80 0xK3FFF8000000000000000, %v4_c6
  store x86_fp80 %v4_cc, x86_fp80* %st5.global-to-local, align 4
  %v3_ce = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_ce = fpext double %v3_ce to x86_fp80
  %v3_d0 = fmul x86_fp80 %v4_ce, %v4_ce
  %v3_d2 = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_d2 = fpext double %v3_d2 to x86_fp80
  %v5_d2 = add i3 %v0_eb, -1
  %v3_d4 = fmul x86_fp80 %v4_d2, %v4_d2
  %v4_d6 = fsub x86_fp80 %v3_d0, %v3_d4
  %v4_d8 = fmul x86_fp80 %v4_cc, %v4_d6
  store x86_fp80 %v4_d8, x86_fp80* %st4.global-to-local, align 4
  store i3 %v5_d2, i3* %fpu_stat_TOP.global-to-local, align 1
  %v6_dd = fmul x86_fp80 %v4_ce, %v4_d2
  %tmp262 = bitcast double %v3_d2 to i64
  %tmp263 = trunc i64 %tmp262 to i32
  br label %dec_label_pc_df

dec_label_pc_df:                                  ; preds = %dec_label_pc_eb, %dec_label_pc_c6
  %v2_e3 = phi i32 [ %tmp263, %dec_label_pc_c6 ], [ %v2_e3.pre, %dec_label_pc_eb ]
  %v0_e3 = phi i3 [ %v5_d2, %dec_label_pc_c6 ], [ %v6_f7, %dec_label_pc_eb ]
  %v3_e1 = phi x86_fp80 [ %v4_cc, %dec_label_pc_c6 ], [ %v4_f1, %dec_label_pc_eb ]
  %storemerge11.in.in = phi x86_fp80 [ %v6_dd, %dec_label_pc_c6 ], [ %v7_102, %dec_label_pc_eb ]
  %v3_df = fadd x86_fp80 %storemerge11.in.in, %storemerge11.in.in
  %v4_e1 = fmul x86_fp80 %v3_e1, %v3_df
  %v3_e3 = fptrunc x86_fp80 %v4_e1 to double
  %v4_e3 = inttoptr i32 %v2_e3 to double*
  store double %v3_e3, double* %v4_e3, align 4
  %v1_e5 = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  %v2_e5 = load i32, i32* %ebx.global-to-local, align 4
  %v3_e5 = fptrunc x86_fp80 %v1_e5 to double
  %v4_e5 = inttoptr i32 %v2_e5 to double*
  store double %v3_e5, double* %v4_e5, align 4
  %v1_107 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v2_107 = load i32, i32* @ecx, align 8
  %v3_107 = add i32 %v2_107, 8
  %v4_107 = fptrunc x86_fp80 %v1_107 to double
  %v5_107 = inttoptr i32 %v3_107 to double*
  store double %v4_107, double* %v5_107, align 4
  %v1_10a = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v2_10a = load i32, i32* @ecx, align 8
  %v3_10a = fptrunc x86_fp80 %v1_10a to double
  %v4_10a = inttoptr i32 %v2_10a to double*
  store double %v3_10a, double* %v4_10a, align 4
  %v1_10c = load i32, i32* %esi.global-to-local, align 4
  %v2_10c = add i32 %v1_10c, 24
  %v3_10c = inttoptr i32 %v2_10c to double*
  %v4_10c = load double, double* %v3_10c, align 4
  %v5_10c = fpext double %v4_10c to x86_fp80
  %v4_10f = load double, double* bitcast (i32* @eax to double*), align 8
  %v5_10f = fpext double %v4_10f to x86_fp80
  %v6_10f = fadd x86_fp80 %v5_10c, %v5_10f
  store x86_fp80 %v6_10f, x86_fp80* %st7.global-to-local, align 4
  %v3_111 = fptrunc x86_fp80 %v6_10f to double
  store double %v3_111, double* %v4_e5, align 4
  %v2_113 = add i32 %v1_10c, 32
  %v3_113 = inttoptr i32 %v2_113 to double*
  %v4_113 = load double, double* %v3_113, align 4
  %v5_113 = fpext double %v4_113 to x86_fp80
  %v4_116 = load double, double* bitcast (i32* @edx to double*), align 8
  %v5_116 = fpext double %v4_116 to x86_fp80
  %v6_116 = fadd x86_fp80 %v5_113, %v5_116
  store x86_fp80 %v6_116, x86_fp80* %st7.global-to-local, align 4
  %tmp264 = bitcast double %v4_116 to i64
  %tmp265 = trunc i64 %tmp264 to i32
  %v3_118 = fptrunc x86_fp80 %v6_116 to double
  %v4_118 = inttoptr i32 %tmp265 to double*
  store double %v3_118, double* %v4_118, align 4
  %v2_11a = add i32 %v1_10c, 40
  %v3_11a = inttoptr i32 %v2_11a to double*
  %v4_11a = load double, double* %v3_11a, align 4
  %v5_11a = fpext double %v4_11a to x86_fp80
  %v4_11d = load double, double* bitcast (i32* @ecx to double*), align 8
  %v5_11d = fpext double %v4_11d to x86_fp80
  %v6_11d = fadd x86_fp80 %v5_11a, %v5_11d
  store x86_fp80 %v6_11d, x86_fp80* %st7.global-to-local, align 4
  %tmp266 = bitcast double %v4_11d to i64
  %tmp267 = trunc i64 %tmp266 to i32
  %v3_11f = fptrunc x86_fp80 %v6_11d to double
  %v4_11f = inttoptr i32 %tmp267 to double*
  store double %v3_11f, double* %v4_11f, align 4
  %v2_121 = add i32 %v1_10c, -56
  %v3_121 = inttoptr i32 %v2_121 to double*
  %v4_121 = load double, double* %v3_121, align 4
  %v5_121 = fpext double %v4_121 to x86_fp80
  store x86_fp80 %v5_121, x86_fp80* %st7.global-to-local, align 4
  %v2_124 = load i32, i32* %edi.global-to-local, align 4
  %v3_124 = add i32 %v2_124, -16
  %v4_124 = inttoptr i32 %v3_124 to double*
  %v5_124 = load double, double* %v4_124, align 4
  %v6_124 = fpext double %v5_124 to x86_fp80
  %v7_124 = fadd x86_fp80 %v5_121, %v6_124
  store x86_fp80 %v7_124, x86_fp80* %st7.global-to-local, align 4
  %v2_127 = load i32, i32* @ecx, align 8
  %v3_127 = add i32 %v2_127, 8
  %v4_127 = inttoptr i32 %v3_127 to double*
  %v5_127 = load double, double* %v4_127, align 4
  %v6_127 = fpext double %v5_127 to x86_fp80
  %v7_127 = fadd x86_fp80 %v7_124, %v6_127
  store x86_fp80 %v7_127, x86_fp80* %st7.global-to-local, align 4
  %v4_12a = fptrunc x86_fp80 %v7_127 to double
  store double %v4_12a, double* %v4_127, align 4
  %v6_12a = add i3 %v0_e3, -3
  store i3 %v6_12a, i3* %fpu_stat_TOP.global-to-local, align 1
  store i32 %v2_e5, i32* @eax, align 8
  store i32 %v0_5, i32* %edi.global-to-local, align 4
  store i32 %v0_4, i32* %esi.global-to-local, align 4
  store i32 %v0_3, i32* %ebx.global-to-local, align 4
  ret i32 %v2_e5

dec_label_pc_eb:                                  ; preds = %dec_label_pc_60
  %v4_eb = fdiv x86_fp80 %v3_eb, %v2_eb
  %v4_f1 = fadd x86_fp80 %v4_eb, 0xKBFFF8000000000000000
  store x86_fp80 %v4_f1, x86_fp80* %st5.global-to-local, align 4
  %v3_f3 = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_f3 = fpext double %v3_f3 to x86_fp80
  %v3_f5 = fmul x86_fp80 %v4_f3, %v4_f3
  store x86_fp80 %v3_f5, x86_fp80* %st4.global-to-local, align 4
  %tmp268 = bitcast double %v3_f3 to i64
  %tmp269 = trunc i64 %tmp268 to i32
  %v2_f7 = add i32 %tmp269, 8
  %v3_f7 = inttoptr i32 %v2_f7 to double*
  %v4_f7 = load double, double* %v3_f7, align 4
  %v5_f7 = fpext double %v4_f7 to x86_fp80
  %v6_f7 = add i3 %v0_eb, -1
  %v3_fa = fmul x86_fp80 %v5_f7, %v5_f7
  %v4_fc = fsub x86_fp80 %v3_f5, %v3_fa
  %v4_fe = fmul x86_fp80 %v4_f1, %v4_fc
  store x86_fp80 %v4_fe, x86_fp80* %st4.global-to-local, align 4
  store i3 %v6_f7, i3* %fpu_stat_TOP.global-to-local, align 1
  %v5_102 = load double, double* %v3_f7, align 4
  %v6_102 = fpext double %v5_102 to x86_fp80
  %v7_102 = fmul x86_fp80 %v4_f3, %v6_102
  %v2_e3.pre = load i32, i32* @edx, align 8
  br label %dec_label_pc_df
}

declare i16 @__asm_fnstsw(i32) local_unnamed_addr
