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
  %st1.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
  %stack_var_-40 = alloca double, align 8
  %v0_3 = load i32, i32* %esi.global-to-local, align 4
  %v0_4 = load i32, i32* %edi.global-to-local, align 4
  %v0_5 = load i32, i32* %ebx.global-to-local, align 4
  %v16_6 = ptrtoint double* %stack_var_-40 to i32
  store i32 %arg1, 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
  %v1_e = add i32 %arg1, 48
  %v2_e = inttoptr i32 %v1_e to i32*
  %v3_e = load i32, i32* %v2_e, align 4
  store i32 %v3_e, i32* %esi.global-to-local, align 4
  %v0_11 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v2_11 = add i32 %v3_e, -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)
  %v4_24 = fsub x86_fp80 %v2_22, %v4_1c
  store x86_fp80 %v4_24, x86_fp80* %st6.global-to-local, align 4
  %tmp260 = fptrunc x86_fp80 %v4_24 to double
  store double %tmp260, double* %stack_var_-40, align 8
  %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)
  %v4_39 = fsub x86_fp80 %v2_37, %v4_31
  store x86_fp80 %v4_39, x86_fp80* %st5.global-to-local, align 4
  %v3_3f = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_3f = fpext double %v3_3f to x86_fp80
  %v4_43 = fsub x86_fp80 %v4_3f, %v5_11
  %v2_45 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_43)
  %v4_47 = fadd x86_fp80 %v2_45, %v4_3f
  %v4_4b = fadd x86_fp80 %v5_11, %v4_3f
  %v2_4d = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_4b)
  %v4_4f = fsub x86_fp80 %v2_4d, %v4_47
  store x86_fp80 %v4_4f, x86_fp80* %st4.global-to-local, align 4
  store i32 %v16_6, i32* @eax, align 8
  store i32 %v16_6, i32* @ecx, align 8
  %v1_59 = add i32 %v3_e, -44
  %v2_59 = inttoptr i32 %v1_59 to i32*
  %v3_59 = load i32, i32* %v2_59, align 4
  store i32 %v3_59, i32* @edx, align 8
  %v2_62 = add i32 %v3_e, -48
  %v3_62 = inttoptr i32 %v2_62 to float*
  %v4_62 = load float, float* %v3_62, align 4
  %v5_62 = fpext float %v4_62 to x86_fp80
  %v2_65 = add i32 %v3_e, -52
  %v3_65 = inttoptr i32 %v2_65 to float*
  %v4_65 = load float, float* %v3_65, align 4
  %v5_65 = fpext float %v4_65 to x86_fp80
  %v9_68 = add i3 %v0_11, 1
  %v4_6b = fadd x86_fp80 %v4_24, %v5_62
  %v4_6d = fmul x86_fp80 %v4_6b, %v5_65
  %v4_6f = fadd x86_fp80 %v4_24, %v4_6d
  %v3_71 = fmul x86_fp80 %v4_6f, %v4_6f
  %v4_77 = fadd x86_fp80 %v4_39, %v5_62
  %v4_79 = fmul x86_fp80 %v4_77, %v5_65
  %v4_7b = fadd x86_fp80 %v4_39, %v4_79
  %v3_7d = fmul x86_fp80 %v4_7b, %v4_7b
  %v4_7f = fadd x86_fp80 %v3_71, %v3_7d
  %v4_85 = fadd x86_fp80 %v4_4f, %v5_62
  %v4_87 = fmul x86_fp80 %v4_85, %v5_65
  %v4_89 = fadd x86_fp80 %v4_4f, %v4_87
  %v3_8b = fmul x86_fp80 %v4_89, %v4_89
  %v4_8d = fadd x86_fp80 %v3_8b, %v4_7f
  store x86_fp80 %v4_8d, x86_fp80* %st1.global-to-local, align 4
  store i3 %v9_68, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_92 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_92 = call i16 @__asm_fnstsw(i32 %v0_92)
  %v2_92 = sext i16 %v1_92 to i32
  %v3_92 = load i32, i32* @eax, align 8
  %v4_92 = and i32 %v3_92, -65536
  %tmp261 = udiv i32 %v2_92, 2
  %v12_94 = and i32 %tmp261, 32512
  %v2_92.masked = and i32 %v2_92, -65281
  %v13_94 = or i32 %v4_92, %v2_92.masked
  %v14_94 = or i32 %v13_94, %v12_94
  store i32 %v14_94, i32* @eax, align 8
  %v15_9416 = and i32 %v2_92, 256
  %v16_94 = icmp ne i32 %v15_9416, 0
  %v1_96 = icmp eq i1 %v16_94, false
  %v0_9f = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  br i1 %v1_96, label %dec_label_pc_9f, label %dec_label_pc_98

