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
  %st0.global-to-local = alloca x86_fp80, align 4
  %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 x86_fp80, x86_fp80* %st0.global-to-local, align 4
  call void @__asm_ffree(x86_fp80 %v0_18)
  %v0_1a = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v1_1a = add i3 %v0_1a, 1
  store i3 %v1_1a, i3* %fpu_stat_TOP.global-to-local, align 1
  br i1 %v10_17, label %dec_label_pc_1e, label %dec_label_pc_30

dec_label_pc_1e:                                  ; preds = %dec_label_pc_0
  %v1_1e = load i32, i32* @ecx, align 8
  %v2_1e = add i32 %v1_1e, 8
  %v3_1e = inttoptr i32 %v2_1e to double*
  %v4_1e = load double, double* %v3_1e, align 4
  %v5_1e = fpext double %v4_1e to x86_fp80
  %v2_23 = load i32, i32* %esi.global-to-local, align 4
  %v3_23 = add i32 %v2_23, -40
  %v4_23 = inttoptr i32 %v3_23 to double*
  %v5_23 = load double, double* %v4_23, align 4
  %v6_23 = fpext double %v5_23 to x86_fp80
  %v7_23 = fdiv x86_fp80 %v5_1e, %v6_23
  %v2_26 = call x86_fp80 @llvm.round.f80(x86_fp80 %v7_23)
  %v7_28 = fmul x86_fp80 %v2_26, %v6_23
  %v4_2b = fsub x86_fp80 %v5_1e, %v7_28
  %v4_2d = fptrunc x86_fp80 %v4_2b to double
  store double %v4_2d, double* %v3_1e, align 4
  store i3 %v1_1a, i3* %fpu_stat_TOP.global-to-local, align 1
  br label %dec_label_pc_30

dec_label_pc_30:                                  ; preds = %dec_label_pc_0, %dec_label_pc_1e
  store i3 %v0_1a, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_35 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_35 = call i16 @__asm_fnstsw(i32 %v0_35)
  %v2_35 = sext i16 %v1_35 to i32
  %v3_35 = load i32, i32* @eax, align 8
  %v4_35 = and i32 %v3_35, -65536
  %v5_35 = or i32 %v4_35, %v2_35
  store i32 %v5_35, i32* @eax, align 8
  %v9_3912 = and i32 %v2_35, 16384
  %v10_39 = icmp eq i32 %v9_3912, 0
  %v0_3a = load x86_fp80, x86_fp80* %st0.global-to-local, align 4
  call void @__asm_ffree(x86_fp80 %v0_3a)
  %v0_3c = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v1_3c = add i3 %v0_3c, 1
  store i3 %v1_3c, i3* %fpu_stat_TOP.global-to-local, align 1
  br i1 %v10_39, label %dec_label_pc_40, label %dec_label_pc_52

dec_label_pc_40:                                  ; preds = %dec_label_pc_30
  %v3_40 = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_40 = fpext double %v3_40 to x86_fp80
  %v2_45 = load i32, i32* %esi.global-to-local, align 4
  %v3_45 = add i32 %v2_45, -32
  %v4_45 = inttoptr i32 %v3_45 to double*
  %v5_45 = load double, double* %v4_45, align 4
  %v6_45 = fpext double %v5_45 to x86_fp80
  %v7_45 = fdiv x86_fp80 %v4_40, %v6_45
  %v2_48 = call x86_fp80 @llvm.round.f80(x86_fp80 %v7_45)
  %v7_4a = fmul x86_fp80 %v2_48, %v6_45
  %v4_4d = fsub x86_fp80 %v4_40, %v7_4a
  %tmp257 = bitcast double %v3_40 to i64
  %tmp258 = trunc i64 %tmp257 to i32
  %v3_4f = fptrunc x86_fp80 %v4_4d to double
  %v4_4f = inttoptr i32 %tmp258 to double*
  store double %v3_4f, double* %v4_4f, align 4
  store i3 %v1_3c, i3* %fpu_stat_TOP.global-to-local, align 1
  br label %dec_label_pc_52

