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
  %v0_3 = load i32, i32* %ebx.global-to-local, align 4
  %v0_4 = load i32, i32* @eax, align 8
  %v0_5 = load i32, i32* %esi.global-to-local, align 4
  store i32 %arg1, i32* %esi.global-to-local, align 4
  store i32 %v0_4, i32* %ebx.global-to-local, align 4
  %v1_b = add i32 %arg1, 48
  %v2_b = inttoptr i32 %v1_b to i32*
  %v3_b = load i32, i32* %v2_b, align 4
  store i32 %v3_b, i32* %esi.global-to-local, align 4
  %v0_e = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v6_e = add i3 %v0_e, -1
  store i3 %v6_e, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_13 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_13 = call i16 @__asm_fnstsw(i32 %v0_13)
  %v2_13 = sext i16 %v1_13 to i32
  %v3_13 = load i32, i32* @eax, align 8
  %v4_13 = and i32 %v3_13, -65536
  %v5_13 = or i32 %v4_13, %v2_13
  store i32 %v5_13, i32* @eax, align 8
  %v9_1711 = and i32 %v2_13, 16384
  %v10_17 = icmp eq i32 %v9_1711, 0
  %v0_18 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v4_18 = add i3 %v0_18, 1
  store i3 %v4_18, i3* %fpu_stat_TOP.global-to-local, align 1
  br i1 %v10_17, label %dec_label_pc_1c, label %dec_label_pc_52

dec_label_pc_1c:                                  ; preds = %dec_label_pc_0
  %v1_52.pre = load i32, i32* %esi.global-to-local, align 4
  %v2_1c = add i32 %v1_52.pre, -40
  %v3_1c = inttoptr i32 %v2_1c to double*
  %v4_1c = load double, double* %v3_1c, align 4
  %v5_1c = fpext double %v4_1c to x86_fp80
  %v3_1f = fadd x86_fp80 %v5_1c, %v5_1c
  %v3_21 = fadd x86_fp80 %v3_1f, %v3_1f
  %v1_23 = load i32, i32* @ecx, align 8
  %v2_23 = add i32 %v1_23, 8
  %v3_23 = inttoptr i32 %v2_23 to double*
  %v4_23 = load double, double* %v3_23, align 4
  %v5_23 = fpext double %v4_23 to x86_fp80
  %v4_28 = fdiv x86_fp80 %v5_23, %v3_21
  %v2_2b = call x86_fp80 @llvm.round.f80(x86_fp80 %v4_28)
  %v4_2d = fmul x86_fp80 %v3_21, %v2_2b
  %v4_30 = fsub x86_fp80 %v5_23, %v4_2d
  %v7_3a = fadd x86_fp80 %v4_30, %v5_1c
  %v2_3d = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v7_3a)
  %v7_43 = fsub x86_fp80 %v4_30, %v5_1c
  %v2_46 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v7_43)
  %v4_4a = fsub x86_fp80 %v2_3d, %v2_46
  %v4_4c = fsub x86_fp80 %v4_4a, %v4_30
  %v4_4e = fptrunc x86_fp80 %v4_4c to double
  store double %v4_4e, double* %v3_23, align 4
  store i3 %v4_18, i3* %fpu_stat_TOP.global-to-local, align 1
  br label %dec_label_pc_52

dec_label_pc_52:                                  ; preds = %dec_label_pc_0, %dec_label_pc_1c
  store i3 %v0_18, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_57 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_57 = call i16 @__asm_fnstsw(i32 %v0_57)
  %v2_57 = sext i16 %v1_57 to i32
  %v3_57 = load i32, i32* @eax, align 8
  %v4_57 = and i32 %v3_57, -65536
  %v5_57 = or i32 %v4_57, %v2_57
  store i32 %v5_57, i32* @eax, align 8
  %v9_5b12 = and i32 %v2_57, 16384
  %v10_5b = icmp eq i32 %v9_5b12, 0
  %v0_5c = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v4_5c = add i3 %v0_5c, 1
  store i3 %v4_5c, i3* %fpu_stat_TOP.global-to-local, align 1
  br i1 %v10_5b, label %dec_label_pc_60, label %dec_label_pc_96

