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() local_unnamed_addr {
dec_label_pc_0:
  %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
  %v0_3 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v3_d = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_d = fpext double %v3_d to x86_fp80
  %v5_19 = add i3 %v0_3, -3
  store i3 %v5_19, i3* %fpu_stat_TOP.global-to-local, align 1
  store x86_fp80 %v4_d, x86_fp80* %st5.global-to-local, align 4
  %v0_1b = call i32 @__asm_fpatan()
  store i32 %v0_1b, i32* @eax, align 8
  %v3_1d = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_1d = fpext double %v3_1d to x86_fp80
  store x86_fp80 %v4_1d, x86_fp80* %st4.global-to-local, align 4
  %v3_1f = load double, double* bitcast (i32* @eax to double*), align 8
  %v5_1f = add i3 %v0_3, 3
  store i3 %v5_1f, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_21 = call i32 @__asm_fpatan()
  store i32 %v0_21, i32* @eax, align 8
  %v2_23 = load i32, i32* @ecx, align 8
  %v4_23 = inttoptr i32 %v2_23 to double*
  store double %v3_1f, double* %v4_23, align 4
  %v1_25 = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  %v2_25 = load i32, i32* @edx, align 8
  %v3_25 = fptrunc x86_fp80 %v1_25 to double
  %v4_25 = inttoptr i32 %v2_25 to double*
  store double %v3_25, double* %v4_25, align 4
  %v1_27 = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  %v2_27 = load i32, i32* @eax, align 8
  %v3_27 = fptrunc x86_fp80 %v1_27 to double
  %v4_27 = inttoptr i32 %v2_27 to double*
  store double %v3_27, double* %v4_27, align 4
  %v5_27 = add i3 %v0_3, -2
  store i3 %v5_27, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_2a = load i32, i32* @eax, align 8
  ret i32 %v0_2a
}

declare i32 @__asm_fpatan() local_unnamed_addr
