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
@edx = internal unnamed_addr global i32 0, align 8

define i32 @function_0(i32 %arg1) local_unnamed_addr {
dec_label_pc_0:
  %ebp.global-to-local = alloca i32, align 4
  %ebx.global-to-local = alloca i32, align 4
  %edi.global-to-local = alloca i32, align 4
  %esi.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
  %st6.global-to-local = alloca x86_fp80, align 4
  %v0_0 = load i32, i32* %ebp.global-to-local, align 4
  %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
  store i32 %arg1, i32* %esi.global-to-local, align 4
  %v0_9 = load i32, i32* @eax, align 8
  store i32 %v0_9, 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* %edi.global-to-local, align 4
  %v0_e = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v3_13 = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_13 = fpext double %v3_13 to x86_fp80
  %v5_13 = add i3 %v0_e, -2
  store i3 %v5_13, i3* %fpu_stat_TOP.global-to-local, align 1
  store x86_fp80 %v4_13, x86_fp80* %st6.global-to-local, align 4
  %v3_15 = add i32 %v3_b, -32
  %v4_15 = inttoptr i32 %v3_15 to double*
  %v5_15 = load double, double* %v4_15, align 4
  %v6_15 = fpext double %v5_15 to x86_fp80
  %v7_15 = fadd x86_fp80 %v4_13, %v6_15
  store x86_fp80 %v7_15, x86_fp80* %st6.global-to-local, align 4
  %v4_18 = call i32 @__asm_fpatan(i32 %v0_5, i32 %v0_4, i32 %v0_3, i32 %v0_0)
  store i32 %v4_18, i32* @eax, align 8
  %v0_1a = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v1_1a = load i32, i32* %edi.global-to-local, align 4
  %v2_1a = add i32 %v1_1a, -48
  %v3_1a = inttoptr i32 %v2_1a to double*
  %v4_1a = load double, double* %v3_1a, align 4
  %v5_1a = fpext double %v4_1a to x86_fp80
  %v6_1a = add i3 %v0_1a, -1
  %v3_1d = add i32 %v1_1a, -24
  %v4_1d = inttoptr i32 %v3_1d to double*
  %v5_1d = load double, double* %v4_1d, align 4
  %v6_1d = fpext double %v5_1d to x86_fp80
  %v7_1d = fadd x86_fp80 %v5_1a, %v6_1d
  %v3_20 = add i32 %v1_1a, 8
  %v4_20 = inttoptr i32 %v3_20 to double*
  %v5_20 = load double, double* %v4_20, align 4
  %v6_20 = fpext double %v5_20 to x86_fp80
  %v7_20 = fmul x86_fp80 %v7_1d, %v6_20
  %v3_23 = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  %v4_23 = fadd x86_fp80 %v3_23, %v7_20
  store x86_fp80 %v4_23, x86_fp80* %st6.global-to-local, align 4
  %v3_25 = inttoptr i32 %v1_1a to double*
  %v4_25 = load double, double* %v3_25, align 4
  %v5_25 = fpext double %v4_25 to x86_fp80
  %v6_25 = fdiv x86_fp80 %v4_23, %v5_25
  store x86_fp80 %v6_25, x86_fp80* %st6.global-to-local, align 4
  %v3_27 = add i32 %v1_1a, -16
  %v4_27 = inttoptr i32 %v3_27 to double*
  %v5_27 = load double, double* %v4_27, align 4
  %v6_27 = fpext double %v5_27 to x86_fp80
  %v7_27 = fmul x86_fp80 %v6_25, %v6_27
  %v2_2a = call x86_fp80 @llvm.round.f80(x86_fp80 %v7_27)
  %v2_2c = fsub x86_fp80 0xK80000000000000000000, %v2_2a
  store x86_fp80 %v2_2c, x86_fp80* %st6.global-to-local, align 4
  %v5_2e = load double, double* %v4_27, align 4
  %v6_2e = fpext double %v5_2e to x86_fp80
  %v7_2e = fdiv x86_fp80 %v2_2c, %v6_2e
  store x86_fp80 %v7_2e, x86_fp80* %st6.global-to-local, align 4
  %v4_31 = load double, double* %v3_25, align 4
  %v5_31 = fpext double %v4_31 to x86_fp80
  %v6_31 = fmul x86_fp80 %v7_2e, %v5_31
  store x86_fp80 %v6_31, x86_fp80* %st6.global-to-local, align 4
  %v4_33 = load double, double* %v4_1d, align 4
  %v5_33 = fpext double %v4_33 to x86_fp80
  %v5_36 = load double, double* %v4_20, align 4
  %v6_36 = fpext double %v5_36 to x86_fp80
  %v7_36 = fmul x86_fp80 %v5_33, %v6_36
  %v4_39 = fadd x86_fp80 %v6_31, %v7_36
  store x86_fp80 %v4_39, x86_fp80* %st6.global-to-local, align 4
  %v2_3b = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_39)
  %v3_3b = fcmp olt x86_fp80 %v2_3b, 0xK403E8000000000000000
  br i1 %v3_3b, label %bb, label %bb236

bb:                                               ; preds = %dec_label_pc_0
  %v4_3b = call x86_fp80 @llvm.sin.f80(x86_fp80 %v4_39)
  store x86_fp80 %v4_3b, x86_fp80* %st6.global-to-local, align 4
  %v7_3b = call x86_fp80 @llvm.cos.f80(x86_fp80 %v4_39)
  store i3 %v6_1a, i3* %fpu_stat_TOP.global-to-local, align 1
  br label %bb236

bb236:                                            ; preds = %dec_label_pc_0, %bb
  %v3_4d = phi x86_fp80 [ %v4_39, %dec_label_pc_0 ], [ %v4_3b, %bb ]
  %v3_51 = phi x86_fp80 [ %v7_36, %dec_label_pc_0 ], [ %v7_3b, %bb ]
  %v0_3f = phi i3 [ %v0_1a, %dec_label_pc_0 ], [ %v6_1a, %bb ]
  %v3_3f = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_3f = fpext double %v3_3f to x86_fp80
  %v4_41 = fmul x86_fp80 %v3_51, %v4_3f
  %v3_43 = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_43 = fpext double %v3_43 to x86_fp80
  %v4_45 = fmul x86_fp80 %v3_4d, %v4_43
  %v4_47 = fsub x86_fp80 %v4_45, %v4_41
  store x86_fp80 %v4_47, x86_fp80* %st4.global-to-local, align 4
  %v4_4d = fmul x86_fp80 %v3_4d, %v4_3f
  %v4_51 = fmul x86_fp80 %v3_51, %v4_43
  %v4_53 = fadd x86_fp80 %v4_4d, %v4_51
  %tmp237 = bitcast double %v3_43 to i64
  %tmp238 = trunc i64 %tmp237 to i32
  %v3_57 = fptrunc x86_fp80 %v4_53 to double
  %v4_57 = inttoptr i32 %tmp238 to double*
  store double %v3_57, double* %v4_57, align 4
  %v1_59 = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  %v2_59 = load i32, i32* %ebx.global-to-local, align 4
  %v3_59 = fptrunc x86_fp80 %v1_59 to double
  %v4_59 = inttoptr i32 %v2_59 to double*
  store double %v3_59, double* %v4_59, align 4
  %v4_5d = add i3 %v0_3f, 2
  store i3 %v4_5d, i3* %fpu_stat_TOP.global-to-local, align 1
  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
  %v0_63 = load i32, i32* @eax, align 8
  ret i32 %v0_63
}

declare i32 @__asm_fpatan(i32, i32, i32, 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

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

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

attributes #0 = { nounwind readnone speculatable }