dec_label_pc_60:                                  ; preds = %dec_label_pc_52
  %v1_96.pre = load i32, i32* %esi.global-to-local, align 4
  %v2_60 = add i32 %v1_96.pre, -32
  %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
  %v3_63 = fadd x86_fp80 %v5_60, %v5_60
  %v3_65 = fadd x86_fp80 %v3_63, %v3_63
  %v3_67 = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_67 = fpext double %v3_67 to x86_fp80
  %v4_6c = fdiv x86_fp80 %v4_67, %v3_65
  %v2_6f = call x86_fp80 @llvm.round.f80(x86_fp80 %v4_6c)
  %v4_71 = fmul x86_fp80 %v3_65, %v2_6f
  %v4_74 = fsub x86_fp80 %v4_67, %v4_71
  %v7_7e = fadd x86_fp80 %v4_74, %v5_60
  %v2_81 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v7_7e)
  %v7_87 = fsub x86_fp80 %v4_74, %v5_60
  %v2_8a = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v7_87)
  %v4_8e = fsub x86_fp80 %v2_81, %v2_8a
  %v4_90 = fsub x86_fp80 %v4_8e, %v4_74
  %tmp265 = bitcast double %v3_67 to i64
  %tmp266 = trunc i64 %tmp265 to i32
  %v3_92 = fptrunc x86_fp80 %v4_90 to double
  %v4_92 = inttoptr i32 %tmp266 to double*
  store double %v3_92, double* %v4_92, align 4
  store i3 %v4_5c, i3* %fpu_stat_TOP.global-to-local, align 1
  br label %dec_label_pc_96

dec_label_pc_96:                                  ; preds = %dec_label_pc_52, %dec_label_pc_60
  store i3 %v0_5c, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_9b = load i32, i32* %fpsw.global-to-local, align 4
  %v1_9b = call i16 @__asm_fnstsw(i32 %v0_9b)
  %v2_9b = sext i16 %v1_9b to i32
  %v3_9b = load i32, i32* @eax, align 8
  %v4_9b = and i32 %v3_9b, -65536
  %v5_9b = or i32 %v4_9b, %v2_9b
  store i32 %v5_9b, i32* @eax, align 8
  %v9_9f13 = and i32 %v2_9b, 16384
  %v10_9f = icmp eq i32 %v9_9f13, 0
  %v0_a0 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v4_a0 = add i3 %v0_a0, 1
  store i3 %v4_a0, i3* %fpu_stat_TOP.global-to-local, align 1
  br i1 %v10_9f, label %dec_label_pc_a4, label %dec_label_pc_da

dec_label_pc_a4:                                  ; preds = %dec_label_pc_96
  %v1_da.pre = load i32, i32* %esi.global-to-local, align 4
  %v2_a4 = add i32 %v1_da.pre, -24
  %v3_a4 = inttoptr i32 %v2_a4 to double*
  %v4_a4 = load double, double* %v3_a4, align 4
  %v5_a4 = fpext double %v4_a4 to x86_fp80
  %v3_a7 = fadd x86_fp80 %v5_a4, %v5_a4
  %v3_a9 = fadd x86_fp80 %v3_a7, %v3_a7
  %v3_ab = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_ab = fpext double %v3_ab to x86_fp80
  %v4_b0 = fdiv x86_fp80 %v4_ab, %v3_a9
  %v2_b3 = call x86_fp80 @llvm.round.f80(x86_fp80 %v4_b0)
  %v4_b5 = fmul x86_fp80 %v3_a9, %v2_b3
  %v4_b8 = fsub x86_fp80 %v4_ab, %v4_b5
  %v7_c2 = fadd x86_fp80 %v4_b8, %v5_a4
  %v2_c5 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v7_c2)
  %v7_cb = fsub x86_fp80 %v4_b8, %v5_a4
  %v2_ce = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v7_cb)
  %v4_d2 = fsub x86_fp80 %v2_c5, %v2_ce
  %v4_d4 = fsub x86_fp80 %v4_d2, %v4_b8
  %tmp267 = bitcast double %v3_ab to i64
  %tmp268 = trunc i64 %tmp267 to i32
  %v3_d6 = fptrunc x86_fp80 %v4_d4 to double
  %v4_d6 = inttoptr i32 %tmp268 to double*
  store double %v3_d6, double* %v4_d6, align 4
  store i3 %v4_a0, i3* %fpu_stat_TOP.global-to-local, align 1
  br label %dec_label_pc_da