dec_label_pc_52:                                  ; preds = %dec_label_pc_30, %dec_label_pc_40
  store i3 %v0_3c, 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_5b13 = and i32 %v2_57, 16384
  %v10_5b = icmp eq i32 %v9_5b13, 0
  %v0_5c = load x86_fp80, x86_fp80* %st0.global-to-local, align 4
  call void @__asm_ffree(x86_fp80 %v0_5c)
  %v0_5e = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v1_5e = add i3 %v0_5e, 1
  store i3 %v1_5e, i3* %fpu_stat_TOP.global-to-local, align 1
  br i1 %v10_5b, label %dec_label_pc_62, label %dec_label_pc_74

dec_label_pc_62:                                  ; preds = %dec_label_pc_52
  %v3_62 = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_62 = fpext double %v3_62 to x86_fp80
  %v2_67 = load i32, i32* %esi.global-to-local, align 4
  %v3_67 = add i32 %v2_67, -24
  %v4_67 = inttoptr i32 %v3_67 to double*
  %v5_67 = load double, double* %v4_67, align 4
  %v6_67 = fpext double %v5_67 to x86_fp80
  %v7_67 = fdiv x86_fp80 %v4_62, %v6_67
  %v2_6a = call x86_fp80 @llvm.round.f80(x86_fp80 %v7_67)
  %v7_6c = fmul x86_fp80 %v2_6a, %v6_67
  %v4_6f = fsub x86_fp80 %v4_62, %v7_6c
  %tmp259 = bitcast double %v3_62 to i64
  %tmp260 = trunc i64 %tmp259 to i32
  %v3_71 = fptrunc x86_fp80 %v4_6f to double
  %v4_71 = inttoptr i32 %tmp260 to double*
  store double %v3_71, double* %v4_71, align 4
  store i3 %v1_5e, i3* %fpu_stat_TOP.global-to-local, align 1
  br label %dec_label_pc_74

dec_label_pc_74:                                  ; preds = %dec_label_pc_52, %dec_label_pc_62
  store i3 %v0_5e, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_79 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_79 = call i16 @__asm_fnstsw(i32 %v0_79)
  %v2_79 = sext i16 %v1_79 to i32
  %v3_79 = load i32, i32* @eax, align 8
  %v4_79 = and i32 %v3_79, -65536
  %v5_79 = or i32 %v4_79, %v2_79
  store i32 %v5_79, i32* @eax, align 8
  %v9_7d14 = and i32 %v2_79, 16384
  %v10_7d = icmp eq i32 %v9_7d14, 0
  %v0_7e = load x86_fp80, x86_fp80* %st0.global-to-local, align 4
  call void @__asm_ffree(x86_fp80 %v0_7e)
  %v0_80 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v1_80 = add i3 %v0_80, 1
  store i3 %v1_80, i3* %fpu_stat_TOP.global-to-local, align 1
  br i1 %v10_7d, label %dec_label_pc_84, label %dec_label_pc_96

dec_label_pc_84:                                  ; preds = %dec_label_pc_74
  %v3_84 = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_84 = fpext double %v3_84 to x86_fp80
  %v2_89 = load i32, i32* %esi.global-to-local, align 4
  %v3_89 = add i32 %v2_89, -16
  %v4_89 = inttoptr i32 %v3_89 to double*
  %v5_89 = load double, double* %v4_89, align 4
  %v6_89 = fpext double %v5_89 to x86_fp80
  %v7_89 = fdiv x86_fp80 %v4_84, %v6_89
  %v2_8c = call x86_fp80 @llvm.round.f80(x86_fp80 %v7_89)
  %v7_8e = fmul x86_fp80 %v2_8c, %v6_89
  %v4_91 = fsub x86_fp80 %v4_84, %v7_8e
  %v2_93 = load i32, i32* %ebx.global-to-local, align 4
  %v3_93 = fptrunc x86_fp80 %v4_91 to double
  %v4_93 = inttoptr i32 %v2_93 to double*
  store double %v3_93, double* %v4_93, align 4
  store i3 %v1_80, i3* %fpu_stat_TOP.global-to-local, align 1
  br label %dec_label_pc_96

dec_label_pc_96:                                  ; preds = %dec_label_pc_74, %dec_label_pc_84
  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

declare void @__asm_ffree(x86_fp80) local_unnamed_addr

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

attributes #0 = { nounwind readnone speculatable }