dec_label_pc_98:                                  ; preds = %dec_label_pc_0
  %v1_9a = load i32, i32* %esi.global-to-local, align 4
  %v2_9a = add i32 %v1_9a, -24
  %v3_9a = inttoptr i32 %v2_9a to double*
  %v4_9a = load double, double* %v3_9a, align 4
  %v5_9a = fpext double %v4_9a to x86_fp80
  store x86_fp80 %v5_9a, x86_fp80* %st1.global-to-local, align 4
  br label %dec_label_pc_b5

dec_label_pc_9f:                                  ; preds = %dec_label_pc_0
  %v1_9f = add i3 %v0_9f, -1
  store i3 %v1_9f, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_a3 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_a3 = call i16 @__asm_fnstsw(i32 %v0_a3)
  %v2_a3 = sext i16 %v1_a3 to i32
  %v3_a3 = load i32, i32* @eax, align 8
  %v4_a3 = and i32 %v3_a3, -65536
  %tmp262 = udiv i32 %v2_a3, 2
  %v12_a5 = and i32 %tmp262, 32512
  %v2_a3.masked = and i32 %v2_a3, -65281
  %v13_a5 = or i32 %v4_a3, %v2_a3.masked
  %v14_a5 = or i32 %v13_a5, %v12_a5
  store i32 %v14_a5, i32* @eax, align 8
  %v15_a517 = and i32 %v2_a3, 256
  %v16_a5 = icmp eq i32 %v15_a517, 0
  %v0_b0 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v4_a9 = add i3 %v0_b0, 1
  br i1 %v16_a5, label %dec_label_pc_a9, label %dec_label_pc_b0

dec_label_pc_a9:                                  ; preds = %dec_label_pc_9f
  %v2_b0 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  store i3 %v4_a9, i3* %fpu_stat_TOP.global-to-local, align 1
  %v2_ab = load i32, i32* %esi.global-to-local, align 4
  %v3_ab = add i32 %v2_ab, -16
  %v4_ab = inttoptr i32 %v3_ab to double*
  %v5_ab = load double, double* %v4_ab, align 4
  %v6_ab = fpext double %v5_ab to x86_fp80
  %v7_ab = fdiv x86_fp80 %v6_ab, %v2_b0
  store x86_fp80 %v7_ab, x86_fp80* %st7.global-to-local, align 4
  br label %dec_label_pc_b5

dec_label_pc_b0:                                  ; preds = %dec_label_pc_9f
  %v1_b2 = load i32, i32* %esi.global-to-local, align 4
  %v2_b2 = add i32 %v1_b2, -16
  %v3_b2 = inttoptr i32 %v2_b2 to double*
  %v4_b2 = load double, double* %v3_b2, align 4
  %v5_b2 = fpext double %v4_b2 to x86_fp80
  store i3 %v4_a9, i3* %fpu_stat_TOP.global-to-local, align 1
  store x86_fp80 %v5_b2, x86_fp80* %st7.global-to-local, align 4
  br label %dec_label_pc_b5