dec_label_pc_da:                                  ; preds = %dec_label_pc_96, %dec_label_pc_a4
  store i3 %v0_a0, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_df = load i32, i32* %fpsw.global-to-local, align 4
  %v1_df = call i16 @__asm_fnstsw(i32 %v0_df)
  %v2_df = sext i16 %v1_df to i32
  %v3_df = load i32, i32* @eax, align 8
  %v4_df = and i32 %v3_df, -65536
  %v5_df = or i32 %v4_df, %v2_df
  store i32 %v5_df, i32* @eax, align 8
  %v9_e314 = and i32 %v2_df, 16384
  %v10_e3 = icmp eq i32 %v9_e314, 0
  %v0_e4 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v4_e4 = add i3 %v0_e4, 1
  store i3 %v4_e4, i3* %fpu_stat_TOP.global-to-local, align 1
  br i1 %v10_e3, label %dec_label_pc_e8, label %dec_label_pc_11e

dec_label_pc_e8:                                  ; preds = %dec_label_pc_da
  %v1_e8 = load i32, i32* %esi.global-to-local, align 4
  %v2_e8 = add i32 %v1_e8, -16
  %v3_e8 = inttoptr i32 %v2_e8 to double*
  %v4_e8 = load double, double* %v3_e8, align 4
  %v5_e8 = fpext double %v4_e8 to x86_fp80
  %v3_eb = fadd x86_fp80 %v5_e8, %v5_e8
  %v3_ed = fadd x86_fp80 %v3_eb, %v3_eb
  %v3_ef = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_ef = fpext double %v3_ef to x86_fp80
  %v4_f4 = fdiv x86_fp80 %v4_ef, %v3_ed
  %v2_f7 = call x86_fp80 @llvm.round.f80(x86_fp80 %v4_f4)
  %v4_f9 = fmul x86_fp80 %v3_ed, %v2_f7
  %v4_fc = fsub x86_fp80 %v4_ef, %v4_f9
  %v7_106 = fadd x86_fp80 %v4_fc, %v5_e8
  %v2_109 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v7_106)
  %v7_10f = fsub x86_fp80 %v4_fc, %v5_e8
  %v2_112 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v7_10f)
  %v4_116 = fsub x86_fp80 %v2_109, %v2_112
  %v4_118 = fsub x86_fp80 %v4_116, %v4_fc
  %v2_11a = load i32, i32* %ebx.global-to-local, align 4
  %v3_11a = fptrunc x86_fp80 %v4_118 to double
  %v4_11a = inttoptr i32 %v2_11a to double*
  store double %v3_11a, double* %v4_11a, align 4
  store i3 %v4_e4, i3* %fpu_stat_TOP.global-to-local, align 1
  br label %dec_label_pc_11e

dec_label_pc_11e:                                 ; preds = %dec_label_pc_da, %dec_label_pc_e8
  store i32 %v0_5, i32* %esi.global-to-local, align 4
  store i32 %v0_4, i32* @eax, align 8
  store i32 %v0_3, i32* %ebx.global-to-local, align 4
  ret i32 %v0_4
}

declare i16 @__asm_fnstsw(i32) local_unnamed_addr

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

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

attributes #0 = { nounwind readnone speculatable }