dec_label_pc_b5:                                  ; preds = %dec_label_pc_b0, %dec_label_pc_a9, %dec_label_pc_98
  %v0_b5 = phi i3 [ %v4_a9, %dec_label_pc_b0 ], [ %v4_a9, %dec_label_pc_a9 ], [ %v0_9f, %dec_label_pc_98 ]
  %v1_b5 = load i32, i32* %ebx.global-to-local, align 4
  %v2_b5 = add i32 %v1_b5, 24
  %v3_b5 = inttoptr i32 %v2_b5 to double*
  %v4_b5 = load double, double* %v3_b5, align 4
  %v5_b5 = fpext double %v4_b5 to x86_fp80
  %v3_b8 = load x86_fp80, x86_fp80* %st1.global-to-local, align 4
  %v4_b8 = fmul x86_fp80 %v3_b8, %v5_b5
  %v4_ba = fptrunc x86_fp80 %v4_b8 to double
  store double %v4_ba, double* %v3_b5, align 4
  %v2_bd = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  %v3_bd = load x86_fp80, x86_fp80* %st1.global-to-local, align 4
  %v4_bd = fmul x86_fp80 %v2_bd, %v3_bd
  store x86_fp80 %v4_bd, x86_fp80* %st6.global-to-local, align 4
  %v2_bf = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  %v4_bf = fmul x86_fp80 %v3_bd, %v2_bf
  store x86_fp80 %v4_bf, x86_fp80* %st5.global-to-local, align 4
  %v3_c1 = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  %v4_c1 = fmul x86_fp80 %v3_bd, %v3_c1
  store x86_fp80 %v4_c1, x86_fp80* %st4.global-to-local, align 4
  %v2_c5 = load i32, i32* %edi.global-to-local, align 4
  %v3_c5 = add i32 %v2_c5, 40
  %v4_c5 = inttoptr i32 %v3_c5 to double*
  %v5_c5 = load double, double* %v4_c5, align 4
  %v6_c5 = fpext double %v5_c5 to x86_fp80
  %v7_c5 = fadd x86_fp80 %v4_c1, %v6_c5
  store x86_fp80 %v7_c5, x86_fp80* %st4.global-to-local, align 4
  %v3_c8 = add i32 %v1_b5, 16
  %v4_c8 = fptrunc x86_fp80 %v7_c5 to double
  %v5_c8 = inttoptr i32 %v3_c8 to double*
  store double %v4_c8, double* %v5_c8, align 4
  %v1_cb = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  %v3_cb = add i32 %v2_c5, 32
  %v4_cb = inttoptr i32 %v3_cb to double*
  %v5_cb = load double, double* %v4_cb, align 4
  %v6_cb = fpext double %v5_cb to x86_fp80
  %v7_cb = fadd x86_fp80 %v1_cb, %v6_cb
  store x86_fp80 %v7_cb, x86_fp80* %st5.global-to-local, align 4
  %v3_ce = add i32 %v1_b5, 8
  %v4_ce = fptrunc x86_fp80 %v7_cb to double
  %v5_ce = inttoptr i32 %v3_ce to double*
  store double %v4_ce, double* %v5_ce, align 4
  %v1_d1 = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  %v3_d1 = add i32 %v2_c5, 24
  %v4_d1 = inttoptr i32 %v3_d1 to double*
  %v5_d1 = load double, double* %v4_d1, align 4
  %v6_d1 = fpext double %v5_d1 to x86_fp80
  %v7_d1 = fadd x86_fp80 %v1_d1, %v6_d1
  store x86_fp80 %v7_d1, x86_fp80* %st6.global-to-local, align 4
  %v3_d4 = fptrunc x86_fp80 %v7_d1 to double
  %v4_d4 = inttoptr i32 %v1_b5 to double*
  store double %v3_d4, double* %v4_d4, align 4
  %v4_d6 = add i3 %v0_b5, -1
  store i3 %v4_d6, i3* %fpu_stat_TOP.global-to-local, align 1
  store i32 %v1_b5, i32* @eax, align 8
  store i32 %v0_5, i32* %ebx.global-to-local, align 4
  store i32 %v0_4, i32* %edi.global-to-local, align 4
  store i32 %v0_3, i32* %esi.global-to-local, align 4
  ret i32 %v1_b5
}

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